pkgsrc/lang/php74/Makefile.common
taca 4f7d80674c lang/php74: Add php74 version 7.4.0 pacakge.
Add php74 version 7.4.0 pacakge based on 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.

PHP 7.4 comes with numerous improvements and new features such as

* Typed Properties
* Arrow Functions
* Limited Return Type Covariance and Argument Type Contravariance
* Unpacking Inside Arrays
* Numeric Literal Separator
* Weak References
* Allow Exceptions from __toString()
* Opcache Preloading
* Several Deprecations
* Extensions Removed from the Core
2019-12-15 17:56:34 +00:00

32 lines
906 B
Text

# $NetBSD: Makefile.common,v 1.1 2019/12/15 17:56:34 taca Exp $
# used by lang/php74/Makefile.php
# used by lang/php/ext.mk
# used by meta-pkgs/php74-extensions/Makefile
PHP_VERSION_REQD= 74
.include "../../lang/php/common.mk"
CATEGORIES+= www
MAINTAINER?= pkgsrc-users@NetBSD.org
USE_TOOLS+= pkg-config
# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
CONFIGURE_ENV+= PHP_LIBXML_SHARED="1"
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= ax_cv_have_func_attribute_ifunc=no
.endif
.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
.include "../../devel/pcre2/buildlink3.mk"