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


1.11
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.06.02.58;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2011.08.20.17.27.50;	author ohauer;	state Exp;
branches;
next	1.7;

1.7
date	2009.12.05.02.40.38;	author glarkin;	state Exp;
branches;
next	1.6;

1.6
date	2009.08.13.18.34.19;	author glarkin;	state Exp;
branches;
next	1.5;

1.5
date	2009.05.27.18.51.36;	author glarkin;	state Exp;
branches;
next	1.4;

1.4
date	2009.04.21.19.19.07;	author glarkin;	state Exp;
branches;
next	1.3;

1.3
date	2008.07.18.21.05.19;	author glarkin;	state Exp;
branches;
next	1.2;

1.2
date	2008.04.27.05.42.33;	author beech;	state Exp;
branches;
next	1.1;

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


desc
@@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Greg Larkin <glarkin@@FreeBSD.org>
# $FreeBSD: head/www/prado/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	prado
PORTVERSION=	3.1.6.r2699
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST=	prado3
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	glarkin@@FreeBSD.org
COMMENT=	A framework for developing PHP web applications

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRCDOCS=	${WRKDIR}/${PORTNAME}-docs-${PORTVERSION:C|.r|-r|}

USE_ZIP=	yes

USE_APACHE_RUN=	22+

NO_BUILD=	yes
WANT_PHP_WEB=	yes
USE_PHP=	session
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	PROD REQPHP OPTPHP DOCS EXAMPLES
OPTIONS_DEFAULT=	REQPHP
PROD_DESC=	Install for production server (see: make confighelp)
REQPHP_DESC=	Install required PHP dependencies
OPTPHP_DESC=	Install optional PHP dependencies

PLIST_SUB+=	CONFDIR=${CONFDIR_REL}

CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDOCS}
DISTFILES+=	${PORTNAME}-docs-${PORTVERSION:C|.r|-r|}${EXTRACT_SUFX}
.endif

WITH_PHP_CGI?=	/cgi-bin/php

.if ${PHP_SAPI:Mcgi} == "cgi" && ${PHP_SAPI:Mmod} == ""
CGI_EXT=	-cgi
.else
CGI_EXT=
.endif

SUB_LIST+=	PHPCGI=${WITH_PHP_CGI}

.if ${PORT_OPTIONS:MPROD}
PROD=		production
.else
PROD=		development
.endif

.if ${PORT_OPTIONS:MDOCS}
SUB_LIST+=	HASHMARK=
.else
SUB_LIST+=	HASHMARK=\#
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
DEMOS=		demos
.else
DEMOS=
.endif

CONF=		prado-${PROD}${CGI_EXT}.conf
SUB_FILES+=	${CONF}

.if ${PORT_OPTIONS:MREQPHP}
USE_PHP+=	dom spl ctype pcre
.endif

.if ${PORT_OPTIONS:MOPTPHP}
USE_PHP+=	pdo iconv zlib sqlite memcache mcrypt xsl soap
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
.endif

# Maintainer-mode target to speed up fixup of output from genplist
fix-new-plist:
	@@if [ -f pkg-plist.new ]; then \
		${PERL} -ni.bak -e \
			's#^(.*%%WWWDIR%%/demos)#%%PORTEXAMPLES%%$$1#g; \
			print;' pkg-plist.new; \
	else \
		${ECHO_CMD} Please run genplist to create pkg-plist.new; \
	fi

confighelp:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "On a production server, the Apache DocumentRoot is"
	@@${ECHO_MSG} "updated to point to the Prado webroot directory."
	@@${ECHO_MSG} "In this configuration, the Prado application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "A non-production server, Prado is installed at"
	@@${ECHO_MSG} "the /prado URL, and the Prado application is"
	@@${ECHO_MSG} "accessed at http://www.myservername.com/prado/."
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "For more information, please see:"
	@@${ECHO_MSG} "http://www.pradosoft.com/wiki/index.php/Installation"
	@@${ECHO_MSG} ""

do-install:
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "index.html ${DEMOS} \
		framework requirements tests" ${WWWDIR}
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	@@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
		${WWWDIR}' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type f -print0 | \
		${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type d -print0 | \
		${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}

post-install:
	@@if [ -d "${CONFDIR}" ]; then \
	  ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/prado.conf; \
	else \
	  ${ECHO_MSG} "" ; \
	  ${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
	  ${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
	  ${ECHO_MSG} "so I cannot install prado.conf there!" ; \
	  ${ECHO_MSG} "" ; \
	  ${FALSE} ; \
	fi
.if ${PORT_OPTIONS:MDOCS}
	@@cd ${WRKSRCDOCS} && ${COPYTREE_SHARE} . ${DOCSDIR}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "HISTORY UPGRADE" ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}
.if ${CGI_EXT} == "-cgi"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"Your Prado installation was configured to use the PHP CGI binary."
	@@${ECHO_MSG}	"The PHP CGI binary is expected to be referenced by the URL:"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"	${WITH_PHP_CGI}"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"If this is incorrect, reinstall the port with the WITH_PHP_CGI knob"
	@@${ECHO_MSG}	"set to the correct URL."
.endif
	@@${ECHO_MSG}	"*********************************************************************"

.include <bsd.port.post.mk>
@


1.10
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	prado
# Date created:        04 January 2008
# Whom:                Greg Larkin <glarkin@@FreeBSD.org>
#
# $FreeBSD: head/www/prado/Makefile 302724 2012-08-18 14:29:08Z ohauer $
#
a9 1
.if defined(NOPORTDOCS)
a10 4
.else
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
		${PORTNAME}-docs-${PORTVERSION:C|.r|-r|}${EXTRACT_SUFX}
.endif
d30 5
a34 3
OPTIONS=	PROD "Install for production server (see: make confighelp)" Off \
		REQPHP "Install required PHP dependencies" On \
		OPTPHP "Install optional PHP dependencies" Off
d43 4
d57 1
a57 1
.if defined(WITH_PROD)
d63 3
a65 1
.if defined(NOPORTDOCS)
a66 2
.else
SUB_LIST+=	HASHMARK=
d69 3
a71 1
.if defined(NOPORTEXAMPLES)
a72 2
.else
DEMOS=		demos
d78 1
a78 1
.if defined(WITH_REQPHP)
d82 1
a82 1
.if defined(WITH_OPTPHP)
d136 1
a136 1
.if !defined(NOPORTDOCS)
@


1.9
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d29 1
a29 1
USE_APACHE=	20+
@


1.7
log
@- Moved various PHP-related directives ahead of bsd.port.pre.mk
- Bumped PORTREVISION on affected ports

PR:		ports/135674
Submitted by:	yzlin
@
text
@d10 1
a10 1
PORTREVISION=	1
d29 1
a29 1
USE_APACHE=	2.0+
@


1.6
log
@- Updated to 3.1.6.r2699
@
text
@d10 1
d34 2
a49 3
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

@


1.5
log
@- Updated to 3.1.5
- Added a maintainer mode target to fix up the pkg-plist created by
  ports-mgmt/genplist
- Fixed some portlint warnings
@
text
@d9 1
a9 1
PORTVERSION=	3.1.5.r2662
d17 1
a17 1
		${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
d24 1
a24 1
WRKSRCDOCS=	${WRKDIR}/${PORTNAME}-docs-${PORTVERSION}
@


1.4
log
@- Update to 3.1.4
- Add support for NOPORTEXAMPLES
@
text
@d9 1
a9 1
PORTVERSION=	3.1.4.r2603
d31 1
a31 1
IGNORE_WITH_PHP=4
a32 1
WANT_PHP_WEB=	yes
d47 3
a57 3
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4

d73 1
a73 1
DEMOS=		
d90 10
d116 1
a116 1
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "index.html ${DEMOS} editors \
@


1.3
log
@Changed my MAINTAINER address to
glarkin@@FreeBSD.org.

Approved by:	beech (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	3.1.2.r2448
d11 8
a18 1
MASTER_SITES=	SF
d23 3
d31 1
d73 6
a105 3
post-configure:
	@@cd ${WRKSRC} && ${MV} "HISTORY" "UPGRADE" docs/

d107 1
a107 1
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "index.html demos editors \
d131 2
a132 1
	@@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
@


1.2
log
@- Update to 3.1.2.r2448
- Incorporated some changes from the www/codeigniter Makefile

PR:		ports/122996
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d3 1
a3 1
# Whom:                Greg Larkin <glarkin@@sourcehosting.net>
d13 1
a13 1
MAINTAINER=	glarkin@@sourcehosting.net
@


1.1
log
@- New port prado-3.1.1.r2290

- PRADO(tm) is a component-based and event-driven programming framework
  for developing Web applications in PHP 5. PRADO stands for PHP Rapid
  Application Development Object-oriented.

PR:		ports/119344
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
Approved by:	linimon (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	3.1.1.r2290
d56 6
d100 4
@

