# $Id: Portfile 63908 2010-02-18 00:27:28Z ryandesign@macports.org $

PortSystem 1.0

name                redland-bindings
version             1.0.10.1
description         Redland RDF Language Bindings
long_description    Redland is a set of free software libraries that provide \
                    support for the Resource Description Framework (RDF). \
                    This package provides higher-level language APIs to \
                    Redland for multiple popular scripting languages.
maintainers         gmail.com:arto.bendiken
categories          www
platforms           darwin
homepage            http://librdf.org/bindings/
master_sites        http://download.librdf.org/source/

checksums           md5 4b70555996b230c9e6671fc6e416e123 \
                    sha1 8c0248543881504850e2a705247fa787baa4754b 
 
depends_lib         port:redland

configure.args      --mandir=${prefix}/share/man

variant perl5 {
	depends_lib-append path:bin/perl:perl5
	configure.args-append --with-perl
	configure.perl ${prefix}/bin/perl
}

variant php5 {
	configure.args-append --with-php
	depends_lib-append path:bin/php:php5
}

variant python24 conflicts python25 python26 {
	configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/Python"
	depends_lib-append port:python24
}

variant python25 conflicts python24 python26 {
	configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python"
	depends_lib-append port:python25
}

variant python26 conflicts python24 python25 {
	configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/Python"
	depends_lib-append port:python26
}

variant ruby {
	configure.args-append --with-ruby
	depends_lib-append port:ruby
}

variant tcl {
	configure.args-append --with-tcl
	depends_lib-append port:tcl
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
