aboutsummaryrefslogtreecommitdiff
path: root/archivers/php81-phar
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2021-12-29 02:09:08 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2021-12-29 02:09:08 +0000
commit44e99def8ddf26311675cb2070eb062e1f7d0da5 (patch)
tree9406ba2c32bbaf622db561bc60e7483638f4beb2 /archivers/php81-phar
parent0ecc22072ebf57bc15002884e4baecf9c1d8dc92 (diff)
downloadports-44e99def8ddf26311675cb2070eb062e1f7d0da5.tar.gz
ports-44e99def8ddf26311675cb2070eb062e1f7d0da5.zip
Diffstat (limited to 'archivers/php81-phar')
-rw-r--r--archivers/php81-phar/Makefile7
-rw-r--r--archivers/php81-phar/files/patch-config.m441
2 files changed, 48 insertions, 0 deletions
diff --git a/archivers/php81-phar/Makefile b/archivers/php81-phar/Makefile
new file mode 100644
index 000000000000..810e19ae4e32
--- /dev/null
+++ b/archivers/php81-phar/Makefile
@@ -0,0 +1,7 @@
+CATEGORIES= archivers
+
+MASTERDIR= ${.CURDIR}/../../lang/php81
+
+PKGNAMESUFFIX= -phar
+
+.include "${MASTERDIR}/Makefile"
diff --git a/archivers/php81-phar/files/patch-config.m4 b/archivers/php81-phar/files/patch-config.m4
new file mode 100644
index 000000000000..1aba3bd9a5a8
--- /dev/null
+++ b/archivers/php81-phar/files/patch-config.m4
@@ -0,0 +1,41 @@
+--- config.m4.orig 2016-06-21 19:56:50 UTC
++++ config.m4
+@@ -4,8 +4,38 @@ dnl config.m4 for extension phar
+ PHP_ARG_ENABLE(phar, for phar archive support,
+ [ --disable-phar Disable phar support], yes)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir PHAR: pcre install prefix], no, no)
++
++
+ if test "$PHP_PHAR" != "no"; then
++
++ dnl This is PECL build, check if bundled PCRE library is used
++ old_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS=$INCLUDES
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=yes
++ ],[
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++ ],[
++ PHP_PCRE_REGEX=no
++ ])
++ ])
++
+ PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
++ PHP_HASH=yes
+ AC_MSG_CHECKING([for phar openssl support])
+ if test "$PHP_HASH_SHARED" != "yes"; then
+ if test "$PHP_HASH" != "no"; then