Changeset View
Standalone View
lang/php74/Makefile.ext
Context not available. | |||||
USES+= php:ext,noflavors | USES+= php:ext,noflavors | ||||
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} | PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} | ||||
PHP_VER= 73 | PHP_VER= 74 | ||||
IGNORE_WITH_PHP= 71 72 | IGNORE_WITH_PHP= 71 72 73 | ||||
EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} | EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} | ||||
WRKSRC= ${WRKDIR}/${EXTSUBDIR} | WRKSRC= ${WRKDIR}/${EXTSUBDIR} | ||||
Context not available. | |||||
LIB_DEPENDS+= libcurl.so:ftp/curl | LIB_DEPENDS+= libcurl.so:ftp/curl | ||||
CONFIGURE_ARGS+=--with-curl=${LOCALBASE} | CONFIGURE_ARGS+=--with-curl=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "dba" | .if ${PHP_MODNAME} == "dba" | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--enable-dom \ | CONFIGURE_ARGS+=--enable-dom \ | ||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.endif | .endif | ||||
Context not available. | |||||
.if ${PHP_MODNAME} == "enchant" | .if ${PHP_MODNAME} == "enchant" | ||||
LIB_DEPENDS+= libenchant.so:textproc/enchant | LIB_DEPENDS+= libenchant.so:textproc/enchant | ||||
CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} | CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "exif" | .if ${PHP_MODNAME} == "exif" | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--enable-exif | CONFIGURE_ARGS+=--enable-exif | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "ffi" | |||||
LIB_DEPENDS= libffi.so:devel/libffi | |||||
CONFIGURE_ARGS+=--enable-ffi | |||||
.endif | |||||
.if ${PHP_MODNAME} == "fileinfo" | .if ${PHP_MODNAME} == "fileinfo" | ||||
CONFIGURE_ARGS+=--enable-fileinfo \ | CONFIGURE_ARGS+=--enable-fileinfo \ | ||||
--with-pcre-dir=${LOCALBASE} | --with-pcre-dir=${LOCALBASE} | ||||
Context not available. | |||||
--with-openssl-dir=${OPENSSLBASE} | --with-openssl-dir=${OPENSSLBASE} | ||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | ||||
USES+= ssl | USES+= ssl pkgconfig | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "gd" | .if ${PHP_MODNAME} == "gd" | ||||
Context not available. | |||||
libpng.so:graphics/png | libpng.so:graphics/png | ||||
tobik: graphics/php74-gd (beta4 again) builds fine if I add `--with-external-gd` here.
`--with… | |||||
USES+= jpeg | USES+= jpeg | ||||
CONFIGURE_ARGS+=--with-gd=${LOCALBASE} \ | CONFIGURE_ARGS+=--enable-gd \ | ||||
--with-freetype-dir=${LOCALBASE} \ | --with-external-gd | ||||
--with-jpeg-dir=${LOCALBASE} \ | |||||
--with-png-dir=${LOCALBASE} \ | |||||
--with-zlib-dir=/usr | |||||
EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions --exclude libgd \ | EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions --exclude libgd \ | ||||
php-${DISTVERSION}/ext/gd | php-${DISTVERSION}/ext/gd | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} | CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "hash" | |||||
CONFIGURE_ARGS+=--enable-hash \ | |||||
--with-mhash | |||||
CFLAGS_mips64= -DHAVE_SLOW_HASH3 | |||||
CFLAGS_powerpc64= -DHAVE_SLOW_HASH3 | |||||
CFLAGS_powerpc= -DHAVE_SLOW_HASH3 | |||||
CFLAGS_powerpcspe= -DHAVE_SLOW_HASH3 | |||||
CFLAGS_sparc64= -DHAVE_SLOW_HASH3 | |||||
.endif | |||||
.if ${PHP_MODNAME} == "iconv" | .if ${PHP_MODNAME} == "iconv" | ||||
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} | CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} | ||||
Context not available. | |||||
--with-pcre-dir=${LOCALBASE} \ | --with-pcre-dir=${LOCALBASE} \ | ||||
--with-imap-ssl=${OPENSSLBASE} | --with-imap-ssl=${OPENSSLBASE} | ||||
Done Inline Actionsphp74-imap builds if we also set PHP_OPENSSL=yes (only tested with beta4): .if ${PHP_MODNAME} == "imap" PHP_MOD_PRIO= 30 OPTIONS_DEFINE= PANDA PANDA_DESC= Uses the forked panda-cclient instead of the original cclient CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \ --with-pcre-dir=${LOCALBASE} \ --with-imap-ssl CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \ PHP_OPENSSL=yes USES+= ssl .endif tobik: php74-imap builds if we also set `PHP_OPENSSL=yes` (only tested with beta4):
```
.if… | |||||
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ | |||||
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \ | |||||
PHP_OPENSSL=yes | |||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | ||||
USES+= ssl | USES+= ssl | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "interbase" | |||||
CONFIGURE_ARGS+=--with-interbase=${LOCALBASE} | |||||
USES+= firebird | |||||
.endif | |||||
.if ${PHP_MODNAME} == "intl" | .if ${PHP_MODNAME} == "intl" | ||||
CONFIGURE_ARGS+=--with-intl=${LOCALBASE} | CONFIGURE_ARGS+=--with-intl=${LOCALBASE} | ||||
LIB_DEPENDS= libicui18n.so:devel/icu | LIB_DEPENDS= libicui18n.so:devel/icu | ||||
USES+= pkgconfig | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "json" | .if ${PHP_MODNAME} == "json" | ||||
Done Inline ActionsHaving a manual dependency on security/openssl instead of going with USES=ssl (i.e., using the SSL implementation users have selected) is a huge red flag. It is obviously not right and will break any system where packages are not built with DEFAULT_VERSIONS+=ssl=openssl. It seems like a regression to what is in lang/php73/Makefile.ext now. Why is it needed? tobik: Having a manual dependency on `security/openssl` instead of going with USES=ssl (i.e., using… | |||||
Done Inline ActionsIt builds for me if I replace the entire block with .if ${PHP_MODNAME} == "openssl" USES+= ssl CONFIGURE_ARGS+= --with-openssl CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" .endif tobik: It builds for me if I replace the entire block with
```
.if ${PHP_MODNAME} == "openssl"… | |||||
Done Inline ActionsThis works fine :) But using this for php74-imap does not work. :/ Also: i tried this way by using the porters handbook. But it wasn't a big help, since i'm not very familiar with the whole build process. Do you have a resource for me to become better at this? Thanks! tz: This works fine :)
But using this for php74-imap does not work. :/
Also: i tried this way by… | |||||
Context not available. | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "openssl" | .if ${PHP_MODNAME} == "openssl" | ||||
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} | USES+= ssl | ||||
CONFIGURE_ARGS+= --with-openssl | |||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ | ||||
USES+= ssl | OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "opcache" | .if ${PHP_MODNAME} == "opcache" | ||||
Context not available. | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_sqlite" | .if ${PHP_MODNAME} == "pdo_sqlite" | ||||
USES+= sqlite | USES+= localbase sqlite | ||||
CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} | CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
Context not available. | |||||
.if ${PHP_MODNAME} == "phar" | .if ${PHP_MODNAME} == "phar" | ||||
CONFIGURE_ARGS+=--enable-phar \ | CONFIGURE_ARGS+=--enable-phar \ | ||||
--with-pcre-dir=${LOCALBASE} | --with-pcre-dir=${LOCALBASE} | ||||
USE_PHP= hash:build | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "posix" | .if ${PHP_MODNAME} == "posix" | ||||
Context not available. | |||||
USES+= readline | USES+= readline | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "recode" | |||||
LIB_DEPENDS+= librecode.so:converters/recode | |||||
CONFIGURE_ARGS+=--with-recode=${LOCALBASE} | |||||
.endif | |||||
.if ${PHP_MODNAME} == "session" | .if ${PHP_MODNAME} == "session" | ||||
CONFIGURE_ARGS+=--enable-session | CONFIGURE_ARGS+=--enable-session | ||||
PHP_MOD_PRIO= 18 | PHP_MOD_PRIO= 18 | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--enable-soap \ | CONFIGURE_ARGS+=--enable-soap \ | ||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.endif | .endif | ||||
Context not available. | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "sqlite3" | .if ${PHP_MODNAME} == "sqlite3" | ||||
USES+= sqlite | USES+= localbase pkgconfig sqlite | ||||
CONFIGURE_ARGS+=--with-sqlite3=${LOCALBASE} | CONFIGURE_ARGS+=--with-sqlite3=${LOCALBASE} | ||||
.endif | .endif | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--enable-tokenizer | CONFIGURE_ARGS+=--enable-tokenizer | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "wddx" | |||||
CONFIGURE_ARGS+=--enable-wddx \ | |||||
--with-libxml-dir=${LOCALBASE} | |||||
USE_GNOME= libxml2 | |||||
USE_PHP= xml:build session:build | |||||
.endif | |||||
.if ${PHP_MODNAME} == "xml" | .if ${PHP_MODNAME} == "xml" | ||||
CONFIGURE_ARGS+=--enable-xml \ | CONFIGURE_ARGS+=--enable-xml \ | ||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.endif | .endif | ||||
Context not available. | |||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
USE_PHP= dom:build | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "xmlrpc" | .if ${PHP_MODNAME} == "xmlrpc" | ||||
Context not available. | |||||
CONFIGURE_ARGS+=--enable-xmlwriter \ | CONFIGURE_ARGS+=--enable-xmlwriter \ | ||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.endif | .endif | ||||
Context not available. | |||||
--with-zlib-dir=/usr \ | --with-zlib-dir=/usr \ | ||||
--with-pcre-dir=${LOCALBASE} \ | --with-pcre-dir=${LOCALBASE} \ | ||||
--with-libzip=${LOCALBASE} | --with-libzip=${LOCALBASE} | ||||
USES+= pkgconfig | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "zlib" | .if ${PHP_MODNAME} == "zlib" | ||||
CONFIGURE_ARGS+=--with-zlib=/usr | CONFIGURE_ARGS+=--with-zlib=/usr | ||||
USES+= pkgconfig | |||||
.endif | .endif | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
Context not available. | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PHP_MODNAME} == "gd" | .if ${PHP_MODNAME} == "gd" | ||||
. if ${PORT_OPTIONS:MTRUETYPE} | |||||
CONFIGURE_ARGS+=--enable-gd-native-ttf | |||||
. endif | |||||
. if ${PORT_OPTIONS:MJIS} | . if ${PORT_OPTIONS:MJIS} | ||||
CONFIGURE_ARGS+=--enable-gd-jis-conv | CONFIGURE_ARGS+=--enable-gd-jis-conv | ||||
. endif | . endif | ||||
Context not available. | |||||
. if ${PORT_OPTIONS:MWEBP} | . if ${PORT_OPTIONS:MWEBP} | ||||
LIB_DEPENDS+= libwebp.so:graphics/webp | LIB_DEPENDS+= libwebp.so:graphics/webp | ||||
CONFIGURE_ARGS+=--with-webp-dir=${LOCALBASE} | CONFIGURE_ARGS+=--with-webp | ||||
. endif | . endif | ||||
. if ${PORT_OPTIONS:MX11} | . if ${PORT_OPTIONS:MX11} | ||||
USE_XORG= xpm | USE_XORG= xpm | ||||
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE} | CONFIGURE_ARGS+=--with-xpm | ||||
. endif | . endif | ||||
.endif | .endif | ||||
Context not available. |
graphics/php74-gd (beta4 again) builds fine if I add --with-external-gd here.
--with-freetype and --with-jpeg can be dropped since they only make sense if using the bundled libgd which we do not do.