aboutsummaryrefslogtreecommitdiffstats
path: root/www/aws-demos/Makefile
blob: 945de385e9a564fe26e18e12c8c27c29d6feac12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=   aws
PORTVERSION=    3.3.0.0
CATEGORIES= www
MASTER_SITES=   http://downloads.dragonlace.net/src/
PKGNAMESUFFIX=  -demos

MAINTAINER= marino@FreeBSD.org
COMMENT=    Adacore Ada Web Server demos

LICENSE=    GPLv3 GPLv3RLE
LICENSE_COMB=   multi

BUILD_DEPENDS=  gprbuild:${PORTSDIR}/devel/gprbuild \
        xmlada>=4.4:${PORTSDIR}/textproc/xmlada \
        aws>=3.1:${PORTSDIR}/www/aws

USES=       ada gmake tar:bzip2

DISTINFO_FILE=  ${PORTSDIR}/www/aws/distinfo

CONF_ARGS=  PROCESSORS=1
CONF_ARGS+= GCC=ada
CONF_ARGS+= prefix=${PREFIX}

OPTIONS_DEFINE=     SSL LDAP
OPTIONS_DEFAULT=    SSL
OPTIONS_SUB=        yes

DEMO_DIRS+= auth
DEMO_DIRS+= autobahn
DEMO_DIRS+= cert
DEMO_DIRS+= com
DEMO_DIRS+= dispatch
DEMO_DIRS+= dowload_manager
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+= soap_demo
DEMO_DIRS+= soap_disp
DEMO_DIRS+= soap_vs
DEMO_DIRS+= split
DEMO_DIRS+= test_mail
DEMO_DIRS+= text_input
DEMO_DIRS+= upload
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+= websockets
DEMO_DIRS+= wps
DEMO_DIRS+= ws
DEMO_DIRS+= ws_candy
DEMO_DIRS+= zdemo

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSSL}
CONF_ARGS+= SOCKET=openssl
DEMO_DIRS+= agent
DEMO_DIRS+= runme
.endif

.if ${PORT_OPTIONS:MLDAP}
CONF_ARGS+= LDAP=true
DEMO_DIRS+= test_ldap
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|@PREFIX@|${LOCALBASE}|g' \
        ${WRKSRC}/demos/test_ldap/test_ldap.gpr
    @${REINPLACE_CMD} -e 's| setup_tp | |' ${WRKSRC}/Makefile

do-configure:
    ${MKDIR} ${WRKSRC}/.build/native/debug/static/obj
    cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
       ${MAKE_CMD} setup ${CONF_ARGS}

do-build:
.for dd in ${DEMO_DIRS}
    @${ECHO_MSG} "=== BUILD ${dd} ==="
    cd ${WRKSRC}/demos/${dd} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
.endfor

do-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/templates \
        ${STAGEDIR}${EXAMPLESDIR}/images
.for dd in ${DEMO_DIRS}
    ${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0001 \
       -exec ${INSTALL} {} ${STAGEDIR}${EXAMPLESDIR}/ \;
.endfor
    cd ${WRKSRC} && \
        ${COPYTREE_SHARE} web_elements ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/demos/runme/aws_*.png \
        ${STAGEDIR}${EXAMPLESDIR}/images
    ${INSTALL_DATA} ${WRKSRC}/demos/web_mail/*html \
        ${STAGEDIR}${EXAMPLESDIR}/templates
    ${INSTALL_DATA} ${FILESDIR}/templates.tads \
        ${STAGEDIR}${EXAMPLESDIR}/templates

.include <bsd.port.mk>
2017-11-301-0/+1 * irc/inspircd: Update to 2.0.25Mark Felder2017-11-283-6/+15 * - Fix license (sources mention LGPLv3+)Dmitry Marakasov2017-11-151-10/+7 * - Update to 24Ryan Steinmetz2017-11-152-5/+5 * Update irc/konversation to latest upstream release.Adriaan de Groot2017-11-132-5/+4 * devel/icu: update to 60.1Jan Beich2017-11-091-1/+1 * Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.Jimmy Olgeni2017-11-031-1/+1 * Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.Jimmy Olgeni2017-10-311-1/+1 * irc/irssi: Update to 1.0.5, Fixes multiple security vulnerabilitiesDanilo G. Baio2017-10-232-4/+4 * irc/undernet-ircu: Update to 2.10.12.18Danilo G. Baio2017-10-222-4/+4 * irc/weechat: Security update to 1.9.1Bernard Spil2017-09-272-4/+4 * devel/boost-*: update to 1.65.1Jan Beich2017-09-251-1/+1 * devel/boost-*: enable C++11 featuresJan Beich2017-09-251-1/+1 * devel/icu: update to 59.1Jan Beich2017-09-251-1/+1 * Remove USES=execinfo.Mathieu Arnold2017-09-222-2/+1 * Fix gemspec for rubygem-cinch 2.3.4 updateSunpoet Po-Chuan Hsieh2017-09-212-4/+6 * Update to 2.3.4Sunpoet Po-Chuan Hsieh2017-09-213-5/+5 * Fix license information for portgs that use "the same license as Perl".Mathieu Arnold2017-09-1514-14/+14 * Chase Emacs updateAshish SHUKLA2017-09-121-1/+1 * - Add LICENSE_FILEDmitry Marakasov2017-09-121-4/+9 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2017-09-116-6/+6 * Some typo fixes and whitespace cleanup for pkg-descr files.Jimmy Olgeni2017-09-111-1/+1 * - Update WWWDmitry Marakasov2017-09-081-1/+1 * Remove MASTER_SITE_SUBDIRSunpoet Po-Chuan Hsieh2017-09-081-1/+0 * Update to 6.90Sunpoet Po-Chuan Hsieh2017-09-072-13/+16 * irc/bitlbee-facebook: update to 1.1.2, respect PREFIXPietro Cerutti2017-08-31