freebsd-ports/lang/php5/Makefile.pear
Alex Dupre af7ee2a6ac First step of the PHP mega-commit:
- remove extensions and PEAR from the PHP base ports
- add more OPTIONS to PHP base ports
2004-07-19 07:05:36 +00:00

30 lines
703 B
Makefile

USE_GNOME= libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-layout=GNU \
--disable-cgi \
--disable-all \
--with-pcre-regex=yes \
--enable-xml \
--with-libxml-dir=${LOCALBASE} \
--with-zlib-dir=/usr \
--with-pear
NO_BUILD= yes
INSTALL_TARGET= install-pear
USE_PHP= pcre xml
WANT_PHP_SCR= yes
.include <bsd.port.pre.mk>
post-patch:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" \
${WRKSRC}/pear/scripts/pearcmd.php > ${WRKSRC}/pear/scripts/pear
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
@${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}