diff options
Diffstat (limited to 'www/phprecipebook')
-rw-r--r-- | www/phprecipebook/Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/www/phprecipebook/Makefile b/www/phprecipebook/Makefile index 43853d4f9590..360e4fe86500 100644 --- a/www/phprecipebook/Makefile +++ b/www/phprecipebook/Makefile @@ -1,9 +1,4 @@ -# New ports collection makefile for: phprecipebook -# Date created: 27 September 2007 -# Whom: Guido Falsi <mad@madpilot.net> -# # $FreeBSD$ -# PORTNAME= phprecipebook PORTVERSION= 3.01 @@ -24,18 +19,22 @@ WANT_PHP_WEB= yes RECIPEDIR?= www/phprecipebook SUB_FILES= pkg-message -OPTIONS= PGSQL "Use PostgreSQL instead of MySQL" off \ +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= MYSQL PGSQL +OPTIONS_DEFAULT= MYSQL -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_PGSQL) -USE_PHP+= pgsql -USE_PGSQL= yes -.else +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql USE_MYSQL= yes .endif +.if ${PORT_OPTIONS:MPGSQL} +USE_PHP+= pgsql +USE_PGSQL= yes +.endif + post-extract: @${CHMOD} -R u+w ${WRKSRC} @@ -62,4 +61,4 @@ post-install: @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RECIPEDIR}' >> ${TMPPLIST} @${SED} -e 's|%%RECIPEDIR%%|${PREFIX}/${RECIPEDIR}|' ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |