Ravenports generated: 20 Mar 2020 23:28
[ravenports.git] / bucket_64 / php73-simplexml
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php73-simplexml
4 VERSION=                7.3.16
5 KEYWORDS=               lang www php textproc
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 7.3 extension: simplexml XML->object converter
8 HOMEPAGE=               https://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.3.16.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          pcre:static:standard
21
22 USES=                   php:ext,73 pkgconfig
23 GNOME_COMPONENTS=       libxml2
24
25 DISTNAME=               php-7.3.16/ext/{{PHP_MODNAME}}
26 EXTRACT_HEAD[1]=        {{TAR}} -xf
27 EXTRACT_TAIL[1]=        php-7.3.16/ext/{{PHP_MODNAME}}
28
29 FPC_EQUIVALENT=         textproc/php73-simplexml
30
31 CONFIGURE_ARGS=         --enable-simplexml
32                         --with-pcre-dir={{LOCALBASE}}
33                         --with-libxml-dir={{LOCALBASE}}
34
35 [FILE:59:descriptions/desc.single]
36 This package contains the simplexml extension for PHP 7.3.
37
38
39 [FILE:96:distinfo]
40 91aaee3dbdc71b69b4f3292f9d99211172a2fa926c3f3bbdb0e85dab03dd2bcb     12113688 php-7.3.16.tar.xz
41
42
43 [FILE:1242:patches/patch-config.m4]
44 --- config.m4.orig      2018-11-06 10:48:36 UTC
45 +++ config.m4
46 @@ -4,6 +4,9 @@ dnl config.m4 for extension simplexml
47  PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support,
48  [  --disable-simplexml     Disable SimpleXML support], yes)
49  
50 +PHP_ARG_WITH(pcre-dir, pcre install prefix,
51 +[  --with-pcre-dir           SimpleXML: pcre install prefix], no, no)
52 +
53  if test -z "$PHP_LIBXML_DIR"; then
54    PHP_ARG_WITH(libxml-dir, libxml2 install dir,
55    [  --with-libxml-dir=DIR   SimpleXML: libxml2 install prefix], no, no)
56 @@ -11,6 +14,30 @@ fi
57  
58  if test "$PHP_SIMPLEXML" != "no"; then
59  
60 +  dnl This is PECL build, check if bundled PCRE library is used
61 +  old_CPPFLAGS=$CPPFLAGS
62 +  CPPFLAGS=$INCLUDES
63 +  AC_EGREP_CPP(yes,[
64 +#include <main/php_config.h>
65 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
66 +yes
67 +#endif
68 +  ],[
69 +    PHP_PCRE_REGEX=yes
70 +  ],[
71 +    AC_EGREP_CPP(yes,[
72 +#include <main/php_config.h>
73 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
74 +yes
75 +#endif
76 +    ],[
77 +      PHP_PCRE_REGEX=pecl
78 +      PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
79 +    ],[
80 +      PHP_PCRE_REGEX=no
81 +    ])
82 +  ])
83 +
84    if test "$PHP_LIBXML" = "no"; then
85      AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml])
86    fi
87