2004-12-23 07:49:35 +00:00
|
|
|
# New ports collection makefile for: redland-bindings
|
|
|
|
# Date created: 2004-08-10
|
|
|
|
# Whom: Russell Cloran <russell@rucus.ru.ac.za>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= redland-bindings
|
2008-01-26 22:36:33 +00:00
|
|
|
PORTVERSION= 1.0.7.1
|
2004-12-23 07:49:35 +00:00
|
|
|
CATEGORIES= textproc
|
2006-12-08 22:55:37 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://download.librdf.org/source/
|
2004-12-23 07:49:35 +00:00
|
|
|
|
2006-05-09 01:03:46 +00:00
|
|
|
MAINTAINER= chuck@pkix.net
|
2004-12-23 07:49:35 +00:00
|
|
|
COMMENT= Language bindings for the Redland package
|
|
|
|
|
|
|
|
#OPTIONS= JAVA "Add Java bindings" off \
|
|
|
|
# PERL "Add Perl bindings" off \
|
|
|
|
# PHP "Add PHP bindings" off \
|
|
|
|
# PYTHON "Add Python bindings" off \
|
|
|
|
# RUBY "Add Ruby bindings" off \
|
|
|
|
LIB_DEPENDS= rdf.0:${PORTSDIR}/textproc/redland
|
2005-08-30 16:08:07 +00:00
|
|
|
|
2006-12-08 22:55:37 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2004-12-23 07:49:35 +00:00
|
|
|
.if defined(WITH_JAVA)
|
|
|
|
USE_JAVA= yes
|
2005-08-30 16:08:07 +00:00
|
|
|
JAVA_VERSION= 1.3+
|
2004-12-23 07:49:35 +00:00
|
|
|
CONFIGURE_ARGS+= --with-java --with-jdk=${JAVA_HOME}
|
|
|
|
PLIST_SUB+= WITH_JAVA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_JAVA="@comment "
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PERL)
|
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+= --with-perl
|
|
|
|
PLIST_SUB+= WITH_PERL=""
|
2005-03-21 15:31:27 +00:00
|
|
|
MANPREFIX= ${LOCALBASE}/lib/perl5/${PERL_VER}
|
2004-12-23 07:49:35 +00:00
|
|
|
MAN3= RDF::Redland.3 \
|
|
|
|
RDF::Redland::Iterator.3 \
|
|
|
|
RDF::Redland::Model.3 \
|
|
|
|
RDF::Redland::Node.3 \
|
|
|
|
RDF::Redland::Parser.3 \
|
|
|
|
RDF::Redland::Query.3 \
|
|
|
|
RDF::Redland::QueryResults.3 \
|
|
|
|
RDF::Redland::RSS.3 \
|
|
|
|
RDF::Redland::Serializer.3 \
|
|
|
|
RDF::Redland::Statement.3 \
|
|
|
|
RDF::Redland::Storage.3 \
|
|
|
|
RDF::Redland::Stream.3 \
|
|
|
|
RDF::Redland::URI.3
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PHP)
|
|
|
|
USE_PHP= yes
|
|
|
|
USE_PHP_BUILD= yes
|
|
|
|
CONFIGURE_ARGS+= --with-php
|
|
|
|
PLIST_SUB+= WITH_PHP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PHP="@comment "
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_RUBY)
|
|
|
|
USE_RUBY= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ruby
|
|
|
|
PLIST_SUB+= WITH_RUBY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_RUBY="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "**********************************************"
|
|
|
|
@${ECHO_MSG} "The following make variables can be set to"
|
2005-03-21 15:31:27 +00:00
|
|
|
@${ECHO_MSG} "enable bindings for various languages"
|
2004-12-23 07:49:35 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "WITH_JAVA - Java bindings"
|
|
|
|
@${ECHO_MSG} "WITH_PERL - Perl module"
|
|
|
|
@${ECHO_MSG} "WITH_PHP - PHP extension"
|
|
|
|
@${ECHO_MSG} "WITH_PYTHON - Python extension"
|
|
|
|
@${ECHO_MSG} "WITH_RUBY - Ruby bindings"
|
|
|
|
@${ECHO_MSG} "**********************************************"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|