# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= php73-simplexml VERSION= 7.3.1 KEYWORDS= lang www php textproc VARIANTS= standard SDESC[standard]= PHP 7.3 extension: simplexml XML->object converter HOMEPAGE= http://php.net/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= PHP/distributions DISTFILE[1]= php-7.3.1.tar.xz:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= pcre:static:standard USES= php:ext,73 pkgconfig GNOME_COMPONENTS= libxml2 DISTNAME= php-7.3.1/ext/{{PHP_MODNAME}} EXTRACT_HEAD[1]= {{TAR}} -xf EXTRACT_TAIL[1]= php-7.3.1/ext/{{PHP_MODNAME}} FPC_EQUIVALENT= textproc/php73-simplexml CONFIGURE_ARGS= --enable-simplexml --with-pcre-dir={{LOCALBASE}} --with-libxml-dir={{LOCALBASE}} [FILE:59:descriptions/desc.single] This package contains the simplexml extension for PHP 7.3. [FILE:95:distinfo] cfe93e40be0350cd53c4a579f52fe5d8faf9c6db047f650a4566a2276bf33362 11944376 php-7.3.1.tar.xz [FILE:1242:patches/patch-config.m4] --- config.m4.orig 2018-11-06 10:48:36 UTC +++ config.m4 @@ -4,6 +4,9 @@ dnl config.m4 for extension simplexml PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support, [ --disable-simplexml Disable SimpleXML support], yes) +PHP_ARG_WITH(pcre-dir, pcre install prefix, +[ --with-pcre-dir SimpleXML: pcre install prefix], no, no) + if test -z "$PHP_LIBXML_DIR"; then PHP_ARG_WITH(libxml-dir, libxml2 install dir, [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no) @@ -11,6 +14,30 @@ fi if test "$PHP_SIMPLEXML" != "no"; then + dnl This is PECL build, check if bundled PCRE library is used + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS=$INCLUDES + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=yes + ],[ + AC_EGREP_CPP(yes,[ +#include
+#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE) +yes +#endif + ],[ + PHP_PCRE_REGEX=pecl + PHP_ADD_INCLUDE($PHP_PCRE_DIR/include) + ],[ + PHP_PCRE_REGEX=no + ]) + ]) + if test "$PHP_LIBXML" = "no"; then AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml]) fi