summaryrefslogtreecommitdiff
path: root/www/aws/options.mk
blob: 8d5fb32ee0dcffe08d94358094cc16d6eaf0b6d6 (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
# $NetBSD: options.mk,v 1.4 2012/07/08 20:14:28 marino Exp $


# xmlada is built-in (not optional) due to gprbuild dependency
# zlib is built-in because it's mandatory.  It even comes with AWS.
# ASIS is not supported right now (custom build, requires part of GNAT)

# The "ipv6" option effectively disabled IPv4 support, so it
# should not be switched on per default even on systems which
# support IPv6. For that reason, the option name is not "inet6".

PKG_OPTIONS_VAR=	PKG_OPTIONS.aws
PKG_SUPPORTED_OPTIONS=	ssl ldap ipv6 debug disable-shared-rt relocatable
PKG_SUGGESTED_OPTIONS=	ssl

.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"

CONFIGURE_ARGS+=	GCC=ada
CONFIGURE_ARGS+=	PROCESSORS=1
CONFIGURE_ARGS+=	PYTHON=python${PYVERSSUFFIX}
CONFIGURE_ARGS+=	XMLADA=true
CONFIGURE_ARGS+=	prefix=${PREFIX}
DOTBUILD=		release

# The system libgcc is from version 4.1 which doesn't include the symbol
# _Unwind_GetIPInfo.  If AWS uses the system zlib or if it's configured to use
# SSL the search path /usr/lib is inserted in the gnatmake/gprbuild
# instructions and the system libgcc.a is picked up instead of
# /usr/pkg/lib/libgcc.a.  This is a bug confirmed by Adacore and an internal
# bug report has been generated.  In the meantime, this means AWS can't be
# configured for HTTPS on NetBSD, and that zlib must be built from scratch on
# NetBSD until NetBSD upgrades it's libgcc or until a new GNAT and GPRBuild
# are delivered that don't have this bug.

.if $(OPSYS) == "NetBSD"
CONFIGURE_ARGS+=	ZLIB=false
.else
CONFIGURE_ARGS+=	ZLIB=true
.endif

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

.if !empty(PKG_OPTIONS:Mssl)
.if $(OPSYS) == "NetBSD"
MESSAGE_SRC=	MESSAGE_NETBSD_SSL
.else
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= SOCKET=openssl
.endif
.endif

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

.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= LDAP=true
DEPENDS+= openldap>=2.4:../../databases/openldap
.endif

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

PLIST_VARS+= ipv6 noipv6
.if !empty(PKG_OPTIONS:Mipv6)
CONFIGURE_ARGS+= IPv6=true
PLIST.ipv6= yes
.else
PLIST.noipv6= yes
.endif

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

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= DEBUG=true
DOTBUILD=debug
.endif

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

.if !empty(PKG_OPTIONS:Mdisable-shared-rt)
CONFIGURE_ARGS+= ENABLE_SHARED=false
.endif

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

.if !empty(PKG_OPTIONS:Mrelocatable)
CONFIGURE_ARGS+= DEFAULT_LIBRARY_TYPE=relocatable
.endif