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


1.4
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.11.17.06.02.28;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2011.07.19.10.58.23;	author culot;	state Exp;
branches;
next	1.1;

1.1
date	2011.03.03.00.45.54;	author wen;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: John Marino <draco@@marino.st>
# $FreeBSD: head/www/aws/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	aws
PORTVERSION=	2.10.0
CATEGORIES=	www
MASTER_SITES=	http://downloads.dragonlace.net/src/ \
		http://dragonlace.mirrors.ada.cx/src/

MAINTAINER=	draco@@marino.st
COMMENT=	Adacore Ada Web Server and framework

BUILD_DEPENDS=	gnat-aux>=20101204:${PORTSDIR}/lang/gnat-aux \
		gprbuild-aux>=20101120:${PORTSDIR}/devel/gprbuild-aux \
		xmlada>=3.2:${PORTSDIR}/textproc/xmlada \
		gnatpython>=20101207:${PORTSDIR}/devel/gnatpython

USE_PYTHON=	yes
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_LDCONFIG=	yes
CC=		gnatgcc
DOTBUILD=	release
MAKE_ENV+=	ADA_PROJECT_PATH=${PREFIX}/lib/gnat

OPTIONS_DEFINE=	SSL IPV6 DEMOS DEBUG LDAP DSRT RELOC
OPTIONS_DEFAULT=	SSL
SSL_DESC=	Enable HTTPS/SSL support
DEMOS_DESC=	Build demo programs in examples/aws/demos
DSRT_DESC=	Disable shared runtime
RELOC_DESC=	Build shared libraries (default is static)

CONF_ARGS=	PROCESSORS=1
CONF_ARGS+=	GCC=gnatgcc
CONF_ARGS+=	PYTHON=python${PYTHON_VER}

.include <bsd.port.options.mk>

###################
##  SSL Support  ##
###################

.if ${PORT_OPTIONS:MSSL}
CONF_ARGS+=	SOCKET=openssl
BUILD_DEPENDS+=	openssl>=1:${PORTSDIR}/security/openssl
RUN_DEPENDS+=	openssl>=1:${PORTSDIR}/security/openssl
PLIST_SUB+=	YSSL=""
PLIST_SUB+=	NSSL="@@comment "
.else
PLIST_SUB+=	YSSL="@@comment "
PLIST_SUB+=	NSSL=""
.endif

####################
##  LDAP Support  ##
####################

.if ${PORT_OPTIONS:MLDAP}
CONF_ARGS+=	LDAP=true
RUN_DEPENDS+=	openldap24>=2.4:${PORTSDIR}/net/openldap24-client
.endif

####################
##  IPv6 Support  ##
####################

.if ${PORT_OPTIONS:MIPV6}
CONF_ARGS+=	IPv6=true
.endif

#####################
##  Debug Support  ##
#####################

.if ${PORT_OPTIONS:MDEBUG}
CONF_ARGS+=	DEBUG=true
.endif

##############################
##  Shared Runtime Library  ##
##############################

.if ${PORT_OPTIONS:MDSRT}
CONF_ARGS+=	ENABLE_SHARED=false
.endif

############################
##  Default Library Type  ##
############################

.if ${PORT_OPTIONS:MRELOC}
CONF_ARGS+=	DEFAULT_LIBRARY_TYPE=relocatable
.endif

#####################
##  DEMOS Support  ##
#####################

.if ${PORT_OPTIONS:MDEMOS}
DEMO_DIRS+=	agent
DEMO_DIRS+=	auth
DEMO_DIRS+=	com
DEMO_DIRS+=	dispatch
DEMO_DIRS+=	hello_world
DEMO_DIRS+=	hello_wsdl
DEMO_DIRS+=	hotplug
DEMO_DIRS+=	interoplab
DEMO_DIRS+=	jabber_demo
DEMO_DIRS+=	multiple_sessions
DEMO_DIRS+=	res_demo
DEMO_DIRS+=	runme
DEMO_DIRS+=	soap_demo
DEMO_DIRS+=	soap_disp
DEMO_DIRS+=	soap_vs
DEMO_DIRS+=	split
DEMO_DIRS+=	test_mail
DEMO_DIRS+=	text_input
DEMO_DIRS+=	vh_demo
DEMO_DIRS+=	web_block
DEMO_DIRS+=	web_block_ajax
DEMO_DIRS+=	web_block_ajax_templates
DEMO_DIRS+=	web_elements
DEMO_DIRS+=	web_mail
DEMO_DIRS+=	wps
DEMO_DIRS+=	ws
DEMO_DIRS+=	zdemo

.if ${PORT_OPTIONS:MLDAP}
DEMO_DIRS+=	test_ldap
PLIST_SUB+=	LDAP=""
.else
PLIST_SUB+=	LDAP="@@comment "
.endif
PLIST_SUB+=	DEMO=""
.else
PLIST_SUB+=	DEMO="@@comment "
PLIST_SUB+=	LDAP="@@comment "
.endif

do-configure:
	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
	${GMAKE} setup ${CONF_ARGS}

do-build:
	# docs are built, but the .pdf format is intentionally disabled
	# The taTeX dependency brings in ~100MB so it's not worth it.
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} build build_doc

test: install
	cd ${WRKSRC}/regtests && python${PYTHON_VER} testsuite.py

do-install:
	cd ${WRKSRC} && ${GMAKE} install
.if ${PORT_OPTIONS:MDEMOS}
	${MAKE} demos
	${MAKE} demos-install
.endif

demos:
.for dd in ${DEMO_DIRS}
	cd ${WRKSRC}/demos/${dd} && ${GMAKE}
.endfor

demos-install:
	${MKDIR} ${PREFIX}/share/examples/aws/demos
.for dd in ${DEMO_DIRS}
	${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0001 \
	-exec ${INSTALL} {} ${PREFIX}/share/examples/aws/demos/ \;
.endfor

.include <bsd.port.mk>
@


1.3
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:  aws
# Date created:                       12 December 2010
# Whom:                               John Marino <draco@@marino.st>
#
# $FreeBSD: head/www/aws/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d27 6
a32 7
OPTIONS=	SSL   "Enable HTTPS/SSL support" on
OPTIONS+=	IPV6  "Enable IPv6 support" off
OPTIONS+=	DEMOS "Build demo programs in examples/aws/demos" off
OPTIONS+=	DEBUG "Build AWS with debugging symbols" off
OPTIONS+=	LDAP  "Enable LDAP support" off
OPTIONS+=	DSRT  "Disable shared runtime" off
OPTIONS+=	RELOC "Build shared libraries (default is static)" off
d44 1
a44 1
.if defined(WITH_SSL)
d59 1
a59 1
.if defined(WITH_LDAP)
d68 1
a68 1
.if defined(WITH_IPV6)
d76 1
a76 1
.if defined(WITH_DEBUG)
d84 1
a84 1
.if defined(WITH_DSRT)
d92 1
a92 1
.if defined(WITH_RELOC)
d100 1
a100 1
.if defined(WITH_DEMOS)
d129 1
a129 1
.if defined (WITH_LDAP)
d155 1
a155 1
.if defined(WITH_DEMOS)
@


1.2
log
@- Do not hardcode Python version in Makefile test target
- Avoid sed errors during documentation build

PR:		ports/158896
Submitted by:	John Marino <freebsdml@@marino.st> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.1
log
@AWS stands for Ada Web Server, but it is more than just another webserver...

AWS is a complete framework to develop web based applications.  The main
part of the framework is the embedded web server.  This small yet powerful
web server can be embedded into your application so your application will be
able to talk with a standard web browser such as Microsoft Internet Explorer
or Netscape Communicator.  Around this web server, a lot of services have
been developed.

The framework includes:
  * seb parameters module         * session server
  * SOAP support                  * WSDL generation from Ada
  * template parser               * AJAX support
  * HTTPS/SSL support             * large server support
  * virtual hosting support       * server push
  * directory browser             * status page
  * log module                    * hotplug module
  * light communications API      * configuration API
  * client API                    * web page service
  * SMTP support                  * LDAP support
  * Jabber support

WWW: http://libre.adacore.com/libre/tools/aws/

PR:		ports/153828
Submitted by:	John Marino <freebsdml@@marino.st>
@
text
@d156 1
a156 1
	cd ${WRKSRC}/regtests && python2.6 testsuite.py
@

