Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -3,6 +3,7 @@ PORTNAME= redis PORTVERSION= 3.1.4 CATEGORIES= databases +FLAVORS= 56 70 71 MAINTAINER= daniel@blodan.se COMMENT= Extension to access Redis @@ -10,6 +11,21 @@ LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/COPYING +.include + +.if ${FLAVOR} == "56" +PKGNAMEPREFIX= pecl-56 +DEFAULT_VERSIONS= php=56 +.endif +.if ${FLAVOR} == "70" +PKGNAMEPREFIX= pecl-70 +DEFAULT_VERSIONS= php=70 +.endif +.if ${FLAVOR} == "71" +PKGNAMEPREFIX= pecl-71 +DEFAULT_VERSIONS= php=71 +.endif + USES= php:pecl USE_PHP= session:build