1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Remove obsolete PHP versions checks.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-10-27 09:29:23 +00:00
parent 1430c31e19
commit cb15e80656
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424753
10 changed files with 10 additions and 26 deletions

View File

@ -16,7 +16,7 @@ WRKSRC= ${WRKDIR}/SQLiteManager-${PORTVERSION}
USES= dos2unix USES= dos2unix
NO_BUILD= yes NO_BUILD= yes
PLIST_SUB+= WWWDIR_REL="${WWWDIR_REL}" PLIST_SUB+= WWWDIR_REL="${WWWDIR_REL}"
USE_PHP= sqlite${PHP_VER:S/^53$$//:C/^.+$$/3/} USE_PHP= sqlite3
EXTRACT_AFTER_ARGS=--exclude TODO EXTRACT_AFTER_ARGS=--exclude TODO
do-install: do-install:

View File

@ -18,7 +18,7 @@ GH_PROJECT= fastdfs
GH_TAGNAME= 87659981148a362812912b6d4752d281ac05f0b6 GH_TAGNAME= 87659981148a362812912b6d4752d281ac05f0b6
USES= php:ext USES= php:ext
IGNORE_WITH_PHP= 55 70 IGNORE_WITH_PHP= 70
PHP_DEFAULT= 5.6 PHP_DEFAULT= 5.6
WRKSRC_SUBDIR= php_client WRKSRC_SUBDIR= php_client

View File

@ -18,7 +18,7 @@ GH_PROJECT= fastdfs
GH_TAGNAME= 87659981148a362812912b6d4752d281ac05f0b6 GH_TAGNAME= 87659981148a362812912b6d4752d281ac05f0b6
USES= php:ext USES= php:ext
IGNORE_WITH_PHP= 55 56 IGNORE_WITH_PHP= 56
PHP_DEFAULT= 7.0 PHP_DEFAULT= 7.0
WRKSRC_SUBDIR= php_client WRKSRC_SUBDIR= php_client

View File

@ -126,7 +126,7 @@ CMAKE_ARGS+= -DWITH_POSTGIS=0
.if ${PORT_OPTIONS:MPHP} .if ${PORT_OPTIONS:MPHP}
USES+= php:build USES+= php:build
IGNORE_WITH_PHP= 55 70 IGNORE_WITH_PHP= 70
CMAKE_ARGS+= -DWITH_PHP=1 CMAKE_ARGS+= -DWITH_PHP=1
PLIST_SUB+= PHP="" PLIST_SUB+= PHP=""
.else .else

View File

@ -3,7 +3,7 @@ COMMENT= The ${PHP_MODNAME} shared extension for php
USES+= php:ext USES+= php:ext
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
PHP_VER= 56 PHP_VER= 56
IGNORE_WITH_PHP= 55 70 IGNORE_WITH_PHP= 70
EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME}
WRKSRC= ${WRKDIR}/${EXTSUBDIR} WRKSRC= ${WRKDIR}/${EXTSUBDIR}

View File

@ -83,7 +83,7 @@ CONFIGURE_ARGS+=--enable-fpm \
.if defined(PKGNAMEPREFIX) .if defined(PKGNAMEPREFIX)
USES+= php USES+= php
PHP_VER= 70 PHP_VER= 70
IGNORE_WITH_PHP= 55 56 IGNORE_WITH_PHP= 56
USE_APACHE= 22+ USE_APACHE= 22+
.include "${PORTSDIR}/Mk/bsd.apache.mk" .include "${PORTSDIR}/Mk/bsd.apache.mk"
.if ${PORT_OPTIONS:MAP2FILTER} .if ${PORT_OPTIONS:MAP2FILTER}

View File

@ -3,7 +3,7 @@ COMMENT= The ${PHP_MODNAME} shared extension for php
USES+= php:ext USES+= php:ext
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} PHP_MODNAME= ${PKGNAMESUFFIX:S/-//}
PHP_VER= 70 PHP_VER= 70
IGNORE_WITH_PHP= 55 56 IGNORE_WITH_PHP= 56
EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME}
WRKSRC= ${WRKDIR}/${EXTSUBDIR} WRKSRC= ${WRKDIR}/${EXTSUBDIR}

View File

@ -35,12 +35,6 @@ APACHE_USE= APACHE=22+
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MAPACHE} .if ${PORT_OPTIONS:MAPACHE}
. if ${PHP_VER} == "54" && (${APACHE_VERSION} >= 24)
RUN_DEPENDS+= mod_php5>=0:www/mod_php5
. endif
. if ${PHP_VER} == "55" && (${APACHE_VERSION} >= 24)
RUN_DEPENDS+= mod_php55>=0:www/mod_php55
. endif
. if ${APACHE_VERSION} >= 24 . if ${APACHE_VERSION} >= 24
AP24= "" AP24= ""
. endif . endif

View File

@ -42,13 +42,7 @@ PORTDOCS= CHANGELOG.md INSTALL.md README-GIT.md CONTRIBUTING.md README.md
# if chosen by the user. # if chosen by the user.
.if ${PORT_OPTIONS:MREQPHP} .if ${PORT_OPTIONS:MREQPHP}
USE_PHP+= ctype curl dom gd hash iconv mbstring ldap mcrypt \ USE_PHP+= ctype curl dom gd hash iconv mbstring ldap mcrypt \
opcache pcre pdo session simplexml soap wddx xml zlib opcache pcre pdo session simplexml soap sqlite3 wddx xml zlib
.if ${PHP_VER} == 52
USE_PHP+= sqlite
.else
USE_PHP+= sqlite3
.endif
.endif .endif
.if ${PORT_OPTIONS:MOPTPHP} .if ${PORT_OPTIONS:MOPTPHP}

View File

@ -53,13 +53,9 @@ INSTALL_DIRS= library extras/library externals/dojo/dijit \
.if ${PORT_OPTIONS:MREQPHP} .if ${PORT_OPTIONS:MREQPHP}
USE_PHP+= ctype curl dom gd hash iconv mbstring ldap mcrypt \ USE_PHP+= ctype curl dom gd hash iconv mbstring ldap mcrypt \
opcache pcre pdo session simplexml soap \ opcache pcre pdo session simplexml soap sqlite3 \
wddx xml zlib wddx xml zlib
.if ${PHP_VER} == 52
USE_PHP+= sqlite
.else
USE_PHP+= sqlite3
.endif
RUN_DEPENDS+= pecl-memcache>=0:databases/pecl-memcache \ RUN_DEPENDS+= pecl-memcache>=0:databases/pecl-memcache \
pecl-memcached>=0:databases/pecl-memcached pecl-memcached>=0:databases/pecl-memcached
.endif .endif