Ravenports generated: 04 Oct 2017 12:10
[ravenports.git] / bucket_88 / php71-simplexml
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php71-simplexml
4 VERSION=                7.1.10
5 KEYWORDS=               lang www php textproc
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 7.1 extension: simplexml XML->object converter
8 HOMEPAGE=               http://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.1.10.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,71 pkgconfig
23 GNOME_COMPONENTS=       libxml2
24
25 DISTNAME=               php-7.1.10/ext/{{PHP_MODNAME}}
26 EXTRACT_HEAD[1]=        {{TAR}} -xf
27 EXTRACT_TAIL[1]=        php-7.1.10/ext/{{PHP_MODNAME}}
28
29 FPC_EQUIVALENT=         textproc/php71-simplexml
30
31 CONFIGURE_ARGS=         --enable-simplexml
32                         --with-pcre-dir={{LOCALBASE}}
33                         --with-libxml-dir={{LOCALBASE}}
34
35 [FILE:96:distinfo]
36 2b8efa771a2ead0bb3ae67b530ca505b5b286adc873cca9ce97a6e1d6815c50b     12166036 php-7.1.10.tar.xz
37
38
39 [FILE:1270:patches/patch-config.m4]
40 --- config.m4.orig      2014-05-14 10:14:22.929420181 +0000
41 +++ config.m4   2014-05-14 10:15:36.967414693 +0000
42 @@ -4,6 +4,9 @@
43  PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support,
44  [  --disable-simplexml     Disable SimpleXML support], yes)
45  
46 +PHP_ARG_WITH(pcre-dir, pcre install prefix,
47 +[  --with-pcre-dir           SimpleXML: pcre install prefix], no, no)
48 +
49  if test -z "$PHP_LIBXML_DIR"; then
50    PHP_ARG_WITH(libxml-dir, libxml2 install dir,
51    [  --with-libxml-dir=DIR     SimpleXML: libxml2 install prefix], no, no)
52 @@ -11,6 +14,30 @@
53  
54  if test "$PHP_SIMPLEXML" != "no"; then
55  
56 +  dnl This is PECL build, check if bundled PCRE library is used
57 +  old_CPPFLAGS=$CPPFLAGS
58 +  CPPFLAGS=$INCLUDES
59 +  AC_EGREP_CPP(yes,[
60 +#include <main/php_config.h>
61 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
62 +yes
63 +#endif
64 +  ],[
65 +    PHP_PCRE_REGEX=yes
66 +  ],[
67 +    AC_EGREP_CPP(yes,[
68 +#include <main/php_config.h>
69 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
70 +yes
71 +#endif
72 +    ],[
73 +      PHP_PCRE_REGEX=pecl
74 +      PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
75 +    ],[
76 +      PHP_PCRE_REGEX=no
77 +    ])
78 +  ])
79 +
80    if test "$PHP_LIBXML" = "no"; then   
81      AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml])                
82    fi
83