From owner-svn-ports-all@FreeBSD.ORG Sat Oct 6 13:59:33 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A136C1065672; Sat, 6 Oct 2012 13:59:33 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8ACBE8FC08; Sat, 6 Oct 2012 13:59:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q96DxXUu076011; Sat, 6 Oct 2012 13:59:33 GMT (envelope-from madpilot@svn.freebsd.org) Received: (from madpilot@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q96DxX62076009; Sat, 6 Oct 2012 13:59:33 GMT (envelope-from madpilot@svn.freebsd.org) Message-Id: <201210061359.q96DxX62076009@svn.freebsd.org> From: Guido Falsi Date: Sat, 6 Oct 2012 13:59:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305365 - head/www/phprecipebook X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 13:59:33 -0000 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 -# # $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 +.include -.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 +.include