Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / php53 / Makefile.php
blob62bd3e3c95ca44a9c97de86366ef84dd659d79be
1 # $NetBSD: Makefile.php,v 1.31 2013/04/12 16:59:51 taca Exp $
2 # used by lang/php53/Makefile
3 # used by www/ap-php/Makefile
5 .include "../../lang/php53/Makefile.common"
7 DISTINFO_FILE= ${.CURDIR}/../../lang/php53/distinfo
8 PATCHDIR= ${.CURDIR}/../../lang/php53/patches
10 USE_LIBTOOL= YES
11 USE_LANGUAGES= c c++
12 GNU_CONFIGURE= YES
13 BUILD_DEFS+= VARBASE
14 PLIST_VARS+= suhosin
16 CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
18 .include "../../mk/bsd.prefs.mk"
20 CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}
21 CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
22 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
23 CONFIGURE_ARGS+= --localstatedir=${VARBASE}
25 CONFIGURE_ARGS+= --with-regex=system
27 CONFIGURE_ARGS+= --without-mysql
28 CONFIGURE_ARGS+= --without-sqlite
29 #CONFIGURE_ARGS+= --without-sqlite3
30 CONFIGURE_ARGS+= --without-iconv
31 CONFIGURE_ARGS+= --without-pear
32 #CONFIGURE_ARGS+= --without-intl
34 CONFIGURE_ARGS+= --disable-posix
35 CONFIGURE_ARGS+= --disable-dom
36 CONFIGURE_ARGS+= --disable-pdo
37 CONFIGURE_ARGS+= --disable-json
39 CONFIGURE_ARGS+= --enable-cgi
40 CONFIGURE_ARGS+= --enable-xml
41 CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
42 .include "../../textproc/libxml2/buildlink3.mk"
44 # Note: This expression is the same as ${PKGBASE}, but the latter is
45 # not defined yet, so we cannot use it here.
46 PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
47 PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin readline
48 PKG_SUGGESTED_OPTIONS+= inet6 ssl
50 #SUBST_CLASSES+= ini
51 #SUBST_STAGE.ini= post-patch
52 #SUBST_FILES.ini= php.ini-development
53 #SUBST_FILES.ini+= php.ini-production
54 #SUBST_SED.ini= -e "s|\\;include_path = \".:/php/includes\"|include_path = \".:${PREFIX}/lib/php\"|g"
55 #SUBST_MESSAGE.ini= Fixing default ini files.
57 .include "../../mk/bsd.options.mk"
59 .if !empty(PKG_OPTIONS:Msuhosin)
60 SUHOSIN_PHPVER= 5.3.23
61 . if ${SUHOSIN_PHPVER} != ${PHP_BASE_VERS} && ${PHP_BASE_VERS} != "5.3.24"
62 PKG_FAIL_REASON+= "The suhosin patch is currently not available for"
63 PKG_FAIL_REASON+= "this version of PHP. You may have to wait until"
64 PKG_FAIL_REASON+= "an updated patch is released or temporarily"
65 PKG_FAIL_REASON+= "build this package without the suhosin option."
66 . else
67 PATCH_SITES= ${MASTER_SITE_LOCAL}
68 PATCHFILES+= suhosin-patch-${SUHOSIN_PHPVER}-0.9.10.patch.bz2
69 PLIST.suhosin= yes
70 MESSAGE_SRC= ${.CURDIR}/../../lang/php53/MESSAGE
71 MESSAGE_SRC+= ${.CURDIR}/../../lang/php53/MESSAGE.suhosin
73 . endif
74 .endif
76 .if !empty(PKG_OPTIONS:Minet6)
77 CONFIGURE_ARGS+= --enable-ipv6
78 .else
79 CONFIGURE_ARGS+= --disable-ipv6
80 .endif
82 .if !empty(PKG_OPTIONS:Mssl)
83 . include "../../security/openssl/buildlink3.mk"
84 . if ${OPSYS} == "SunOS"
85 CONFIGURE_ARGS+= --with-openssl=yes
86 LIBS.SunOS+= -lcrypto
87 . else
88 CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
89 . endif
90 .else
91 CONFIGURE_ARGS+= --without-openssl
92 .endif
94 .if !empty(PKG_OPTIONS:Mmaintainer-zts)
95 CONFIGURE_ARGS+= --enable-maintainer-zts
96 .endif
98 .if !empty(PKG_OPTIONS:Mreadline)
99 USE_GNU_READLINE= yes
100 .include "../../devel/readline/buildlink3.mk"
101 CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
102 .else
103 CONFIGURE_ARGS+= --without-readline
104 .endif
106 DL_AUTO_VARS= yes
107 .include "../../mk/dlopen.buildlink3.mk"