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

1.2     ! taca        1: # $NetBSD: Makefile.php,v 1.1 2019/12/15 17:56:34 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: 
                     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: 
                     55: PKG_OPTIONS_VAR=       PKG_OPTIONS.${PHP_PKG_PREFIX}
                     56: PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts readline argon2
                     57: PKG_SUPPORTED_OPTIONS+=        disable-filter-url
                     58: PKG_SUGGESTED_OPTIONS+=        inet6 ssl readline
                     59: 
                     60: .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
                     61: PKG_SUPPORTED_OPTIONS+=        dtrace
                     62: .endif
                     63: 
                     64: .include "../../mk/bsd.options.mk"
                     65: 
                     66: .if !empty(PKG_OPTIONS:Minet6)
                     67: CONFIGURE_ARGS+=       --enable-ipv6
                     68: .else
                     69: CONFIGURE_ARGS+=       --disable-ipv6
                     70: .endif
                     71: 
                     72: .if !empty(PKG_OPTIONS:Mssl)
                     73: .  include "../../security/openssl/buildlink3.mk"
                     74: .  if ${OPSYS} == "SunOS"
                     75: CONFIGURE_ARGS+=       --with-openssl=yes
                     76: LIBS.SunOS+=           -lcrypto
                     77: .  else
                     78: CONFIGURE_ARGS+=       --with-openssl=${BUILDLINK_PREFIX.openssl}
                     79: .  endif
                     80: .else
                     81: CONFIGURE_ARGS+=       --without-openssl
                     82: .endif
                     83: 
                     84: .if !empty(PKG_OPTIONS:Mmaintainer-zts)
                     85: CONFIGURE_ARGS+=       --enable-maintainer-zts
                     86: .endif
                     87: 
                     88: .if !empty(PKG_OPTIONS:Mreadline)
                     89: .include "../../devel/readline/buildlink3.mk"
                     90: CONFIGURE_ARGS+=       --with-readline=${BUILDLINK_PREFIX.readline}
                     91: .else
                     92: CONFIGURE_ARGS+=       --without-readline
                     93: .endif
                     94: 
                     95: .if !empty(PKG_OPTIONS:Mdtrace)
                     96: PLIST.dtrace=          yes
                     97: CONFIGURE_ARGS+=       --enable-dtrace
                     98: 
                     99: # See https://bugs.php.net/bug.php?id=61268
                    100: INSTALL_MAKE_FLAGS+=   -r
                    101: .endif
                    102: 
                    103: .if !empty(PKG_OPTIONS:Margon2)
                    104: CONFIGURE_ARGS+=       --with-password-argon2=${BUILDLINK_PREFIX.argon2}
                    105: .include "../../security/argon2/buildlink3.mk"
                    106: .endif
                    107: 
                    108: .if !empty(PKG_OPTIONS:Mdisable-filter-url)
                    109: CFLAGS+=               -DDISABLE_FILTER_URL
                    110: .endif
                    111: 
                    112: DL_AUTO_VARS=          yes
                    113: .include "../../mk/dlopen.buildlink3.mk"

CVSweb <webmaster@jp.NetBSD.org>