Annotation of pkgsrc/lang/php74/Makefile.php, revision 1.5
1.5 ! taca 1: # $NetBSD: Makefile.php,v 1.4 2020/11/21 19:42:25 otis Exp $
1.1 taca 2: # used by lang/php74/Makefile
3: # used by www/ap-php/Makefile
4: # used by www/php-fpm/Makefile
5:
6: # segfaults when buidling with many compilers
7: # https://bugs.php.net/bug.php?id=74527
8: # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236
9: .if ${MACHINE_ARCH} == "i386"
10: CONFIGURE_ARGS+= --disable-gcc-global-regs
11: .endif
12:
13: # the binary actually needs full dep on PCRE
14: BUILDLINK_DEPMETHOD.pcre2= full
15:
16: USE_LIBTOOL= YES
17: USE_LANGUAGES= c c++
18: GNU_CONFIGURE= YES
19: BUILD_DEFS+= VARBASE
20: PLIST_VARS+= dtrace
21:
22: .include "../../lang/php74/Makefile.common"
23:
24: DISTINFO_FILE= ${.CURDIR}/../../lang/php74/distinfo
25: PATCHDIR= ${.CURDIR}/../../lang/php74/patches
26:
27: CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}
28: CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
29: CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
30: CONFIGURE_ARGS+= --localstatedir=${VARBASE}
31:
32: CONFIGURE_ARGS+= --without-mysqli
33: CONFIGURE_ARGS+= --without-iconv
34: CONFIGURE_ARGS+= --without-pear
35: CONFIGURE_ARGS+= --without-sqlite3
1.2 taca 36: CONFIGURE_ARGS+= --with-external-pcre
1.1 taca 37:
1.2 taca 38: CONFIGURE_ARGS+= --disable-intl
1.1 taca 39: CONFIGURE_ARGS+= --disable-posix
40: CONFIGURE_ARGS+= --disable-opcache
41: CONFIGURE_ARGS+= --disable-pdo
42: CONFIGURE_ARGS+= --disable-json
43:
44: CONFIGURE_ARGS+= --enable-cgi
45: CONFIGURE_ARGS+= --enable-mysqlnd
46: CONFIGURE_ARGS+= --enable-xml
47: #CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
48:
49: CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
50:
51: .include "../../textproc/libxml2/buildlink3.mk"
52:
53: #CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
54:
1.5 ! taca 55: .include "options.mk"
1.3 otis 56:
1.1 taca 57: DL_AUTO_VARS= yes
58: .include "../../mk/dlopen.buildlink3.mk"
CVSweb <webmaster@jp.NetBSD.org>