Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2012 13:59:33 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305365 - head/www/phprecipebook
Message-ID:  <201210061359.q96DxX62076009@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Sat Oct  6 13:59:33 2012
New Revision: 305365
URL: http://svn.freebsd.org/changeset/ports/305365

Log:
  - Convert to new options framework [1]
  - While here, trim Makefile headers
  
  Reported by:	bapt (on freebsd-ports@)  [1]

Modified:
  head/www/phprecipebook/Makefile   (contents, props changed)

Modified: head/www/phprecipebook/Makefile
==============================================================================
--- head/www/phprecipebook/Makefile	Sat Oct  6 13:54:19 2012	(r305364)
+++ head/www/phprecipebook/Makefile	Sat Oct  6 13:59:33 2012	(r305365)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210061359.q96DxX62076009>