blob: 81f4b4df8850a3a50eb7aaee3ebf3cedc3fdea97 (
plain)
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
|
# $NetBSD: Makefile,v 1.8 2013/04/27 13:02:48 marino Exp $
#
DISTNAME= aws-${AWS_VERSION}
PKGNAME= aws-demos-${AWS_VERSION}
PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= http://downloads.dragonlace.net/src/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= draco@marino.st
HOMEPAGE= http://libre.adacore.com/libre/tools/aws/
COMMENT= Adacore Ada Web Server demonstration programs
LICENSE= gnu-gpl-v2
AWS_VERSION= 2.10.0.1
USE_TOOLS+= gmake makeinfo sed gawk
USE_LANGUAGES= c ada
PATCHDIR= ${.CURDIR}/../../www/aws/patches
DISTINFO_FILE= ${.CURDIR}/../../www/aws/distinfo
CONFIGURE_ARGS+= GCC=ada
CONFIGURE_ARGS+= PROCESSORS=1
CONFIGURE_ARGS+= PYTHON=python${PYVERSSUFFIX}
CONFIGURE_ARGS+= XMLADA=true
CONFIGURE_ARGS+= prefix=${PREFIX}
MAKE_ENV+= ADA_PROJECT_PATH=${PREFIX}/lib/gnat
SUBST_CLASSES+= lpath
SUBST_STAGE.lpath= post-patch
SUBST_MESSAGE.lpath= Add library path for ldap
SUBST_FILES.lpath= demos/test_ldap/test_ldap.gpr
SUBST_SED.lpath= -e 's|@PREFIX@|${PREFIX}|g'
DEMO_DIRS+= auth
DEMO_DIRS+= com
DEMO_DIRS+= dispatch
DEMO_DIRS+= hello_world
DEMO_DIRS+= hotplug
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+= 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
# These don't build, fail finding "aws.ini"
#DEMO_DIRS+= interoplab
#DEMO_DIRS+= hello_wsdl
PLIST_VARS+= ldap ssl
BUILT_AWS != pkg_info -Q PKG_OPTIONS aws 2>/dev/null || echo
.if !empty(BUILT_AWS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= LDAP=true
DEMO_DIRS+= test_ldap
PLIST.ldap= yes
.endif
.if !empty(BUILT_AWS:Mssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= SOCKET=openssl
DEMO_DIRS+= agent
DEMO_DIRS+= runme
PLIST.ssl= yes
.endif
do-configure:
${MKDIR} ${WRKSRC}/.build/native/debug/static/obj
cd ${WRKSRC} && ${GMAKE} setup ${CONFIGURE_ARGS}
do-build:
.for dd in ${DEMO_DIRS}
cd ${WRKSRC}/demos/${dd} && ${SETENV} ${MAKE_ENV} ${GMAKE}
.endfor
do-install:
${MKDIR} ${DESTDIR}${PREFIX}/share/examples/aws/demos
.for dd in ${DEMO_DIRS}
${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0100 \
-exec ${INSTALL} {} ${DESTDIR}${PREFIX}/share/examples/aws/demos/ \;
.endfor
.include "../../www/aws/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gnatpython/buildlink3.mk"
.include "../../devel/gprbuild-aux/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|