| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.php,v 1.3 2010/07/24 22:23:37 tron Exp $ | | 1 | # $NetBSD: Makefile.php,v 1.4 2011/01/30 17:58:06 rumko Exp $ |
2 | # used by lang/php53/Makefile | | 2 | # used by lang/php53/Makefile |
3 | # used by www/ap-php/Makefile | | 3 | # used by www/ap-php/Makefile |
4 | | | 4 | |
5 | .include "../../lang/php53/Makefile.common" | | 5 | .include "../../lang/php53/Makefile.common" |
6 | | | 6 | |
7 | DISTINFO_FILE= ${.CURDIR}/../../lang/php53/distinfo | | 7 | DISTINFO_FILE= ${.CURDIR}/../../lang/php53/distinfo |
8 | PATCHDIR= ${.CURDIR}/../../lang/php53/patches | | 8 | PATCHDIR= ${.CURDIR}/../../lang/php53/patches |
9 | | | 9 | |
10 | USE_LIBTOOL= YES | | 10 | USE_LIBTOOL= YES |
11 | USE_LANGUAGES= c c++ | | 11 | USE_LANGUAGES= c c++ |
12 | GNU_CONFIGURE= YES | | 12 | GNU_CONFIGURE= YES |
13 | BUILD_DEFS+= VARBASE | | 13 | BUILD_DEFS+= VARBASE |
14 | PLIST_VARS+= suhosin | | 14 | PLIST_VARS+= suhosin |
| @@ -49,28 +49,28 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C | | | @@ -49,28 +49,28 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C |
49 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin | | 49 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin |
50 | PKG_SUGGESTED_OPTIONS+= inet6 ssl | | 50 | PKG_SUGGESTED_OPTIONS+= inet6 ssl |
51 | | | 51 | |
52 | #SUBST_CLASSES+= ini | | 52 | #SUBST_CLASSES+= ini |
53 | #SUBST_STAGE.ini= post-patch | | 53 | #SUBST_STAGE.ini= post-patch |
54 | #SUBST_FILES.ini= php.ini-development | | 54 | #SUBST_FILES.ini= php.ini-development |
55 | #SUBST_FILES.ini+= php.ini-production | | 55 | #SUBST_FILES.ini+= php.ini-production |
56 | #SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g" | | 56 | #SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g" |
57 | #SUBST_MESSAGE.ini= Fixing default ini files. | | 57 | #SUBST_MESSAGE.ini= Fixing default ini files. |
58 | | | 58 | |
59 | .include "../../mk/bsd.options.mk" | | 59 | .include "../../mk/bsd.options.mk" |
60 | | | 60 | |
61 | .if !empty(PKG_OPTIONS:Msuhosin) | | 61 | .if !empty(PKG_OPTIONS:Msuhosin) |
62 | SUHOSIN_PHPVER= 5.3.3 | | 62 | SUHOSIN_PHPVER= 5.3.4 |
63 | . if ${SUHOSIN_PHPVER} != ${PHP_BASE_VERS} | | 63 | . if ${SUHOSIN_PHPVER} != ${PHP_BASE_VERS} && (${SUHOSIN_PHPVER} != "5.3.4" || ${PHP_BASE_VERS} != "5.3.5") |
64 | PKG_FAIL_REASON+= "The suhosin patch is currently not available for" | | 64 | PKG_FAIL_REASON+= "The suhosin patch is currently not available for" |
65 | PKG_FAIL_REASON+= "this version of PHP. You may have to wait until" | | 65 | PKG_FAIL_REASON+= "this version of PHP. You may have to wait until" |
66 | PKG_FAIL_REASON+= "an updated patch is released or temporarily" | | 66 | PKG_FAIL_REASON+= "an updated patch is released or temporarily" |
67 | PKG_FAIL_REASON+= "build this package without the suhosin option." | | 67 | PKG_FAIL_REASON+= "build this package without the suhosin option." |
68 | . else | | 68 | . else |
69 | PATCH_SITES= http://download.suhosin.org/ | | 69 | PATCH_SITES= http://download.suhosin.org/ |
70 | PATCHFILES+= suhosin-patch-${SUHOSIN_PHPVER}-0.9.10.patch.gz | | 70 | PATCHFILES+= suhosin-patch-${SUHOSIN_PHPVER}-0.9.10.patch.gz |
71 | PATCH_DIST_STRIP= -p1 | | 71 | PATCH_DIST_STRIP= -p1 |
72 | PLIST.suhosin= yes | | 72 | PLIST.suhosin= yes |
73 | MESSAGE_SRC= ${.CURDIR}/../../lang/php53/MESSAGE | | 73 | MESSAGE_SRC= ${.CURDIR}/../../lang/php53/MESSAGE |
74 | MESSAGE_SRC+= ${.CURDIR}/../../lang/php53/MESSAGE.suhosin | | 74 | MESSAGE_SRC+= ${.CURDIR}/../../lang/php53/MESSAGE.suhosin |
75 | . endif | | 75 | . endif |
76 | .endif | | 76 | .endif |