summaryrefslogtreecommitdiff
path: root/lang/php53/Makefile.pear
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php53/Makefile.pear')
-rw-r--r--lang/php53/Makefile.pear29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/php53/Makefile.pear b/lang/php53/Makefile.pear
new file mode 100644
index 000000000000..6b8c15911319
--- /dev/null
+++ b/lang/php53/Makefile.pear
@@ -0,0 +1,29 @@
+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}