- Convert to new options helper

- Remove unnecessary PHP_MODNAME
 - Use =

Submitted by:	sunpoet
This commit is contained in:
Xin LI 2014-12-22 18:11:00 +00:00
parent e31adb328d
commit d6a7e1fc3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375256

View file

@ -17,24 +17,18 @@ LICENSE= PHP30
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconf
LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached
PHP_MODNAME= memcached
USE_PHP= json session
USE_PHPEXT= yes
USE_PHPIZE= yes
USE_PHP_BUILD= yes
USES= tar:tgz
CONFIGURE_ARGS+=--with-libmemcached-dir=${LOCALBASE} \
CONFIGURE_ARGS= --with-libmemcached-dir=${LOCALBASE} \
--disable-memcached-sasl
OPTIONS_DEFINE= IGBINARY
IGBINARY_DESC= Binary serializer support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIGBINARY}
CONFIGURE_ARGS+=--enable-memcached-igbinary
BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/igbinary.so:${PORTSDIR}/converters/pecl-igbinary
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/igbinary.so:${PORTSDIR}/converters/pecl-igbinary
.endif
IGBINARY_CONFIGURE_ON= --enable-memcached-igbinary
IGBINARY_USE= PHP=igbinary
.include <bsd.port.mk>