diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2012-10-06 21:59:33 +0800 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2012-10-06 21:59:33 +0800 |
commit | c399bd5b5a84d34dd494396a880977c2ff5ca88b (patch) | |
tree | 37b76e46e519b1d8044890711f7ed2abcb1da675 /www/phprecipebook | |
parent | dc4070b05d80b7060e4c5703c2cf69fc7a2258ba (diff) | |
download | freebsd-ports-gnome-c399bd5b5a84d34dd494396a880977c2ff5ca88b.tar.gz freebsd-ports-gnome-c399bd5b5a84d34dd494396a880977c2ff5ca88b.tar.zst freebsd-ports-gnome-c399bd5b5a84d34dd494396a880977c2ff5ca88b.zip |
- Convert to new options framework [1]
- While here, trim Makefile headers
Reported by: bapt (on freebsd-ports@) [1]
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> |