freebsd-ports/archivers/php-snappy/Makefile
Mathieu Arnold a1993564e0 Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
  flavored.  They will automatically get flavors (php56, php70, php71, php72)
  depending of the versions they support (set with IGNORE_WITH_PHP).  As a
  consequence, ports using USES=pear and USES=horde are also flavored.

PR:		226242
Submitted by:	mat
Exp-run by:	antoine
Approved by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D14208
2018-03-08 19:48:41 +00:00

34 lines
780 B
Makefile

# Created by: Melvyn Sopacua <melvyn@magemana.nl>
# $FreeBSD$
PORTNAME= snappy
PORTVERSION= 0.1.9
CATEGORIES= archivers
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
MAINTAINER= joneum@FreeBSD.org
COMMENT= PHP extension for the snappy compression algorithm
LICENSE= BSD3CLAUSE PHP301
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/COPYING.snappy
LICENSE_FILE_PHP301= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsnappy.so:archivers/snappy
USE_GITHUB= yes
GH_ACCOUNT= kjdev
GH_PROJECT= php-ext-snappy
USES= php:ext
PHP_MODNAME= snappy
CONFIGURE_ARGS= --with-snappy-includedir=${LOCALBASE}/include
do-test:
(cd ${WRKSRC} && ${DO_MAKE_BUILD} NO_INTERACTION=yes test < /dev/null)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/snappy.so
.include <bsd.port.mk>