Index: ftp/php56-fastdfs/Makefile =================================================================== --- ftp/php56-fastdfs/Makefile +++ ftp/php56-fastdfs/Makefile @@ -1,14 +1,17 @@ # $FreeBSD$ -PORTNAME= php56-fastdfs -PORTVERSION= 5.0.11 +PORTNAME= fastdfs +DISTVERSION= 5.0.11 CATEGORIES= ftp +PKGNAMEPREFIX= php56- MAINTAINER= daniel@blodan.se COMMENT= PHP 5.6 module for accessing a FastDFS cluster LICENSE= GPLv3+ +IGNORE_WITH_PHP= 70 71 72 + LIB_DEPENDS= libfastcommon.so:devel/libfastcommon \ libfdfsclient.so:ftp/fastdfs @@ -18,10 +21,10 @@ GH_TAGNAME= 1e50b4f USES= php:ext -IGNORE_WITH_PHP= 70 71 PHP_VER= 56 WRKSRC_SUBDIR= php_client +CONFIGURE_ENV= ROOT=${LOCALBASE} PHP_MODNAME= fastdfs_client Index: ftp/php56-fastdfs/files/patch-config.m4 =================================================================== --- ftp/php56-fastdfs/files/patch-config.m4 +++ /dev/null @@ -1,11 +0,0 @@ ---- config.m4.orig 2016-08-08 07:17:50 UTC -+++ config.m4 -@@ -7,7 +7,7 @@ if test "$PHP_FASTDFS_CLIENT" != "no"; t - PHP_SUBST(FASTDFS_CLIENT_SHARED_LIBADD) - - if test -z "$ROOT"; then -- ROOT=/usr -+ ROOT=/usr/local - fi - - PHP_ADD_INCLUDE($ROOT/include/fastcommon) Index: ftp/php70-fastdfs/Makefile =================================================================== --- ftp/php70-fastdfs/Makefile +++ ftp/php70-fastdfs/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= fastdfs -PORTVERSION= 5.0.11 +DISTVERSION= 5.0.11 CATEGORIES= ftp PKGNAMEPREFIX= php70- @@ -10,6 +10,8 @@ LICENSE= GPLv3+ +IGNORE_WITH_PHP= 56 71 72 + LIB_DEPENDS= libfastcommon.so:devel/libfastcommon \ libfdfsclient.so:ftp/fastdfs @@ -19,10 +21,10 @@ GH_TAGNAME= 1e50b4f USES= php:ext -IGNORE_WITH_PHP= 56 71 PHP_VER= 70 WRKSRC_SUBDIR= php_client +CONFIGURE_ENV= ROOT=${LOCALBASE} PHP_MODNAME= fastdfs_client Index: ftp/php70-fastdfs/files/patch-config.m4 =================================================================== --- ftp/php70-fastdfs/files/patch-config.m4 +++ /dev/null @@ -1,11 +0,0 @@ ---- config.m4.orig 2016-08-08 07:17:50 UTC -+++ config.m4 -@@ -7,7 +7,7 @@ if test "$PHP_FASTDFS_CLIENT" != "no"; t - PHP_SUBST(FASTDFS_CLIENT_SHARED_LIBADD) - - if test -z "$ROOT"; then -- ROOT=/usr -+ ROOT=/usr/local - fi - - PHP_ADD_INCLUDE($ROOT/include/fastcommon) Index: ftp/php71-fastdfs/Makefile =================================================================== --- ftp/php71-fastdfs/Makefile +++ ftp/php71-fastdfs/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= fastdfs -PORTVERSION= 5.0.11 +DISTVERSION= 5.0.11 CATEGORIES= ftp PKGNAMEPREFIX= php71- @@ -10,6 +10,8 @@ LICENSE= GPLv3+ +IGNORE_WITH_PHP= 56 70 72 + LIB_DEPENDS= libfastcommon.so:devel/libfastcommon \ libfdfsclient.so:ftp/fastdfs @@ -19,10 +21,10 @@ GH_TAGNAME= 1e50b4f USES= php:ext -IGNORE_WITH_PHP= 56 70 PHP_VER= 71 WRKSRC_SUBDIR= php_client +CONFIGURE_ENV= ROOT=${LOCALBASE} PHP_MODNAME= fastdfs_client Index: ftp/php71-fastdfs/files/patch-config.m4 =================================================================== --- ftp/php71-fastdfs/files/patch-config.m4 +++ /dev/null @@ -1,11 +0,0 @@ ---- config.m4.orig 2016-08-08 07:17:50 UTC -+++ config.m4 -@@ -7,7 +7,7 @@ if test "$PHP_FASTDFS_CLIENT" != "no"; t - PHP_SUBST(FASTDFS_CLIENT_SHARED_LIBADD) - - if test -z "$ROOT"; then -- ROOT=/usr -+ ROOT=/usr/local - fi - - PHP_ADD_INCLUDE($ROOT/include/fastcommon)