- add support to php

- bump PORTREVISION
This commit is contained in:
Cheng-Lung Sung 2007-07-31 07:34:16 +00:00
parent dd3f6ed6e3
commit 8f50fbb6ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196789
2 changed files with 21 additions and 1 deletions

View file

@ -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>

View file

@ -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