aboutsummaryrefslogtreecommitdiffstats
path: root/devel/swig20
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-03-10 09:21:42 +0800
committerrafan <rafan@FreeBSD.org>2008-03-10 09:21:42 +0800
commitb6e4693db2757e967cceebdc9982377d4a696a44 (patch)
treebb62df7b1a3116d02f18eb608871811c54243a03 /devel/swig20
parentb351aa5ee0bdaeb514d93531b73205e01680fcdc (diff)
downloadfreebsd-ports-gnome-b6e4693db2757e967cceebdc9982377d4a696a44.tar.gz
freebsd-ports-gnome-b6e4693db2757e967cceebdc9982377d4a696a44.tar.zst
freebsd-ports-gnome-b6e4693db2757e967cceebdc9982377d4a696a44.zip
- Fix build when php-config is in $PATH
PR: ports/121547 Submitted by: Mel <mel at rachie.is-a-geek.net>
Diffstat (limited to 'devel/swig20')
-rw-r--r--devel/swig20/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/swig20/Makefile b/devel/swig20/Makefile
index e3cf048220bd..41a13cc6916c 100644
--- a/devel/swig20/Makefile
+++ b/devel/swig20/Makefile
@@ -30,8 +30,10 @@ PLIST_SUB+= VER="${VER}"
.include <bsd.port.pre.mk>
post-patch:
- ${REINPLACE_CMD} -e 's/SKIP_CHICKEN=$$/&"1"/' ${WRKSRC}/configure
- ${REINPLACE_CMD} -e 's|$$RUBY |${RUBY} |' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's/SKIP_CHICKEN=$$/&"1"/; \
+ s|$$RUBY |${RUBY} |; \
+ s|^PHP4CONFIG=.*$$|PHP4CONFIG=php-config|; \
+ ' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
${WRKSRC}/Lib/lua/luarun.swg