1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/lang/php53/Makefile.pear
Alex Dupre a0f57b5ec7 Fix pear command on FreeBSD-current.
(We loose the output buffering capability,
but we cannot set it inside the script)

PR:		ports/81890
Submitted by:	Edwin Culp <eculp@bafirst.com>
2005-06-08 07:45:15 +00:00

37 lines
883 B
Makefile

PORTREVISION= 4
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
DEFAULT_PHP_VER=5
BROKEN_WITH_PHP=4
.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
@${MKDIR} ${PREFIX}/lib/php/pear/.registry
@${TOUCH} ${PREFIX}/lib/php/pear/.filemap
@${TOUCH} ${PREFIX}/lib/php/pear/.lock
@${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}