1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= php81-simplexml
5 KEYWORDS= lang www php textproc
7 SDESC[standard]= PHP 8.1 extension: simplexml XML->object converter
8 HOMEPAGE= https://php.net/
12 SITES[main]= PHP/distributions
13 DISTFILE[1]= php-8.1.26.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 USES= php:ext,81 pkgconfig cpe pcre:build
21 GNOME_COMPONENTS= libxml2
23 DISTNAME= php-8.1.26/ext/{{PHP_MODNAME}}
24 EXTRACT_HEAD[1]= {{TAR}} -xf
25 EXTRACT_TAIL[1]= php-8.1.26/ext/{{PHP_MODNAME}}
29 FPC_EQUIVALENT= textproc/php81-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 8.1.
40 17f87133596449327451ad4b8d9911bfaea59ff5109f3a6f2bb679f967a8ea0f 11809448 php-8.1.26.tar.xz
43 [FILE:1001:patches/patch-config.m4]
44 --- config.m4.orig 2023-01-31 15:13:17 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])