diff options
author | ale <ale@FreeBSD.org> | 2010-09-07 22:30:03 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2010-09-07 22:30:03 +0800 |
commit | 71f8d942a5d33516a57d4a61358869e142e14a26 (patch) | |
tree | 950027e372a39e5b508b0d505fba8c48f29f678d /sysutils/php5-fileinfo | |
parent | 2fb45d844b236672e954daac08beb6125c5e1980 (diff) | |
download | freebsd-ports-gnome-71f8d942a5d33516a57d4a61358869e142e14a26.tar.gz freebsd-ports-gnome-71f8d942a5d33516a57d4a61358869e142e14a26.tar.zst freebsd-ports-gnome-71f8d942a5d33516a57d4a61358869e142e14a26.zip |
Replace pecl-fileinfo with php5-fileinfo for php 5.3.x.
Diffstat (limited to 'sysutils/php5-fileinfo')
-rw-r--r-- | sysutils/php5-fileinfo/Makefile | 14 | ||||
-rw-r--r-- | sysutils/php5-fileinfo/files/patch-config.m4 | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/php5-fileinfo/Makefile b/sysutils/php5-fileinfo/Makefile new file mode 100644 index 000000000000..88a720220b56 --- /dev/null +++ b/sysutils/php5-fileinfo/Makefile @@ -0,0 +1,14 @@ +# New ports collection makefile for: php5-fileinfo +# Date created: 7 Sep 2010 +# Whom: Alex Dupre <ale@FreeBSD.org> +# +# $FreeBSD$ +# + +CATEGORIES= sysutils + +MASTERDIR= ${.CURDIR}/../../lang/php5 + +PKGNAMESUFFIX= -fileinfo + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/php5-fileinfo/files/patch-config.m4 b/sysutils/php5-fileinfo/files/patch-config.m4 new file mode 100644 index 000000000000..1348023ccf64 --- /dev/null +++ b/sysutils/php5-fileinfo/files/patch-config.m4 @@ -0,0 +1,21 @@ +--- config.m4.orig 2010-09-07 15:45:30.000000000 +0200 ++++ config.m4 2010-09-07 15:46:50.000000000 +0200 +@@ -4,6 +4,9 @@ + PHP_ARG_ENABLE(fileinfo, for fileinfo support, + [ --disable-fileinfo Disable fileinfo support], yes) + ++PHP_ARG_WITH(pcre-dir, pcre install prefix, ++[ --with-pcre-dir FILEINFO: pcre install prefix], no, no) ++ + if test "$PHP_FILEINFO" != "no"; then + + libmagic_sources=" \ +@@ -13,6 +16,8 @@ + libmagic/is_tar.c libmagic/magic.c libmagic/print.c \ + libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c" + ++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include) ++ + PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic) + PHP_ADD_BUILD_DIR($ext_builddir/libmagic) + |