blob: 2b9e6d5f27d3cab2542d685de31b1aaad85fc07e (
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
|
# $NetBSD: options.mk,v 1.2 2015/04/18 02:43:24 rodent Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ucommon
PKG_SUPPORTED_OPTIONS= gnutls openssl static tests
PKG_SUGGESTED_OPTIONS+= openssl
PLIST_VARS+= dynamic static
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnutls)
BUILDLINK_API_DEPENDS.gnutls+= gnutls>=3.0.0
.include "../../security/gnutls/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.0
.include "../../security/openssl/buildlink3.mk"
CMAKE_ARGS+= -DCRYPTO_OPENSSL=ON
.else
CMAKE_ARGS+= -DCRYPTO_OPENSSL=OFF
.endif
.if !empty(PKG_OPTIONS:Mstatic)
CMAKE_ARGS+= -DBUILD_STATIC=ON -DCRYPTO_STATIC=ON
PLIST.static= yes
.else
CMAKE_ARGS+= -DBUILD_STATIC=OFF -DCRYPTO_STATIC=OFF
PLIST.dynamic= yes
.endif
.if !empty(PKG_OPTIONS:Mtests)
CMAKE_ARGS+= -DBUILD_TESTING=ON
.else
CMAKE_ARGS+= -DBUILD_TESTING=OFF
.endif
|