Fri Aug 8 20:01:34 2008 UTC ()
Add maintainer-zts option
Suggested by riz@ in PR 39312


(adrianp)
diff -r1.27 -r1.28 pkgsrc/lang/php5/Makefile.php

cvs diff -r1.27 -r1.28 pkgsrc/lang/php5/Attic/Makefile.php (expand / switch to unified diff)

--- pkgsrc/lang/php5/Attic/Makefile.php 2008/07/08 20:28:55 1.27
+++ pkgsrc/lang/php5/Attic/Makefile.php 2008/08/08 20:01:34 1.28
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.php,v 1.27 2008/07/08 20:28:55 adrianp Exp $ 1# $NetBSD: Makefile.php,v 1.28 2008/08/08 20:01:34 adrianp Exp $
2# 2#
3 3
4.include "../../lang/php5/Makefile.common" 4.include "../../lang/php5/Makefile.common"
5 5
6DISTINFO_FILE= ${.CURDIR}/../../lang/php5/distinfo 6DISTINFO_FILE= ${.CURDIR}/../../lang/php5/distinfo
7PATCHDIR= ${.CURDIR}/../../lang/php5/patches 7PATCHDIR= ${.CURDIR}/../../lang/php5/patches
8 8
9USE_LIBTOOL= YES 9USE_LIBTOOL= YES
10USE_LANGUAGES= c c++ 10USE_LANGUAGES= c c++
11GNU_CONFIGURE= YES 11GNU_CONFIGURE= YES
12BUILD_DEFS+= VARBASE 12BUILD_DEFS+= VARBASE
13 13
14CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}" 14CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
@@ -31,30 +31,34 @@ CONFIGURE_ARGS+= --without-pear @@ -31,30 +31,34 @@ CONFIGURE_ARGS+= --without-pear
31 31
32CONFIGURE_ARGS+= --disable-posix 32CONFIGURE_ARGS+= --disable-posix
33CONFIGURE_ARGS+= --disable-dom 33CONFIGURE_ARGS+= --disable-dom
34CONFIGURE_ARGS+= --disable-pdo 34CONFIGURE_ARGS+= --disable-pdo
35CONFIGURE_ARGS+= --disable-json 35CONFIGURE_ARGS+= --disable-json
36 36
37CONFIGURE_ARGS+= --enable-xml 37CONFIGURE_ARGS+= --enable-xml
38CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX:Q} 38CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX:Q}
39.include "../../textproc/libxml2/buildlink3.mk" 39.include "../../textproc/libxml2/buildlink3.mk"
40 40
41# Note: This expression is the same as ${PKGBASE}, but the latter is 41# Note: This expression is the same as ${PKGBASE}, but the latter is
42# not defined yet, so we cannot use it here. 42# not defined yet, so we cannot use it here.
43PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} 43PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
44PKG_SUPPORTED_OPTIONS+= inet6 ssl 44PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts
45PKG_SUGGESTED_OPTIONS+= ssl 45PKG_SUGGESTED_OPTIONS+= ssl
46 46
47.include "../../mk/bsd.options.mk" 47.include "../../mk/bsd.options.mk"
48 48
49.if !empty(PKG_OPTIONS:Minet6) 49.if !empty(PKG_OPTIONS:Minet6)
50CONFIGURE_ARGS+= --enable-ipv6 50CONFIGURE_ARGS+= --enable-ipv6
51.else 51.else
52CONFIGURE_ARGS+= --disable-ipv6 52CONFIGURE_ARGS+= --disable-ipv6
53.endif 53.endif
54 54
55.if !empty(PKG_OPTIONS:Mssl) 55.if !empty(PKG_OPTIONS:Mssl)
56. include "../../security/openssl/buildlink3.mk" 56. include "../../security/openssl/buildlink3.mk"
57CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} 57CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
58.else 58.else
59CONFIGURE_ARGS+= --without-openssl 59CONFIGURE_ARGS+= --without-openssl
60.endif 60.endif
 61
 62.if !empty(PKG_OPTIONS:Mmaintainer-zts)
 63CONFIGURE_ARGS+= --enable-maintainer-zts
 64.endif