| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.1 2021/01/02 10:04:10 taca Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2021/12/19 14:05:27 taca Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} |
4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed | | 4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed |
5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | | 5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url |
6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline | | 6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline |
7 | | | 7 | |
8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | | 8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" |
9 | PKG_SUPPORTED_OPTIONS+= dtrace | | 9 | PKG_SUPPORTED_OPTIONS+= dtrace |
10 | .endif | | 10 | .endif |
11 | | | 11 | |
12 | .include "../../mk/bsd.options.mk" | | 12 | .include "../../mk/bsd.options.mk" |
13 | | | 13 | |
14 | .if !empty(PKG_OPTIONS:Minet6) | | 14 | .if !empty(PKG_OPTIONS:Minet6) |
| @@ -47,27 +47,27 @@ CONFIGURE_ARGS+= --enable-dtrace | | | @@ -47,27 +47,27 @@ CONFIGURE_ARGS+= --enable-dtrace |
47 | # See https://bugs.php.net/bug.php?id=61268 | | 47 | # See https://bugs.php.net/bug.php?id=61268 |
48 | INSTALL_MAKE_FLAGS+= -r | | 48 | INSTALL_MAKE_FLAGS+= -r |
49 | .endif | | 49 | .endif |
50 | | | 50 | |
51 | .if !empty(PKG_OPTIONS:Margon2) | | 51 | .if !empty(PKG_OPTIONS:Margon2) |
52 | CONFIGURE_ARGS+= --with-password-argon2=${BUILDLINK_PREFIX.argon2} | | 52 | CONFIGURE_ARGS+= --with-password-argon2=${BUILDLINK_PREFIX.argon2} |
53 | .include "../../security/argon2/buildlink3.mk" | | 53 | .include "../../security/argon2/buildlink3.mk" |
54 | .endif | | 54 | .endif |
55 | | | 55 | |
56 | .if !empty(PKG_OPTIONS:Mdisable-filter-url) | | 56 | .if !empty(PKG_OPTIONS:Mdisable-filter-url) |
57 | CFLAGS+= -DDISABLE_FILTER_URL | | 57 | CFLAGS+= -DDISABLE_FILTER_URL |
58 | .endif | | 58 | .endif |
59 | | | 59 | |
60 | PLIST_VARS+= embed | | 60 | PLIST_VARS+= embed |
61 | | | 61 | |
62 | .if !empty(PKGNAME:Mphp-[7-9]*) | | 62 | .if !empty(PKGNAME:Mphp-[7-9]*) |
63 | .if !empty(PKG_OPTIONS:Mphp-embed) | | 63 | .if !empty(PKG_OPTIONS:Mphp-embed) |
64 | CONFIGURE_ARGS+= --enable-embed | | 64 | CONFIGURE_ARGS+= --enable-embed |
65 | INSTALLATION_DIRS+= include/php/sapi/embed | | 65 | INSTALLATION_DIRS+= include/php/sapi/embed |
66 | PLIST.embed= yes | | 66 | PLIST.embed= yes |
67 | | | 67 | |
68 | .PHONY: post-install-embed | | 68 | .PHONY: post-install-embed |
69 | post-install: post-install-embed | | 69 | post-install: post-install-embed |
70 | post-install-embed: | | 70 | post-install-embed: |
71 | ${INSTALL_DATA} ${WRKSRC}/sapi/embed/php_embed.h ${DESTDIR}${PREFIX}/include/php/sapi/embed/ | | 71 | ${INSTALL_DATA} ${WRKSRC}/sapi/embed/php_embed.h ${DESTDIR}${PREFIX}/include/php/sapi/embed/ |
72 | ${INSTALL_LIB} ${WRKSRC}/libs/libphp7.so ${DESTDIR}${PREFIX}/lib/ | | 72 | ${INSTALL_LIB} ${WRKSRC}/libs/libphp7.so ${DESTDIR}${PREFIX}/lib/ |
73 | .endif | | 73 | .endif |