summaryrefslogtreecommitdiff
path: root/devel/pecl-statgrab/Makefile
blob: 5afda4a250df166c056ec6a71c5031aba671c1a9 (plain) (blame)
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
# 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>