1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= php74-simplexml
5 KEYWORDS= lang www php textproc
7 SDESC[standard]= PHP 7.4 extension: simplexml XML->object converter
8 HOMEPAGE= https://php.net/
12 SITES[main]= PHP/distributions
13 DISTFILE[1]= php-7.4.28.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 USES= php:ext,74 pkgconfig cpe pcre:build
21 GNOME_COMPONENTS= libxml2
23 DISTNAME= php-7.4.28/ext/{{PHP_MODNAME}}
24 EXTRACT_HEAD[1]= {{TAR}} -xf
25 EXTRACT_TAIL[1]= php-7.4.28/ext/{{PHP_MODNAME}}
29 FPC_EQUIVALENT= textproc/php74-simplexml
31 CONFIGURE_ARGS= --enable-simplexml
32 --with-pcre-dir={{LOCALBASE}}
33 --with-libxml-dir={{LOCALBASE}}
35 [FILE:59:descriptions/desc.single]
36 This package contains the simplexml extension for PHP 7.4.
40 9cc3b6f6217b60582f78566b3814532c4b71d517876c25013ae51811e65d8fce 10418352 php-7.4.28.tar.xz
43 [FILE:1001:patches/patch-config.m4]
44 --- config.m4.orig 2019-11-10 23:33:28 UTC
46 @@ -4,8 +4,39 @@ PHP_ARG_ENABLE([simplexml],
47 [Disable SimpleXML support])],
50 +PHP_ARG_ENABLE([pcre-dir],
51 + [pcre install prefix],
52 + [AS_HELP_STRING([--with-pcre-dir],
53 + [SimpleXML: pcre install dir])],
57 if test "$PHP_SIMPLEXML" != "no"; then
59 + dnl This is PECL build, check if bundled PCRE library is used
60 + old_CPPFLAGS=$CPPFLAGS
63 +#include <main/php_config.h>
64 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
71 +#include <main/php_config.h>
72 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
77 + PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
83 if test "$PHP_LIBXML" = "no"; then
84 AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --with-libxml])