aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/libmrss
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-07-31 15:34:16 +0800
committerclsung <clsung@FreeBSD.org>2007-07-31 15:34:16 +0800
commite1a0e4f2cae4bd281028c06a1d976c99df57cbb0 (patch)
tree1c4dadfbd11f7918a85922dbaa628fed0696bdaf /textproc/libmrss
parent2eb91e87552c3200a2c3b9cf05f26d44d7ff29e4 (diff)
downloadfreebsd-ports-gnome-e1a0e4f2cae4bd281028c06a1d976c99df57cbb0.tar.gz
freebsd-ports-gnome-e1a0e4f2cae4bd281028c06a1d976c99df57cbb0.tar.zst
freebsd-ports-gnome-e1a0e4f2cae4bd281028c06a1d976c99df57cbb0.zip
- add support to php
- bump PORTREVISION
Diffstat (limited to 'textproc/libmrss')
-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