freebsd-ports/databases/xapian-bindings/Makefile
Sunpoet Po-Chuan Hsieh cf3014b5f5 - Update to 1.2.10.0
- Add PORTSCOUT knob to skip development versions
- Cosmetic change

Changes:	http://trac.xapian.org/wiki/ReleaseOverview/1.2.10
2012-05-14 18:44:51 +00:00

72 lines
1.9 KiB
Makefile

# New ports collection makefile for: xapian-bindings
# Date created: 2007-05-26
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= xapian-bindings
PORTVERSION= 1.2.10
CATEGORIES= databases
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Bindings allowing Xapian to be used from various programming languages
LICENSE= GPLv2
LIB_DEPENDS= xapian.26:${PORTSDIR}/databases/xapian-core
OPTIONS= PHP "Build PHP binding" on \
PYTHON "Build Python binding" on \
RUBY "Build Ruby binding" on
PORTSCOUT= limitw:1,even
CONFIGURE_ARGS= --datarootdir="${DATADIR}" --docdir="${DOCSDIR}" \
--without-csharp --without-java --without-tcl
GNU_CONFIGURE= yes
.include <bsd.port.options.mk>
.if defined(WITHOUT_PHP)
CONFIGURE_ARGS+=--without-php
PLIST_SUB+= BINDING_PHP="@comment "
.else
CONFIGURE_ARGS+=--with-php
CONFIGURE_ENV+= PHP_CONFIG="${LOCALBASE}/bin/php-config"
PLIST_SUB+= BINDING_PHP=""
USE_PHP= yes
USE_PHP_BUILD= yes
.endif
.if defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+=--without-python
PLIST_SUB+= BINDING_PYTHON="@comment "
.else
CONFIGURE_ARGS+=--with-python
CONFIGURE_ENV+= PYTHON_LIB="${PYTHON_SITELIBDIR}"
PLIST_SUB+= BINDING_PYTHON=""
USE_PYTHON= yes
.endif
.if defined(WITHOUT_RUBY)
CONFIGURE_ARGS+=--without-ruby
PLIST_SUB+= BINDING_RUBY="@comment "
.else
CONFIGURE_ARGS+=--with-ruby
PLIST_SUB+= BINDING_RUBY=""
USE_RUBY= yes
USE_RUBY_RDOC= no
.endif
post-patch:
# do not install rdoc
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' ${WRKSRC}/ruby/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA install-dist_exampledataDATA ||' ${WRKSRC}/php/Makefile.in ${WRKSRC}/python/Makefile.in
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA||; 759 s|install-dist_exampledataDATA ||' ${WRKSRC}/ruby/Makefile.in
.endif
.include <bsd.port.mk>