diff options
Diffstat (limited to 'devel/swig20/Makefile')
-rw-r--r-- | devel/swig20/Makefile | 6 |
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 |