aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-07-31 07:34:16 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-07-31 07:34:16 +0000
commit8f50fbb6ab33fe7c7f082b669826e5d33c56b3b6 (patch)
treeb93e3b2888684f8d381a031e2e00f679b010902f /textproc
parentdd3f6ed6e349d7d0897fb390b5d917ff707ee4df (diff)
downloadports-8f50fbb6ab33fe7c7f082b669826e5d33c56b3b6.tar.gz
ports-8f50fbb6ab33fe7c7f082b669826e5d33c56b3b6.zip
- add support to php
- bump PORTREVISION
Notes
Notes: svn path=/head/; revision=196789
Diffstat (limited to 'textproc')
-rw-r--r--textproc/libmrss/Makefile19
-rw-r--r--textproc/libmrss/pkg-plist3
2 files changed, 21 insertions, 1 deletions
diff --git a/textproc/libmrss/Makefile b/textproc/libmrss/Makefile
index 8bd3510399af..61744038e7c5 100644
--- a/textproc/libmrss/Makefile
+++ b/textproc/libmrss/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libmrss
PORTVERSION= 0.18.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www5.autistici.org/bakunin/libmrss/ GENTOO/distfiles
@@ -17,6 +18,8 @@ BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/curl \
nxml.18:${PORTSDIR}/textproc/libnxml
+OPTIONS= PHPMRSS "support to PHP" on
+
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
@@ -28,4 +31,18 @@ WANT_GNOME= yes
pre-patch:
${gnomehack_PRE_PATCH}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PHPMRSS)
+USE_PHP= yes
+USE_AUTOTOOLS+= autoconf:259:env
+BUILD_DEPENDS+= phpize:${PHP_PORT}
+post-install:
+ @(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
+ @(cd ${WRKSRC}/phpmrss; ./configure; ${MAKE} install)
+PLIST_SUB+= PHPMRSS=""
+.else
+PLIST_SUB+= PHPMRSS="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/libmrss/pkg-plist b/textproc/libmrss/pkg-plist
index 83d40bba26dd..cf0d85d44a75 100644
--- a/textproc/libmrss/pkg-plist
+++ b/textproc/libmrss/pkg-plist
@@ -5,3 +5,6 @@ lib/libmrss.la
lib/libmrss.so
lib/libmrss.so.18
libdata/pkgconfig/mrss.pc
+%%PHPMRSS%%lib/php/%%PHP_EXT_DIR%%/mrss.so
+%%PHPMRSS%%@dirrmtry lib/php/%%PHP_EXT_DIR%%
+%%PHPMRSS%%@dirrmtry lib/php