head	1.9;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1;
locks; strict;
comment	@# @;


1.9
date	2012.11.17.06.02.57;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.10.06.13.59.33;	author madpilot;	state Exp;
branches;
next	1.7;

1.7
date	2012.04.14.18.45.07;	author madpilot;	state Exp;
branches;
next	1.6;

1.6
date	2011.06.21.15.12.01;	author dhn;	state Exp;
branches;
next	1.5;

1.5
date	2010.03.19.00.50.43;	author wen;	state Exp;
branches;
next	1.4;

1.4
date	2010.03.19.00.48.16;	author wen;	state Exp;
branches;
next	1.3;

1.3
date	2009.08.22.00.38.20;	author amdmi3;	state Exp;
branches;
next	1.2;

1.2
date	2008.12.04.19.58.30;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2007.12.12.09.11.24;	author beech;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Switch exporter over
@
text
@# $FreeBSD: head/www/phprecipebook/Makefile 305365 2012-10-06 13:59:33Z madpilot $

PORTNAME=	phprecipebook
PORTVERSION=	3.01
CATEGORIES=	www deskutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION:C/\..*//}
EXTRACT_SUFX=	.tgz

MAINTAINER=	madpilot@@FreeBSD.org
COMMENT=	Small php webapp to manage your recipes

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/docs/LICENSE.TXT

WRKSRC=		${WRKDIR}/${PORTNAME}
NO_BUILD=	yes
USE_PHP=	xml
WANT_PHP_WEB=	yes
RECIPEDIR?=	www/phprecipebook
SUB_FILES=	pkg-message

OPTIONS_SINGLE=	BACKEND
OPTIONS_SINGLE_BACKEND=	MYSQL PGSQL
OPTIONS_DEFAULT=	MYSQL

.include <bsd.port.options.mk>

.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}

do-install:
	@@${CP} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${RECIPEDIR}
	@@if [ ! -f ${PREFIX}/${RECIPEDIR}/custom_inc.php ]; then \
		${CP} ${PREFIX}/${RECIPEDIR}/custom_inc.php.sample \
		${PREFIX}/${RECIPEDIR}/custom_inc.php ; fi
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${RECIPEDIR}

post-install:
	@@${ECHO} "@@unexec if cmp -s %D/${RECIPEDIR}/custom_inc.php.sample \
		%D/${RECIPEDIR}/custom_inc.php; \
		then rm -f %D/${RECIPEDIR}/custom_inc.php; fi" >> ${TMPPLIST}
	@@${ECHO} "${RECIPEDIR}/custom_inc.php.sample" >> ${TMPPLIST}
	@@${ECHO} "@@exec if [ ! -f %D/${RECIPEDIR}/custom_inc.php ] ; \
		then cp -p %D/%F %B/custom_inc.php; fi" >> ${TMPPLIST}
	@@${ECHO} "@@exec mkdir -p %D/${RECIPEDIR}/modules/settings" >> ${TMPPLIST}
	@@${FIND} ${WRKSRC}/${file} -not -type d -not -name 'custom_inc.php*' \
		| ${SED} -ne 's,^${WRKSRC},${RECIPEDIR},p' >> ${TMPPLIST}
	@@${FIND} -d ${WRKSRC}/${file} -type d \
		| ${SED} -ne 's,^${WRKSRC},@@dirrm ${RECIPEDIR},p' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RECIPEDIR}' >> ${TMPPLIST}
	@@${SED} -e 's|%%RECIPEDIR%%|${PREFIX}/${RECIPEDIR}|' ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.8
log
@SVN rev 305365 on 2012-10-06 13:59:33Z by madpilot

- Convert to new options framework [1]
- While here, trim Makefile headers

Reported by:	bapt (on freebsd-ports@@)  [1]
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.7
log
@Change to my FreeBSD.org email address.

Approved by:	crees (mentor)
@
text
@a0 4
# New ports collection makefile for:   phprecipebook
# Date created:        27 September 2007
# Whom:                Guido Falsi <mad@@madpilot.net>
#
a1 1
#
d22 3
a24 1
OPTIONS=	PGSQL "Use PostgreSQL instead of MySQL" off \
d26 1
a26 1
.include <bsd.port.pre.mk>
d28 6
a33 1
.if defined(WITH_PGSQL)
a35 3
.else
USE_PHP+=	mysql
USE_MYSQL=	yes
d64 1
a64 1
.include <bsd.port.post.mk>
@


1.6
log
@- Update to 3.01
- Add LICENSE

PR:		ports/158104
Submitted by:	Guido Falsi <mad@@madpilot.net> (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	mad@@madpilot.net
@


1.5
log
@- Update to 2.41

PR:		ports/144851
Submitted by:	Guido Falsi <mad@@madilot.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.41
d11 2
a12 1
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION}
d17 3
d43 1
a43 1
	@@${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
@


1.4
log
@- UPdate 2.41

PR:		ports/144851
Submitted by:	Guido Falsi <mad@@madilot.net> (maintainer)
@
text
@@


1.3
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d9 1
a9 1
PORTVERSION=	2.39
d16 1
@


1.2
log
@- Update to 2.39

PR:		129312
Submitted by:	Guido Falsi <mad@@madpilot.net> (maintainer)
@
text
@d11 1
a11 1
MASTER_SITES=	SF
@


1.1
log
@- New port phprecipebook-2.38
- Small php/webapp to manage recipes and generate shopping lists.

PR:		ports/116708
Submitted by:	Guido Falsi <mad@@madpilot.net> (maintainer)
Approved by:	linimon (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	2.38
@

