pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php73 lang/php73: add version 7.3.0 package
details: https://anonhg.NetBSD.org/pkgsrc/rev/9f680937032f
branches: trunk
changeset: 326834:9f680937032f
user: taca <taca%pkgsrc.org@localhost>
date: Sat Dec 15 17:12:44 2018 +0000
description:
lang/php73: add version 7.3.0 package
Add PHP 7.3.0 as php73.
PHP is a widely-used open source general-purpose scripting language
that is especially suited for web development and can be embedded
into HTML. It is modular, and object-oriented. Much of its syntax
is borrowed from C, Java and Perl with a couple of unique PHP-specific
features thrown in. The language is designed to allow web developers
to write dynamically generated pages quickly.
This package provides PHP version 7.3.x.
PHP 7.3.0 comes with numerous improvements and new features such as
* Flexible Heredoc and Nowdoc Syntax
* PCRE2 Migration
* Multiple MBString Improvements
* LDAP Controls Support
* Improved FPM Logging
* Windows File Deletion Improvements
* Several Deprecations
For source downloads of PHP 7.3.0 please visit our downloads page Windows
binaries can be found on the PHP for Windows site. The list of changes is
recorded in the ChangeLog.
diffstat:
lang/php73/DESCR | 22 +
lang/php73/MESSAGE | 11 +
lang/php73/Makefile | 63 ++++
lang/php73/Makefile.common | 27 +
lang/php73/Makefile.php | 114 +++++++
lang/php73/PLIST | 286 ++++++++++++++++++++
lang/php73/buildlink3.mk | 15 +
lang/php73/distinfo | 21 +
lang/php73/patches/patch-configure | 27 +
lang/php73/patches/patch-disable-filter-url | 30 ++
lang/php73/patches/patch-ext_gd_config.m4 | 97 ++++++
lang/php73/patches/patch-ext_phar_Makefile.frag | 13 +
lang/php73/patches/patch-ext_phar_phar_phar.php | 10 +
lang/php73/patches/patch-ext_recode_recode.c | 27 +
lang/php73/patches/patch-ext_tidy_config.m4 | 13 +
lang/php73/patches/patch-ext_xsl_php__xsl.h | 15 +
lang/php73/patches/patch-php.ini-development | 32 ++
lang/php73/patches/patch-php.ini-production | 32 ++
lang/php73/patches/patch-run-tests.php | 10 +
lang/php73/patches/patch-sapi_cgi_Makefile.frag | 16 +
lang/php73/patches/patch-sapi_cli_Makefile.frag | 19 +
lang/php73/patches/patch-sapi_fpm_fpm_events_port.c | 49 +++
lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in | 13 +
23 files changed, 962 insertions(+), 0 deletions(-)
diffs (truncated from 1054 to 300 lines):
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/DESCR Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,22 @@
+PHP is a widely-used open source general-purpose scripting language
+that is especially suited for web development and can be embedded
+into HTML. It is modular, and object-oriented. Much of its syntax
+is borrowed from C, Java and Perl with a couple of unique PHP-specific
+features thrown in. The language is designed to allow web developers
+to write dynamically generated pages quickly.
+
+This package provides PHP version 7.3.x.
+
+PHP 7.3.0 comes with numerous improvements and new features such as
+
+* Flexible Heredoc and Nowdoc Syntax
+* PCRE2 Migration
+* Multiple MBString Improvements
+* LDAP Controls Support
+* Improved FPM Logging
+* Windows File Deletion Improvements
+* Several Deprecations
+
+For source downloads of PHP 7.3.0 please visit our downloads page Windows
+binaries can be found on the PHP for Windows site. The list of changes is
+recorded in the ChangeLog.
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/MESSAGE Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2018/12/15 17:12:44 taca Exp $
+
+To process PHP scripts, you will need a PHP-enabled HTTP server. You may
+either configure the HTTP server to use the PHP CGI binary located in
+
+ ${CGIDIR}/php
+
+or you may install a PHP module for your HTTP server, e.g. www/ap-php.
+
+===========================================================================
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/Makefile Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1 2018/12/15 17:12:44 taca Exp $
+
+#
+# We can't omit PKGNAME here to handle PKG_OPTIONS.
+#
+PKGNAME= php-${PHP_VERSION:S/RC/rc/}
+
+HOMEPAGE= http://www.php.net/
+COMMENT= PHP Hypertext Preprocessor version 7.3
+LICENSE= php
+
+TEST_TARGET= test
+
+USE_TOOLS+= gmake lex pkg-config
+LIBTOOL_OVERRIDE= # empty
+PHP_CHECK_INSTALLED= No
+
+PHP_VERSIONS_ACCEPTED= 73
+
+.include "Makefile.php"
+
+CGIDIR= ${PREFIX}/libexec/cgi-bin
+EGDIR= ${PREFIX}/share/examples/php
+MESSAGE_SUBST+= CGIDIR=${CGIDIR}
+
+CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
+MAKE_ENV+= INSTALL_ROOT=${DESTDIR}
+
+CONF_FILES= ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
+PLIST_SUBST+= PHPEXTDIR="${PHP_EXTENSION_DIR}"
+
+SUBST_CLASSES+= path
+SUBST_MESSAGE.path= Fixing common paths.
+SUBST_STAGE.path= pre-configure
+SUBST_FILES.path= ext/phar/phar/phar.php
+SUBST_FILES.path+= php.ini-development php.ini-production run-tests.php
+SUBST_FILES.path+= sapi/cgi/Makefile.frag
+SUBST_SED.path= -e 's,@CGIDIR@,${CGIDIR},g'
+SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
+
+INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+
+# Make sure modules can link correctly
+.if ${OPSYS} == "Darwin"
+INSTALL_UNSTRIPPED= yes
+.endif
+
+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+# and lacks the zone memory allocator
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
+.endif
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${DESTDIR}${PREFIX}/bin/php
+ ${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/php.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cgi/php-cgi ${DESTDIR}${CGIDIR}/php
+ cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
+ ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php
+
+.include "../../mk/bsd.pkg.mk"
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/Makefile.common Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile.common,v 1.1 2018/12/15 17:12:44 taca Exp $
+# used by lang/php73/Makefile.php
+# used by lang/php/ext.mk
+# used by meta-pkgs/php73-extensions/Makefile
+
+PHP_VERSION_REQD= 73
+
+.include "../../lang/php/common.mk"
+
+CATEGORIES+= www
+MAINTAINER?= pkgsrc-users%NetBSD.org@localhost
+
+# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
+CONFIGURE_ENV+= PHP_LIBXML_SHARED="1"
+
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+# configure test gets confused by wrappers dropping -R /usr/lib
+CONFIGURE_ARGS+= php_cv_cc_dashr=no
+.endif
+
+# not every extension actually depend on PCRE, and those which do
+# don't use internal pcre structures, so default to build-time
+# dependency only
+BUILDLINK_DEPMETHOD.pcre2?= build
+CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
+.include "../../devel/pcre2/buildlink3.mk"
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/Makefile.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/Makefile.php Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,114 @@
+# $NetBSD: Makefile.php,v 1.1 2018/12/15 17:12:44 taca Exp $
+# used by lang/php73/Makefile
+# used by www/ap-php/Makefile
+# used by www/php-fpm/Makefile
+
+# segfaults when buidling with many compilers
+# https://bugs.php.net/bug.php?id=74527
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+= --disable-gcc-global-regs
+.endif
+
+# the binary actually needs full dep on PCRE
+BUILDLINK_DEPMETHOD.pcre2= full
+
+.include "../../lang/php73/Makefile.common"
+
+DISTINFO_FILE= ${.CURDIR}/../../lang/php73/distinfo
+PATCHDIR= ${.CURDIR}/../../lang/php73/patches
+
+USE_LIBTOOL= YES
+USE_LANGUAGES= c c++
+GNU_CONFIGURE= YES
+BUILD_DEFS+= VARBASE
+PLIST_VARS+= dtrace
+
+CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+
+CONFIGURE_ARGS+= --without-mysqli
+CONFIGURE_ARGS+= --without-iconv
+CONFIGURE_ARGS+= --without-pear
+CONFIGURE_ARGS+= --without-sqlite3
+#CONFIGURE_ARGS+= --without-intl
+
+CONFIGURE_ARGS+= --disable-posix
+CONFIGURE_ARGS+= --disable-opcache
+CONFIGURE_ARGS+= --disable-pdo
+CONFIGURE_ARGS+= --disable-json
+
+CONFIGURE_ARGS+= --enable-cgi
+CONFIGURE_ARGS+= --enable-mysqlnd
+CONFIGURE_ARGS+= --enable-xml
+CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
+.include "../../textproc/libxml2/buildlink3.mk"
+
+CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX}
+PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2
+PKG_SUPPORTED_OPTIONS+= disable-filter-url
+PKG_SUGGESTED_OPTIONS+= inet6 ssl readline
+
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
+PKG_SUPPORTED_OPTIONS+= dtrace
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+. if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --with-openssl=yes
+LIBS.SunOS+= -lcrypto
+. else
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
+. endif
+.else
+CONFIGURE_ARGS+= --without-openssl
+.endif
+
+.if !empty(PKG_OPTIONS:Mmaintainer-zts)
+CONFIGURE_ARGS+= --enable-maintainer-zts
+.endif
+
+.if !empty(PKG_OPTIONS:Mreadline)
+USE_GNU_READLINE= yes
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif
+
+.if !empty(PKG_OPTIONS:Mdtrace)
+PLIST.dtrace= yes
+CONFIGURE_ARGS+= --enable-dtrace
+
+# See https://bugs.php.net/bug.php?id=61268
+INSTALL_MAKE_FLAGS+= -r
+.endif
+
+.if !empty(PKG_OPTIONS:Margon2)
+CONFIGURE_ARGS+= --with-password-argon2=${BUILDLINK_PREFIX.argon2}
+.include "../../security/argon2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mdisable-filter-url)
+CFLAGS+= -DDISABLE_FILTER_URL
+.endif
+
+DL_AUTO_VARS= yes
+.include "../../mk/dlopen.buildlink3.mk"
diff -r 7b9ddd5124f6 -r 9f680937032f lang/php73/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php73/PLIST Sat Dec 15 17:12:44 2018 +0000
@@ -0,0 +1,286 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/15 17:12:44 taca Exp $
+bin/phar
+bin/phar.phar
+bin/php
+bin/php-config
+bin/phpdbg
+bin/phpize
+include/php/TSRM/TSRM.h
+include/php/TSRM/readdir.h
+include/php/TSRM/tsrm_config.h
+include/php/TSRM/tsrm_config.w32.h
+include/php/TSRM/tsrm_config_common.h
+include/php/TSRM/tsrm_strtok_r.h
+include/php/TSRM/tsrm_win32.h
+include/php/Zend/zend.h
+include/php/Zend/zend_API.h
+include/php/Zend/zend_alloc.h
+include/php/Zend/zend_alloc_sizes.h
+include/php/Zend/zend_arena.h
+include/php/Zend/zend_ast.h
+include/php/Zend/zend_bitset.h
+include/php/Zend/zend_build.h
+include/php/Zend/zend_builtin_functions.h
+include/php/Zend/zend_closures.h
+include/php/Zend/zend_compile.h
+include/php/Zend/zend_config.h
+include/php/Zend/zend_config.nw.h
+include/php/Zend/zend_config.w32.h
+include/php/Zend/zend_constants.h
+include/php/Zend/zend_cpuinfo.h
+include/php/Zend/zend_dtrace.h
+${PLIST.dtrace}include/php/Zend/zend_dtrace_gen.h
+include/php/Zend/zend_errors.h
+include/php/Zend/zend_exceptions.h
+include/php/Zend/zend_execute.h
+include/php/Zend/zend_extensions.h
+include/php/Zend/zend_float.h
+include/php/Zend/zend_gc.h
+include/php/Zend/zend_generators.h
Home |
Main Index |
Thread Index |
Old Index