| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.php,v 1.11 2018/12/09 12:14:36 taca Exp $ | | 1 | # $NetBSD: Makefile.php,v 1.12 2018/12/12 15:44:43 taca Exp $ |
2 | # used by lang/php72/Makefile | | 2 | # used by lang/php72/Makefile |
3 | # used by www/ap-php/Makefile | | 3 | # used by www/ap-php/Makefile |
4 | # used by www/php-fpm/Makefile | | 4 | # used by www/php-fpm/Makefile |
5 | | | 5 | |
6 | # segfaults when buidling with many compilers | | 6 | # segfaults when buidling with many compilers |
7 | # https://bugs.php.net/bug.php?id=74527 | | 7 | # https://bugs.php.net/bug.php?id=74527 |
8 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236 | | 8 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236 |
9 | .if ${MACHINE_ARCH} == "i386" | | 9 | .if ${MACHINE_ARCH} == "i386" |
10 | CONFIGURE_ARGS+= --disable-gcc-global-regs | | 10 | CONFIGURE_ARGS+= --disable-gcc-global-regs |
11 | .endif | | 11 | .endif |
12 | | | 12 | |
13 | # the binary actually needs full dep on PCRE | | 13 | # the binary actually needs full dep on PCRE |
14 | BUILDLINK_DEPMETHOD.pcre= full | | 14 | BUILDLINK_DEPMETHOD.pcre= full |
| @@ -43,29 +43,29 @@ CONFIGURE_ARGS+= --disable-posix | | | @@ -43,29 +43,29 @@ CONFIGURE_ARGS+= --disable-posix |
43 | CONFIGURE_ARGS+= --disable-opcache | | 43 | CONFIGURE_ARGS+= --disable-opcache |
44 | CONFIGURE_ARGS+= --disable-pdo | | 44 | CONFIGURE_ARGS+= --disable-pdo |
45 | CONFIGURE_ARGS+= --disable-json | | 45 | CONFIGURE_ARGS+= --disable-json |
46 | | | 46 | |
47 | CONFIGURE_ARGS+= --enable-cgi | | 47 | CONFIGURE_ARGS+= --enable-cgi |
48 | CONFIGURE_ARGS+= --enable-mysqlnd | | 48 | CONFIGURE_ARGS+= --enable-mysqlnd |
49 | CONFIGURE_ARGS+= --enable-xml | | 49 | CONFIGURE_ARGS+= --enable-xml |
50 | CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} | | 50 | CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} |
51 | .include "../../textproc/libxml2/buildlink3.mk" | | 51 | .include "../../textproc/libxml2/buildlink3.mk" |
52 | | | 52 | |
53 | CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre} | | 53 | CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre} |
54 | | | 54 | |
55 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | | 55 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} |
56 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 sqlite3 | | 56 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 |
57 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | | 57 | PKG_SUPPORTED_OPTIONS+= disable-filter-url |
58 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline sqlite3 | | 58 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline |
59 | | | 59 | |
60 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | | 60 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" |
61 | PKG_SUPPORTED_OPTIONS+= dtrace | | 61 | PKG_SUPPORTED_OPTIONS+= dtrace |
62 | .endif | | 62 | .endif |
63 | | | 63 | |
64 | .include "../../mk/bsd.options.mk" | | 64 | .include "../../mk/bsd.options.mk" |
65 | | | 65 | |
66 | .if !empty(PKG_OPTIONS:Minet6) | | 66 | .if !empty(PKG_OPTIONS:Minet6) |
67 | CONFIGURE_ARGS+= --enable-ipv6 | | 67 | CONFIGURE_ARGS+= --enable-ipv6 |
68 | .else | | 68 | .else |
69 | CONFIGURE_ARGS+= --disable-ipv6 | | 69 | CONFIGURE_ARGS+= --disable-ipv6 |
70 | .endif | | 70 | .endif |
71 | | | 71 | |
| @@ -96,26 +96,19 @@ CONFIGURE_ARGS+= --without-readline | | | @@ -96,26 +96,19 @@ CONFIGURE_ARGS+= --without-readline |
96 | .if !empty(PKG_OPTIONS:Mdtrace) | | 96 | .if !empty(PKG_OPTIONS:Mdtrace) |
97 | PLIST.dtrace= yes | | 97 | PLIST.dtrace= yes |
98 | CONFIGURE_ARGS+= --enable-dtrace | | 98 | CONFIGURE_ARGS+= --enable-dtrace |
99 | | | 99 | |
100 | # See https://bugs.php.net/bug.php?id=61268 | | 100 | # See https://bugs.php.net/bug.php?id=61268 |
101 | INSTALL_MAKE_FLAGS+= -r | | 101 | INSTALL_MAKE_FLAGS+= -r |
102 | .endif | | 102 | .endif |
103 | | | 103 | |
104 | .if !empty(PKG_OPTIONS:Margon2) | | 104 | .if !empty(PKG_OPTIONS:Margon2) |
105 | CONFIGURE_ARGS+= --with-password-argon2=${BUILDLINK_PREFIX.argon2} | | 105 | CONFIGURE_ARGS+= --with-password-argon2=${BUILDLINK_PREFIX.argon2} |
106 | .include "../../security/argon2/buildlink3.mk" | | 106 | .include "../../security/argon2/buildlink3.mk" |
107 | .endif | | 107 | .endif |
108 | | | 108 | |
109 | .if !empty(PKG_OPTIONS:Msqlite3) | | | |
110 | CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3} | | | |
111 | .include "../../databases/sqlite3/buildlink3.mk" | | | |
112 | .else | | | |
113 | CONFIGURE_ARGS+= --without-sqlite3 | | | |
114 | .endif | | | |
115 | | | | |
116 | .if !empty(PKG_OPTIONS:Mdisable-filter-url) | | 109 | .if !empty(PKG_OPTIONS:Mdisable-filter-url) |
117 | CFLAGS+= -DDISABLE_FILTER_URL | | 110 | CFLAGS+= -DDISABLE_FILTER_URL |
118 | .endif | | 111 | .endif |
119 | | | 112 | |
120 | DL_AUTO_VARS= yes | | 113 | DL_AUTO_VARS= yes |
121 | .include "../../mk/dlopen.buildlink3.mk" | | 114 | .include "../../mk/dlopen.buildlink3.mk" |