Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  9 Mar 2008 12:49:43 -0800 (AKDT)
From:      Mel <mel@rachie.is-a-geek.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        MAINTAINER <rafan@FreeBSD.org>
Subject:   ports/121547: [PATCH] Fix build of swig with php
Message-ID:  <20080309204943.AB9F528429@smoochies.rachie.is-a-geek.net>
Resent-Message-ID: <200803092120.m29LK0XT016831@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121547
>Category:       ports
>Synopsis:       [PATCH] Fix build of swig with php
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 21:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Mel
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD smoochies.rachie.is-a-geek.net 7.0-STABLE FreeBSD 7.0-STABLE #3: Tue Mar 4 09:11:17 AKST 2008 root@smoochies.rachie.is-a-geek.net:/usr/obj/usr/src/sys/GENERIC-ULE i386


	
>Description:
Swig doens't build with php option enabled, because of a bogus assumption in
the swig configure script.
>How-To-Repeat:
Have php with cli enable in PATH and cd /usr/ports/devel/swig13 && make build
>Fix:
--- Makefile.orig       2008-03-09 00:05:45.000000000 -0900
+++ Makefile    2008-03-09 12:42:47.000000000 -0800
@@ -32,6 +32,7 @@
 post-patch:
        ${REINPLACE_CMD} -e 's/SKIP_CHICKEN=$$/&"1"/' ${WRKSRC}/configure
        ${REINPLACE_CMD} -e 's|$$RUBY |${RUBY} |' ${WRKSRC}/configure
+       ${REINPLACE_CMD} -e 's|^PHP4CONFIG=.*$$|PHP4CONFIG=php-config|' ${WRKSRC}/configure
        ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
                ${WRKSRC}/Lib/lua/luarun.swg


	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080309204943.AB9F528429>