summaryrefslogtreecommitdiffstats
path: root/archivers/php5-snappy/Makefile
blob: aaf0a5de4f5b6643124d96f17fa6ae10d54c1edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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>
OpenPOWER on IntegriCloud