1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= php73-simplexml
5 KEYWORDS= lang www php textproc
7 SDESC[standard]= PHP 7.3 extension: simplexml XML->object converter
8 HOMEPAGE= https://php.net/
12 SITES[main]= PHP/distributions
13 DISTFILE[1]= php-7.3.24.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= pcre:static:standard
22 USES= php:ext,73 pkgconfig cpe
23 GNOME_COMPONENTS= libxml2
25 DISTNAME= php-7.3.24/ext/{{PHP_MODNAME}}
26 EXTRACT_HEAD[1]= {{TAR}} -xf
27 EXTRACT_TAIL[1]= php-7.3.24/ext/{{PHP_MODNAME}}
31 FPC_EQUIVALENT= textproc/php73-simplexml
33 CONFIGURE_ARGS= --enable-simplexml
34 --with-pcre-dir={{LOCALBASE}}
35 --with-libxml-dir={{LOCALBASE}}
37 [FILE:59:descriptions/desc.single]
38 This package contains the simplexml extension for PHP 7.3.
42 78b0b417a147ab7572c874334d11654e3c61ec5b3f2170098e5db02fb0c89888 12138212 php-7.3.24.tar.xz
45 [FILE:1242:patches/patch-config.m4]
46 --- config.m4.orig 2018-11-06 10:48:36 UTC
48 @@ -4,6 +4,9 @@ dnl config.m4 for extension simplexml
49 PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support,
50 [ --disable-simplexml Disable SimpleXML support], yes)
52 +PHP_ARG_WITH(pcre-dir, pcre install prefix,
53 +[ --with-pcre-dir SimpleXML: pcre install prefix], no, no)
55 if test -z "$PHP_LIBXML_DIR"; then
56 PHP_ARG_WITH(libxml-dir, libxml2 install dir,
57 [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no)
60 if test "$PHP_SIMPLEXML" != "no"; then
62 + dnl This is PECL build, check if bundled PCRE library is used
63 + old_CPPFLAGS=$CPPFLAGS
66 +#include <main/php_config.h>
67 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
74 +#include <main/php_config.h>
75 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
80 + PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
86 if test "$PHP_LIBXML" = "no"; then
87 AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml])