diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/php-xapian/Makefile | 51 | ||||
-rw-r--r-- | databases/php-xapian/distinfo | 3 | ||||
-rw-r--r-- | databases/php-xapian/pkg-descr | 3 | ||||
-rw-r--r-- | databases/php-xapian/pkg-plist | 9 |
5 files changed, 67 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index a858bbab410a..6a2cfcd45b03 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -592,6 +592,7 @@ SUBDIR += pguri SUBDIR += pgworksheet SUBDIR += php-mdcached + SUBDIR += php-xapian SUBDIR += php5-pdo_cassandra SUBDIR += php5-tarantool SUBDIR += php56-dba diff --git a/databases/php-xapian/Makefile b/databases/php-xapian/Makefile new file mode 100644 index 000000000000..b6bd80fe90ea --- /dev/null +++ b/databases/php-xapian/Makefile @@ -0,0 +1,51 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= xapian +PORTVERSION= 1.4.3 +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 + +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_FILES= lib/php/${PHP_EXT_DIR}/xapian.a \ + lib/php/${PHP_EXT_DIR}/xapian.so +PORTDATA= * +PORTDOCS= * + +.include <bsd.port.pre.mk> + +.if ${PHP_VER} >= 70 +CONFIGURE_ARGS+=--with-php7 --without-php +.else +CONFIGURE_ARGS+=--with-php --without-php7 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure + +.include <bsd.port.post.mk> diff --git a/databases/php-xapian/distinfo b/databases/php-xapian/distinfo new file mode 100644 index 000000000000..09c72f562dee --- /dev/null +++ b/databases/php-xapian/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1485562319 +SHA256 (xapian-bindings-1.4.3.tar.xz) = 65b5455bf81e4f39fda49a6ad99353b05889d11d7c4c2cae001a0a1e0dac0d87 +SIZE (xapian-bindings-1.4.3.tar.xz) = 1114408 diff --git a/databases/php-xapian/pkg-descr b/databases/php-xapian/pkg-descr new file mode 100644 index 000000000000..fe1471963663 --- /dev/null +++ b/databases/php-xapian/pkg-descr @@ -0,0 +1,3 @@ +PHP binding for Xapian + +WWW: https://xapian.org/ diff --git a/databases/php-xapian/pkg-plist b/databases/php-xapian/pkg-plist new file mode 100644 index 000000000000..90167eee7db6 --- /dev/null +++ b/databases/php-xapian/pkg-plist @@ -0,0 +1,9 @@ +%%LUA%%%%LUA_MODLIBDIR%%/xapian.so +%%PHP%%lib/php/%%PHP_EXT_DIR%%/xapian.so +%%PHP%%%%DATADIR%%/php5/xapian.php +%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/__init__.pyc +%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/__init__.pyo +%%PYTHON%%%%PYTHON_SITELIBDIR%%/xapian/_xapian.so +%%RUBY%%%%RUBY_SITELIBDIR%%/xapian.rb +%%RUBY%%%%RUBY_SITEARCHLIBDIR%%/_xapian.so |