Annotation of pkgsrc/lang/php74/Makefile.php, revision 1.7
1.7 ! taca 1: # $NetBSD: Makefile.php,v 1.6 2025/02/08 02:58:55 taca 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:
1.6 taca 27: PLIST_SUBST+= PHP_VER="${PHP_VER}"
28:
29: PRINT_PLIST_AWK+= /${PHP_EXTENSION_DIR:S/\//\\\//g}/ \
30: { sub(/${PHP_EXTENSION_DIR:S/\//\\\//g}/, \
31: "$${PHP_EXTENSION_DIR}") }
32: PRINT_PLIST_AWK+= /${PHP_VER}/ { sub(/${PHP_VER}/, "$${PHP_VER}") }
33:
34: CONFIGURE_ARGS+= --program-suffix=${PHP_VER}
1.1 taca 35: CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}
36: CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
1.6 taca 37:
1.1 taca 38: CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
1.7 ! taca 39: CONFIGURE_ARGS+= --libdir=${PREFIX}/${PHP_LIBDIR}
! 40: CONFIGURE_ARGS+= --datadir=${PREFIX}/${PHP_SHAREDIR}
1.1 taca 41: CONFIGURE_ARGS+= --localstatedir=${VARBASE}
42:
43: CONFIGURE_ARGS+= --without-mysqli
44: CONFIGURE_ARGS+= --without-iconv
45: CONFIGURE_ARGS+= --without-pear
46: CONFIGURE_ARGS+= --without-sqlite3
1.2 taca 47: CONFIGURE_ARGS+= --with-external-pcre
1.1 taca 48:
1.2 taca 49: CONFIGURE_ARGS+= --disable-intl
1.1 taca 50: CONFIGURE_ARGS+= --disable-posix
51: CONFIGURE_ARGS+= --disable-opcache
52: CONFIGURE_ARGS+= --disable-pdo
53: CONFIGURE_ARGS+= --disable-json
54:
55: CONFIGURE_ARGS+= --enable-cgi
56: CONFIGURE_ARGS+= --enable-mysqlnd
57: CONFIGURE_ARGS+= --enable-xml
58: #CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
59:
1.6 taca 60: CONFIGURE_ENV+= PHP_VER=${PHP_VER}
61: CONFIGURE_ENV+= PHP_VAR_SUBST=PHP_VER
1.1 taca 62: CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
63:
1.6 taca 64: SUBST_CLASSES+= path
65: SUBST_MESSAGE.path= Fixing common paths.
66: SUBST_STAGE.path= pre-configure
67: SUBST_FILES.path+= php.ini-development php.ini-production
68: SUBST_FILES.path+= sapi/cgi/Makefile.frag
69: SUBST_FILES.path+= sapi/fpm/php-fpm.conf.in sapi/fpm/www.conf.in
70: SUBST_FILES.path+= sapi/fpm/fpm/fpm_conf.c
71: SUBST_FILES.path+= scripts/php-config.in scripts/phpize.in
72: SUBST_VARS.path+= PREFIX CGIDIR PHP_VER PHP_API_VERS
73: SUBST_VARS.path+= PHP_EGDIR PHP_INCDIR PHP_LIBDIR
74: SUBST_VARS.path+= TOOLS_PATH.pkg-config PHP_PKGCONFIG_PATH
75:
1.1 taca 76: .include "../../textproc/libxml2/buildlink3.mk"
77:
78: #CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
79:
1.5 taca 80: .include "options.mk"
1.3 otis 81:
1.1 taca 82: DL_AUTO_VARS= yes
83: .include "../../mk/dlopen.buildlink3.mk"
CVSweb <webmaster@jp.NetBSD.org>