freebsd-ports/devel/pecl-statgrab/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

37 lines
806 B
Makefile

# New ports collection makefile for: pecl-statgrab
# Date created: 04 April 2005
# Whom: Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#
PORTNAME= statgrab
PORTVERSION= 0.6.0
CATEGORIES= devel pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
DISTNAME= Statgrab-${PORTVERSION}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PECL
MAINTAINER= tdb@FreeBSD.org
COMMENT= A PECL extension to retrieve information from libstatgrab
LIB_DEPENDS= statgrab.8:${PORTSDIR}/devel/libstatgrab
USE_PHP= yes
USE_PHPEXT= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -ldevstat ${EXTRA_LIBS}
CONFIGURE_ARGS= --with-statgrab=${LOCALBASE}
.include <bsd.port.pre.mk>
.if ${PHP_VER} < 5
post-patch:
@${PATCH} -d ${WRKSRC} -p0 < ${FILESDIR}/php_statgrab.h.patch
.endif
.include <bsd.port.post.mk>