| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.php,v 1.39 2010/02/27 03:25:16 taca Exp $ | | 1 | # $NetBSD: Makefile.php,v 1.40 2010/03/03 10:51:35 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | .include "../../lang/php5/Makefile.common" | | 4 | .include "../../lang/php5/Makefile.common" |
5 | | | 5 | |
6 | DISTINFO_FILE= ${.CURDIR}/../../lang/php5/distinfo | | 6 | DISTINFO_FILE= ${.CURDIR}/../../lang/php5/distinfo |
7 | PATCHDIR= ${.CURDIR}/../../lang/php5/patches | | 7 | PATCHDIR= ${.CURDIR}/../../lang/php5/patches |
8 | | | 8 | |
9 | USE_LIBTOOL= YES | | 9 | USE_LIBTOOL= YES |
10 | USE_LANGUAGES= c c++ | | 10 | USE_LANGUAGES= c c++ |
11 | GNU_CONFIGURE= YES | | 11 | GNU_CONFIGURE= YES |
12 | BUILD_DEFS+= VARBASE | | 12 | BUILD_DEFS+= VARBASE |
13 | PLIST_VARS+= suhosin | | 13 | PLIST_VARS+= suhosin |
14 | | | 14 | |
| @@ -33,27 +33,27 @@ CONFIGURE_ARGS+= --without-pear | | | @@ -33,27 +33,27 @@ CONFIGURE_ARGS+= --without-pear |
33 | | | 33 | |
34 | CONFIGURE_ARGS+= --disable-posix | | 34 | CONFIGURE_ARGS+= --disable-posix |
35 | CONFIGURE_ARGS+= --disable-dom | | 35 | CONFIGURE_ARGS+= --disable-dom |
36 | CONFIGURE_ARGS+= --disable-pdo | | 36 | CONFIGURE_ARGS+= --disable-pdo |
37 | CONFIGURE_ARGS+= --disable-json | | 37 | CONFIGURE_ARGS+= --disable-json |
38 | | | 38 | |
39 | CONFIGURE_ARGS+= --enable-xml | | 39 | CONFIGURE_ARGS+= --enable-xml |
40 | CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX:Q} | | 40 | CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX:Q} |
41 | .include "../../textproc/libxml2/buildlink3.mk" | | 41 | .include "../../textproc/libxml2/buildlink3.mk" |
42 | | | 42 | |
43 | # Note: This expression is the same as ${PKGBASE}, but the latter is | | 43 | # Note: This expression is the same as ${PKGBASE}, but the latter is |
44 | # not defined yet, so we cannot use it here. | | 44 | # not defined yet, so we cannot use it here. |
45 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} | | 45 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} |
46 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts # suhosin | | 46 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin |
47 | PKG_SUGGESTED_OPTIONS+= ssl | | 47 | PKG_SUGGESTED_OPTIONS+= ssl |
48 | | | 48 | |
49 | SUBST_CLASSES+= ini | | 49 | SUBST_CLASSES+= ini |
50 | SUBST_STAGE.ini= post-patch | | 50 | SUBST_STAGE.ini= post-patch |
51 | SUBST_FILES.ini= php.ini-dist | | 51 | SUBST_FILES.ini= php.ini-dist |
52 | SUBST_FILES.ini+= php.ini-recommended | | 52 | SUBST_FILES.ini+= php.ini-recommended |
53 | SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g" | | 53 | SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g" |
54 | SUBST_MESSAGE.ini= Fixing default ini files. | | 54 | SUBST_MESSAGE.ini= Fixing default ini files. |
55 | | | 55 | |
56 | .include "../../mk/bsd.options.mk" | | 56 | .include "../../mk/bsd.options.mk" |
57 | | | 57 | |
58 | .if !empty(PKG_OPTIONS:Msuhosin) | | 58 | .if !empty(PKG_OPTIONS:Msuhosin) |
59 | SUHOSIN_PHPVER= 5.2.12 | | 59 | SUHOSIN_PHPVER= 5.2.12 |