Skip to content

Commit

Permalink
www/phpmyfaq: actually make this work with PHP >= 8.0
Browse files Browse the repository at this point in the history
I used the wrong poudriere script to test these changes, it builds
with my production settings, where PHP is still set to 7.4, so it
didn't catch the build error.

PR:		261617
  • Loading branch information
fsmeets committed Feb 7, 2022
1 parent 45257ef commit 3fbf0a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions www/phpmyfaq/Makefile
Expand Up @@ -13,7 +13,7 @@ LICENSE= MPL20
WRKSRC= ${WRKDIR}/${PORTNAME}

USES= cpe php:web
USE_PHP= filter json mysqli pcre pdf session xml xmlrpc xmlwriter zlib
USE_PHP= filter json mysqli pcre session xml xmlrpc xmlwriter zlib
FAQ_DIR= attachments data images inc pdf xml
NO_BUILD= YES
NO_ARCH= YES
Expand All @@ -25,4 +25,10 @@ do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}/${i}
.endfor

.include <bsd.port.mk>
.include <bsd.port.pre.mk>

.if ${PHP_VER} < 80
USE_PHP+= pdf
.endif

.include <bsd.port.post.mk>

0 comments on commit 3fbf0a2

Please sign in to comment.