Annotation of pkgsrc/lang/php74/Makefile.php, revision 1.6

1.6     ! taca        1: # $NetBSD: Makefile.php,v 1.5 2021/01/02 10:04:11 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: CONFIGURE_ARGS+=       --with-pear=${PREFIX}/${PHP_LIBDIR}
        !            38: 
1.1       taca       39: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
                     40: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
                     41: 
                     42: CONFIGURE_ARGS+=       --without-mysqli
                     43: CONFIGURE_ARGS+=       --without-iconv
                     44: CONFIGURE_ARGS+=       --without-pear
                     45: CONFIGURE_ARGS+=       --without-sqlite3
1.2       taca       46: CONFIGURE_ARGS+=       --with-external-pcre
1.1       taca       47: 
1.2       taca       48: CONFIGURE_ARGS+=       --disable-intl
1.1       taca       49: CONFIGURE_ARGS+=       --disable-posix
                     50: CONFIGURE_ARGS+=       --disable-opcache
                     51: CONFIGURE_ARGS+=       --disable-pdo
                     52: CONFIGURE_ARGS+=       --disable-json
                     53: 
                     54: CONFIGURE_ARGS+=       --enable-cgi
                     55: CONFIGURE_ARGS+=       --enable-mysqlnd
                     56: CONFIGURE_ARGS+=       --enable-xml
                     57: #CONFIGURE_ARGS+=      --with-libxml-dir=${PREFIX}
                     58: 
1.6     ! taca       59: CONFIGURE_ENV+=                PHP_VER=${PHP_VER}
        !            60: CONFIGURE_ENV+=                PHP_VAR_SUBST=PHP_VER
1.1       taca       61: CONFIGURE_ENV+=                EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
                     62: 
1.6     ! taca       63: SUBST_CLASSES+=                path
        !            64: SUBST_MESSAGE.path=    Fixing common paths.
        !            65: SUBST_STAGE.path=      pre-configure
        !            66: SUBST_FILES.path+=     php.ini-development php.ini-production
        !            67: SUBST_FILES.path+=     sapi/cgi/Makefile.frag
        !            68: SUBST_FILES.path+=     sapi/fpm/php-fpm.conf.in sapi/fpm/www.conf.in
        !            69: SUBST_FILES.path+=     sapi/fpm/fpm/fpm_conf.c
        !            70: SUBST_FILES.path+=     scripts/php-config.in scripts/phpize.in
        !            71: SUBST_VARS.path+=      PREFIX CGIDIR PHP_VER PHP_API_VERS
        !            72: SUBST_VARS.path+=      PHP_EGDIR PHP_INCDIR PHP_LIBDIR
        !            73: SUBST_VARS.path+=      TOOLS_PATH.pkg-config PHP_PKGCONFIG_PATH
        !            74: 
1.1       taca       75: .include "../../textproc/libxml2/buildlink3.mk"
                     76: 
                     77: #CONFIGURE_ARGS+=      --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
                     78: 
1.5       taca       79: .include "options.mk"
1.3       otis       80: 
1.1       taca       81: DL_AUTO_VARS=          yes
                     82: .include "../../mk/dlopen.buildlink3.mk"

CVSweb <webmaster@jp.NetBSD.org>