971621fadf
- Sort PLIST Reported by: Oliver Schonrock <oliver@schonrocks.com>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xapian
|
|
PORTVERSION= 1.4.5
|
|
DISTVERSIONPREFIX= bindings-
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
|
|
LOCAL/sunpoet
|
|
PKGNAMEPREFIX= php-
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= PHP binding for Xapian
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= xapian-core>=${PORTVERSION}:databases/xapian-core
|
|
LIB_DEPENDS= libxapian.so:databases/xapian-core
|
|
|
|
CONFLICTS_INSTALL= xapian-bindings12
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
|
|
--enable-static \
|
|
--with-php \
|
|
--without-csharp --without-java --without-lua --without-perl \
|
|
--without-python --without-python3 --without-ruby --without-tcl
|
|
CONFIGURE_ENV= PHP_CONFIG=${LOCALBASE}/bin/php-config
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USES= libtool php:build tar:xz
|
|
|
|
PLIST_SUB= PHP_EXT_DIR=${PHP_EXT_DIR} PHP_MAJOR_VER=${PHP_VER:C|.$||}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PHP_VER} >= 70
|
|
CONFIGURE_ARGS+=--with-php7 --without-php
|
|
PLIST_SUB+= PHP5="@comment " PHP7=""
|
|
.else
|
|
CONFIGURE_ARGS+=--with-php --without-php7
|
|
PLIST_SUB+= PHP5="" PHP7="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.post.mk>
|