head	1.10;
access;
symbols
	RELEASE_8_3_0:1.2;
locks; strict;
comment	@# @;


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

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

1.8
date	2012.12.10.19.24.05;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.11.17.06.02.29;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.10.01.18.35.12;	author rm;	state Exp;
branches;
next	1.5;

1.5
date	2012.09.22.21.15.50;	author ohauer;	state Exp;
branches;
next	1.4;

1.4
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.3;

1.3
date	2012.06.22.05.09.56;	author rm;	state Exp;
branches;
next	1.2;

1.2
date	2012.01.01.16.47.36;	author ohauer;	state Exp;
branches;
next	1.1;

1.1
date	2011.12.25.19.25.28;	author eadler;	state Exp;
branches;
next	;


desc
@@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alexander Lunkov <lunkov@@gmail.com>
# $FreeBSD: head/www/cas/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	cas
PORTVERSION=	3.5.6
CATEGORIES=	www devel
MASTER_SITES=	http://cas.havoc.ru/download/

MAINTAINER=	lunkov@@gmail.com
COMMENT=	C++ Application Server, version 2

LIB_DEPENDS=	expat:${PORTSDIR}/textproc/expat2 \
		pcre:${PORTSDIR}/devel/pcre       \
		ctpp2:${PORTSDIR}/textproc/ctpp2

USES=		cmake
USE_LDCONFIG=	yes
USE_ICONV=	yes
WITHOUT_NLS=	yes
MAKE_JOBS_SAFE=	yes

OPTIONS_DEFINE=	DEBUG_MODE               \
		ENABLE_OPTIMIZATION      \
		BUILD_APACHE2X_MODULE    \
		BUILD_CURL_XMLRPC_CLIENT \
		INSTALL_EXAMPLE_MODULES  \
		INSTALL_CAS_LIBRARY      \
		INSTALL_CAS_MODULES      \
		INSTALL_CAS_HEADERS      \
		INSTALL_CAS_CONFIGS      \
		INSTALL_CAS_BINARIES     \
		INSTALL_CAS_DATA

OPTIONS_DEFAULT=ENABLE_OPTIMIZATION      \
		BUILD_APACHE2X_MODULE    \
		BUILD_CURL_XMLRPC_CLIENT \
		INSTALL_CAS_LIBRARY      \
		INSTALL_CAS_MODULES      \
		INSTALL_CAS_HEADERS      \
		INSTALL_CAS_CONFIGS      \
		INSTALL_CAS_BINARIES     \
		INSTALL_CAS_DATA

DEBUG_MODE_DESC=		Enable debug output
ENABLE_OPTIMIZATION_DESC=	Enable optimization
BUILD_APACHE2X_MODULE_DESC=	Build Apache 2.x module
BUILD_CURL_XMLRPC_CLIENT_DESC=	Build cURL-based XMLRPC client
INSTALL_EXAMPLE_MODULES_DESC= 	Install example modules
INSTALL_CAS_LIBRARY_DESC=	Install CAS library (libcas)
INSTALL_CAS_MODULES_DESC=	Install CAS modules
INSTALL_CAS_HEADERS_DESC=	Install CAS headers
INSTALL_CAS_CONFIGS_DESC=	Install CAS configuration files
INSTALL_CAS_BINARIES_DESC=	Install CAS binaries
INSTALL_CAS_DATA_DESC=		Install CAS data files

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG_MODE}
CMAKE_ARGS+=	-DDEBUG_MODE=ON
.else
CMAKE_ARGS+=	-DDEBUG_MODE=OFF
.endif

.if ${PORT_OPTIONS:MENABLE_OPTIMIZATION}
CMAKE_ARGS+=	-DENABLE_OPTIMIZATION=ON
.else
CMAKE_ARGS+=	-DENABLE_OPTIMIZATION=OFF
.endif

CMAKE_ARGS+=	-DBUILD_APACHE13_MODULE=OFF

.if ${PORT_OPTIONS:MBUILD_APACHE2X_MODULE}
USE_APACHE=	22
CMAKE_ARGS+=	-DBUILD_APACHE2X_MODULE=ON
PLIST_SUB+=	APACHE2X_MODULE=""
.else
CMAKE_ARGS+=	-DBUILD_APACHE2X_MODULE=OFF
PLIST_SUB+=	APACHE2X_MODULE="@@comment "
.endif

.if ${PORT_OPTIONS:MBUILD_CURL_XMLRPC_CLIENT}
LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
CMAKE_ARGS+=	-DBUILD_CURL_XMLRPC_CLIENT=ON
PLIST_SUB+=	CURL_XMLRPC_CLIENT=""
.else
CMAKE_ARGS+=	-DBUILD_CURL_XMLRPC_CLIENT=OFF
PLIST_SUB+=	CURL_XMLRPC_CLIENT="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_EXAMPLE_MODULES}
CMAKE_ARGS+=	-DINSTALL_EXAMPLE_MODULES=ON
PLIST_SUB+=	EXAMPLE_MODULES=""
.else
CMAKE_ARGS+=	-DINSTALL_EXAMPLE_MODULES=OFF
PLIST_SUB+=	EXAMPLE_MODULES="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_LIBRARY}
CMAKE_ARGS+=	-DINSTALL_CAS_LIBRARY=ON
PLIST_SUB+=	CAS_LIBRARY=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_LIBRARY=OFF
PLIST_SUB+=	CAS_LIBRARY="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_MODULES}
CMAKE_ARGS+=	-DINSTALL_CAS_MODULES=ON
PLIST_SUB+=	CAS_MODULES=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_MODULES=OFF
PLIST_SUB+=	CAS_MODULES="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_HEADERS}
CMAKE_ARGS+=	-DINSTALL_CAS_HEADERS=ON
PLIST_SUB+=	CAS_HEADERS=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_HEADERS=OFF
PLIST_SUB+=	CAS_HEADERS="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_CONFIGS}
CMAKE_ARGS+=	-DINSTALL_CAS_CONFIGS=ON
PLIST_SUB+=	CAS_CONFIGS=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_CONFIGS=OFF
PLIST_SUB+=	CAS_CONFIGS="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_BINARIES}
CMAKE_ARGS+=	-DINSTALL_CAS_BINARIES=ON
PLIST_SUB+=	CAS_BINARIES=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_BINARIES=OFF
PLIST_SUB+=	CAS_BINARIES="@@comment "
.endif

.if ${PORT_OPTIONS:MINSTALL_CAS_DATA}
CMAKE_ARGS+=	-DINSTALL_CAS_DATA=ON
PLIST_SUB+=	CAS_DATA=""
.else
CMAKE_ARGS+=	-DINSTALL_CAS_DATA=OFF
PLIST_SUB+=	CAS_DATA="@@comment "
.endif

.include <bsd.port.mk>
@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312731
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/www/cas/Makefile 312731 2013-02-21 17:46:02Z pawel $
d16 1
a16 1
USE_CMAKE=	yes
@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/cas/Makefile 308630 2012-12-10 19:11:11Z mm $
d5 1
a5 2
PORTVERSION=	3.5.5
PORTREVISION=	2
d20 1
d22 3
a24 3
OPTIONS_DEFINE=	DEBUG_MODE \
		ENABLE_OPTIMIZATION \
		BUILD_APACHE2X_MODULE \
d26 6
a31 6
		INSTALL_EXAMPLE_MODULES \
		INSTALL_CAS_LIBRARY \
		INSTALL_CAS_MODULES \
		INSTALL_CAS_HEADERS \
		INSTALL_CAS_CONFIGS \
		INSTALL_CAS_BINARIES \
d34 2
a35 2
OPTIONS_DEFAULT=ENABLE_OPTIMIZATION \
		BUILD_APACHE2X_MODULE \
d37 5
a41 5
		INSTALL_CAS_LIBRARY \
		INSTALL_CAS_MODULES \
		INSTALL_CAS_HEADERS \
		INSTALL_CAS_CONFIGS \
		INSTALL_CAS_BINARIES \
a71 7
# XXX apache13 was removed from portstree
# XXX
##.if ${PORT_OPTIONS:MBUILD_APACHE13_MODULE}
##CMAKE_ARGS+=	-DBUILD_APACHE13_MODULE=ON
##USE_APACHE=	13
##PLIST_SUB+=	APACHE13_MODULE=""
##.else
a72 2
PLIST_SUB+=	APACHE13_MODULE="@@comment "
##.endif
@


1.7
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/cas/Makefile 305138 2012-10-01 18:35:12Z rm $
d6 1
a6 1
PORTREVISION=	1
@


1.6
log
@SVN rev 305138 on 2012-10-01 18:35:12Z by rm

- update to 2.8.2
- optionify the port
- chase the update in dependend ports:
  - textproc/py-pyctpp2
  - www/cas

while here:
- trim Makefile header
- tab -> space change in pkg-descr:WWW

PR:		170610
Submitted by:	Veniamin Gvozdikov <g.veniamin at googlemail dot com>
Approved by:	maintainer timeout (> 1 month)
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5
log
@SVN rev 304723 on 2012-09-22 21:15:50Z by ohauer

- USE_APACHE= s/22+/22/
- adopt new Makefile header

Port build fails on local exp-run with apache24 with
 error: 'conn_rec' has no member named 'remote_ip'

or various other apache22 specific functions/parameters

with hat apache@@
@
text
@d6 1
@


1.4
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
@d1 1
a1 4
# New ports collection makefile for:	cas
# Date created:				24 Nov 2011
# Whom:					Alexander Lunkov <lunkov@@gmail.com>
#
a2 1
#
d21 33
a53 11
OPTIONS=	DEBUG_MODE			"Enable debug output"			off \
		ENABLE_OPTIMIZATION		"Enable optimization"			on  \
		BUILD_APACHE2X_MODULE		"Build Apache 2.x module"		on  \
		BUILD_CURL_XMLRPC_CLIENT	"Build cURL-based XMLRPC client"	on  \
		INSTALL_EXAMPLE_MODULES 	"Install example modules"		off \
		INSTALL_CAS_LIBRARY		"Install CAS library (libcas)"		on  \
		INSTALL_CAS_MODULES		"Install CAS modules"			on  \
		INSTALL_CAS_HEADERS		"Install CAS headers"			on  \
		INSTALL_CAS_CONFIGS		"Install CAS configuration files"	on  \
		INSTALL_CAS_BINARIES		"Install CAS binaries"			on  \
		INSTALL_CAS_DATA		"Install CAS data files"		on
d59 1
a59 1
.if defined(WITH_DEBUG_MODE)
d65 1
a65 1
.if defined(WITH_ENABLE_OPTIMIZATION)
d73 1
a73 1
##.if defined(WITH_BUILD_APACHE13_MODULE)
d82 2
a83 2
.if defined(WITH_BUILD_APACHE2X_MODULE)
USE_APACHE=	22+
d91 1
a91 1
.if defined(WITH_BUILD_CURL_XMLRPC_CLIENT)
d100 1
a100 1
.if defined(WITH_INSTALL_EXAMPLE_MODULES)
d108 1
a108 1
.if defined(WITH_INSTALL_CAS_LIBRARY)
d116 1
a116 1
.if defined(WITH_INSTALL_CAS_MODULES)
d124 1
a124 1
.if defined(WITH_INSTALL_CAS_HEADERS)
d132 1
a132 1
.if defined(WITH_INSTALL_CAS_CONFIGS)
d140 1
a140 1
.if defined(WITH_INSTALL_CAS_BINARIES)
d148 1
a148 1
.if defined(WITH_INSTALL_CAS_DATA)
@


1.3
log
@- update to 3.5.5

PR:		168849
Submitted by:	Veniamin Gvozdikov <g.veniamin at googlemail dot com>
Approved by:	maintainer timeout (2 weeks)
@
text
@d65 1
a65 1
USE_APACHE=	20+
@


1.2
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d1 3
a3 3
# New ports collection makefile for:   cas
# Date created:         24 Nov 2011
# Whom:                 Alexander Lunkov <lunkov@@gmail.com>
d9 1
a9 1
PORTVERSION=	3.5.3
@


1.1
log
@C++ Application Server, version 2

WWW: http://ctpp.havoc.ru/

PR:		ports/162880
Submitted by:	Alexander Lunkov <lunkov@@gmail.com>
@
text
@a26 1
		BUILD_APACHE13_MODULE		"Build Apache 1.3 module"		off \
d53 7
a59 5
.if defined(WITH_BUILD_APACHE13_MODULE)
CMAKE_ARGS+=	-DBUILD_APACHE13_MODULE=ON
USE_APACHE=	13
PLIST_SUB+=	APACHE13_MODULE=""
.else
d62 1
a62 1
.endif
@

