diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-03-10 01:21:42 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-03-10 01:21:42 +0000 |
commit | 71b0d95269e7789968e0ca05d93ac54f4d451ef0 (patch) | |
tree | 1f128a2c366c9e0ab4ae93d4ac525aa5c2a5841e /devel/swig13/Makefile | |
parent | be24b251f3809ec6cd2a5e214c404dff9be9e78d (diff) | |
download | ports-71b0d95269e7789968e0ca05d93ac54f4d451ef0.tar.gz ports-71b0d95269e7789968e0ca05d93ac54f4d451ef0.zip |
- Fix build when php-config is in $PATH
PR: ports/121547
Submitted by: Mel <mel at rachie.is-a-geek.net>
Notes
Notes:
svn path=/head/; revision=208705
Diffstat (limited to 'devel/swig13/Makefile')
-rw-r--r-- | devel/swig13/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/swig13/Makefile b/devel/swig13/Makefile index e3cf048220bd..41a13cc6916c 100644 --- a/devel/swig13/Makefile +++ b/devel/swig13/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 |