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

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

CVSweb <webmaster@jp.NetBSD.org>