Subject: Re: configure options
To: mortee <mortee.lists@kavemalna.hu>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-users
Date: 07/02/2007 14:23:18
--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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/
--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="php5.patch"
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}
--ikeVEW9yuYc//A+q--