# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

name                redland-bindings
version             1.0.8.1
revision            2
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 52ff9e9f7fb38e3514862d6077e59332 \
                    sha1 f19325ee9753de1e6a551e618784267c98e33fe3
 
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 port:php5
}

variant python24 {
	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 {
	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 ruby {
	configure.args-append --with-ruby
	depends_lib-append port:ruby
}

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