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