freebsd-ports/archivers/php5-snappy/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

38 lines
921 B
Makefile

# Created by: Melvyn Sopacua <melvyn@magemana.nl>
# $FreeBSD$
PORTNAME= php5-snappy
PORTVERSION= 0.0.2
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= php-snappy
DISTNAME= ${PROJECTHOST}-${PORTVERSION}
MAINTAINER= melvyn@magemana.nl
COMMENT= PHP extension for the snappy compression algorithm
LICENSE= BSD2CLAUSE
LIB_DEPENDS+= libsnappy.so:${PORTSDIR}/archivers/snappy
CONFIGURE_ARGS+= --with-snappy-includedir=${LOCALBASE}/include
USE_PHP= yes
USE_PHPEXT= yes
PHP_MODNAME= snappy
WRKSRC= ${WRKDIR}/${PROJECTHOST}
OPTIONS_DEFINE= TEST
.include <bsd.port.options.mk>
test: build
@(cd ${WRKSRC} && ${MAKE} ${MAKE_ENV} NO_INTERACTION=yes ${.TARGET})
.if !empty(${PORT_OPTIONS:MTEST})
post-stage: test
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/snappy.so
.else
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/snappy.so
.endif
.include <bsd.port.mk>