1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Convert to new options framework [1]

- While here, trim Makefile headers

Reported by:	bapt (on freebsd-ports@)  [1]
This commit is contained in:
Guido Falsi 2012-10-06 13:59:33 +00:00
parent dc4070b05d
commit c399bd5b5a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305365

View File

@ -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>