Date: Fri, 3 Aug 2007 10:17:56 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org Subject: ports/115457: [MAINTAINER] security/lasso: Support for PHP binding Message-ID: <20070812231512.403531CCC4@ccreader.NCTU.edu.tw> Resent-Message-ID: <200708130800.l7D804hq036798@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115457 >Category: ports >Synopsis: [MAINTAINER] security/lasso: Support for PHP binding >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Aug 13 08:00:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD ccreader.NCTU.edu.tw 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jul 29 04:54:23 UTC 2007 >Description: - Add support for PHP binding - Use libxml2 in USE_GNOME (instead of LIB_DEPENDS) - Use USE_PYTHON_BUILD instead of USE_PYTHON Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- lasso-2.0.0.patch begins here --- diff -ruN --exclude=CVS /usr/ports/security/lasso/Makefile /home/staff/gslin/work/ports/lasso/Makefile --- /usr/ports/security/lasso/Makefile 2007-07-25 15:18:22.000000000 +0800 +++ /home/staff/gslin/work/ports/lasso/Makefile 2007-08-03 09:55:49.000000000 +0800 @@ -13,16 +13,15 @@ MAINTAINER= gslin@gslin.org COMMENT= Free Liberty Alliance Implementation -LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 RUN_DEPENDS= xmlsec1:${PORTSDIR}/security/xmlsec1 BUILD_DEPENDS:= ${RUN_DEPENDS} CONFIGURE_ARGS+= --disable-java --disable-php4 --with-zlib GNU_CONFIGURE= yes -USE_GNOME= gnomehack glib20 +USE_GNOME= gnomehack glib20 libxml2 USE_LDCONFIG= yes USE_OPENSSL= yes -USE_PYTHON= yes +USE_PYTHON_BUILD= yes .ifdef(WITH_PERL) CONFIGURE_ARGS+= --enable-perl @@ -33,21 +32,24 @@ PLIST_SUB+= WITH_PERL="@comment " .endif -#.ifdef(WITH_PHP5) -#CONFIGURE_ARGS+= --enable-php5 \ -# --with-php5-config="${LOCALBASE}/bin/php-config" \ -# --with-php5-extension-dir="${PREFIX}/lib/php/${PHP_EXT_DIR}" -#IGNORE_WITH_PHP= 4 -#PLIST_SUB+= WITH_PHP5="" -#USE_PHP= yes -#.else +.ifdef(WITH_PHP5) +CONFIGURE_ARGS+= --enable-php5 \ + --with-php5-config="${LOCALBASE}/bin/php-config" +IGNORE_WITH_PHP= 4 +LDFLAGS+= "-L${LOCALBASE}/lib" +LIB_DEPENDS+= expat:${PORTSDIR}/textproc/expat2 +PLIST_SUB+= WITH_PHP5="" +USE_PHP= yes +USE_PHP_BUILD= yes +.else CONFIGURE_ARGS+= --disable-php5 PLIST_SUB+= WITH_PHP5="@comment " -#.endif +.endif .ifdef(WITH_PYTHON) CONFIGURE_ARGS+= --enable-python PLIST_SUB+= WITH_PYTHON="" +USE_PYTHON= yes .else CONFIGURE_ARGS+= --disable-python PLIST_SUB+= WITH_PYTHON="@comment " diff -ruN --exclude=CVS /usr/ports/security/lasso/files/patch-configure /home/staff/gslin/work/ports/lasso/files/patch-configure --- /usr/ports/security/lasso/files/patch-configure 2007-07-25 15:18:22.000000000 +0800 +++ /home/staff/gslin/work/ports/lasso/files/patch-configure 2007-08-03 10:08:50.000000000 +0800 @@ -1,5 +1,25 @@ ---- configure.orig Mon Jul 16 17:17:17 2007 -+++ configure Mon Jul 16 17:18:09 2007 +--- configure.orig 2007-08-03 10:03:45.000000000 +0800 ++++ configure 2007-08-03 10:08:48.000000000 +0800 +@@ -21215,8 +21215,8 @@ + PHP4_INCLUDES=`$PHP4_CONFIG --includes` + PHP4_LDFLAGS=`$PHP4_CONFIG --ldflags` + PHP4_LIBS=`$PHP4_CONFIG --libs` +- PHP4_UNPREFIXED_EXTENSION_DIR=`$PHP4_CONFIG --extension-dir | $SED 's/\/usr//g'` + PHP4_PREFIX=`$PHP4_CONFIG --prefix` ++ PHP4_UNPREFIXED_EXTENSION_DIR=`$PHP4_CONFIG --extension-dir | $SED "s,^$PHP4_PREFIX,,g"` + else + # We assume PHP are in /usr/local directory. + if test $MINGW -eq 1; then +@@ -21446,8 +21446,8 @@ + PHP5_INCLUDES=`$PHP5_CONFIG --includes` + PHP5_LDFLAGS=`$PHP5_CONFIG --ldflags` + PHP5_LIBS=`$PHP5_CONFIG --libs` +- PHP5_UNPREFIXED_EXTENSION_DIR=`$PHP5_CONFIG --extension-dir | $SED 's/\/usr//g'` + PHP5_PREFIX=`$PHP5_CONFIG --prefix` ++ PHP5_UNPREFIXED_EXTENSION_DIR=`$PHP5_CONFIG --extension-dir | $SED "s,^$PHP5_PREFIX,,g"` + else + # We assume PHP are in /usr/local directory. + if test $MINGW -eq 1; then @@ -22477,12 +22477,12 @@ pkg_cv_LASSO_CFLAGS="$LASSO_CFLAGS" else diff -ruN --exclude=CVS /usr/ports/security/lasso/pkg-plist /home/staff/gslin/work/ports/lasso/pkg-plist --- /usr/ports/security/lasso/pkg-plist 2007-07-25 15:18:22.000000000 +0800 +++ /home/staff/gslin/work/ports/lasso/pkg-plist 2007-08-03 10:16:02.000000000 +0800 @@ -17,6 +17,9 @@ %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/lasso/lasso.bs %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/lasso/lasso.so %%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/lasso.pm +%%WITH_PHP5%%lib/php/%%PHP_EXT_DIR%%/lasso.a +%%WITH_PHP5%%lib/php/%%PHP_EXT_DIR%%/lasso.la +%%WITH_PHP5%%lib/php/%%PHP_EXT_DIR%%/lasso.so %%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/_lasso.a %%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/_lasso.la %%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/_lasso.so @@ -154,5 +157,8 @@ @dirrmtry include/lasso/id-ff @dirrmtry include/lasso @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/lasso +%%WITH_PYTHON%%@dirrmtry %%PYTHON_SITELIBDIR%% +%%WITH_PHP5%%@dirrmtry lib/php/%%PHP_EXT_DIR%% +%%WITH_PHP5%%@dirrmtry lib/php %%WITH_PERL%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/lasso %%PORTDOCS%%@dirrm %%DOCSDIR%% --- lasso-2.0.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070812231512.403531CCC4>