Annotation of pkgsrc/lang/php82/Makefile.php, revision 1.2
1.2 ! taca 1: # $NetBSD: Makefile.php,v 1.1 2022/12/11 14:12:29 taca Exp $
1.1 taca 2: # used by lang/php82/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/php82/Makefile.common"
23:
24: DISTINFO_FILE= ${.CURDIR}/../../lang/php82/distinfo
25: PATCHDIR= ${.CURDIR}/../../lang/php82/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
36: CONFIGURE_ARGS+= --with-external-pcre
37:
38: CONFIGURE_ARGS+= --disable-intl
39: CONFIGURE_ARGS+= --disable-posix
40: CONFIGURE_ARGS+= --disable-opcache
41: CONFIGURE_ARGS+= --disable-pdo
42:
43: CONFIGURE_ARGS+= --enable-cgi
44: CONFIGURE_ARGS+= --enable-mysqlnd
45: CONFIGURE_ARGS+= --enable-xml
46: #CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
47:
48: CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
49:
1.2 ! taca 50: SUBST_CLASSES+= path
! 51: SUBST_MESSAGE.path= Fixing common paths.
! 52: SUBST_STAGE.path= pre-configure
! 53: SUBST_FILES.path= build/php.m4
! 54: SUBST_FILES.path+= php.ini-development php.ini-production
! 55: SUBST_FILES.path+= sapi/cgi/Makefile.frag
! 56: SUBST_VARS.path= CGIDIR
! 57: SUBST_VARS.path+= PREFIX
! 58: SUBST_VARS.path+= TOOLS_PATH.pkg-config PHP_PKGCONFIG_PATH
! 59:
1.1 taca 60: .include "../../textproc/libxml2/buildlink3.mk"
61:
62: #CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
63:
64: .include "options.mk"
65:
66: DL_AUTO_VARS= yes
67: .include "../../mk/dlopen.buildlink3.mk"
CVSweb <webmaster@jp.NetBSD.org>