summaryrefslogblamecommitdiff
path: root/lang/php4/Makefile.pear
blob: 4c3e80e5d25b2acc025a4c910d47bc1ab188a5da (plain) (tree)


















                                                   

                 









                                                                                           
LIB_DEPENDS+=   expat.5:${PORTSDIR}/textproc/expat2

GNU_CONFIGURE=	yes

CONFIGURE_ARGS= --with-layout=GNU \
		--disable-cgi \
                --disable-all \
                --with-pcre-regex=yes \
                --enable-xml \
                --with-expat-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=4
BROKEN_WITH_PHP=5

.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}