aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pecl-statgrab/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pecl-statgrab/Makefile')
-rw-r--r--devel/pecl-statgrab/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/pecl-statgrab/Makefile b/devel/pecl-statgrab/Makefile
new file mode 100644
index 000000000000..2478577d5b97
--- /dev/null
+++ b/devel/pecl-statgrab/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: pecl-statgrab
+# Date created: 04 April 2005
+# Whom: Tim Bishop <tim@bishnet.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= statgrab
+PORTVERSION= 0.3
+CATEGORIES= devel pear
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+DISTNAME= Statgrab-${PORTVERSION}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PECL
+
+MAINTAINER= tim@bishnet.net
+COMMENT= A PECL extension to retrieve information from libstatgrab
+
+LIB_DEPENDS= statgrab.6:${PORTSDIR}/devel/libstatgrab
+
+USE_PHP= yes
+USE_PHPEXT= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -ldevstat ${EXTRA_LIBS}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_LIBS= -lkvm
+.endif
+
+.include <bsd.port.post.mk>