pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: configure options



On Sat, Jun 30, 2007 at 02:27:55AM +0200, mortee wrote:
> I'm wondering what's the best/preferred way to pass options like
> "--enable-sysvsem" to the configure process of a package (namely
> lang/php5), when I build using pkgsrc. I know there's PKG_OPTIONS.php,
> but it doesn't cover the feature I'm looking for.

Please apply the attached patch to "pkgsrc/lang/php5" (HEAD or
pkgsrc-2007Q2 branch) and try building the package with
"PKG_OPTIONS.php" set to e.g. "cgi inet6 ssl sysvsem".

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php5/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile    11 Jun 2007 17:45:30 -0000      1.55
+++ Makefile    2 Jul 2007 13:13:07 -0000
@@ -15,6 +15,7 @@
 PKG_OPTIONS_REQUIRED_GROUPS+=  sapi
 PKG_OPTIONS_GROUP.sapi=        cgi fastcgi
 PKG_SUGGESTED_OPTIONS+=        cgi
+PKG_SUPPORTED_OPTIONS+= sysvsem
 
 .include "Makefile.php"
 
@@ -27,6 +28,10 @@
 CONFIGURE_ARGS+=       --enable-fastcgi
 .endif
 
+.if !empty(PKG_OPTIONS:Msysvsem)
+CONFIGURE_ARGS+=       --enable-sysvsem
+.endif
+
 CGIDIR=                        ${PREFIX}/libexec/cgi-bin
 EGDIR=                 ${PREFIX}/share/examples/php
 MESSAGE_SUBST+=                CGIDIR=${CGIDIR:Q}


Home | Main Index | Thread Index | Old Index