ucommon: Incompatible with OpenSSL 1.1. Force gnutls instead. While here, clean up a bit. Bump PKGREVISION.diff -r1.16 -r1.17 pkgsrc/devel/ucommon/Makefile
(nia)
@@ -1,27 +1,29 @@ | @@ -1,27 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.16 2020/01/18 21:48:10 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.17 2020/03/06 12:12:58 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= ucommon-7.0.0 | 3 | DISTNAME= ucommon-7.0.0 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 3 | |
5 | CATEGORIES= devel | 5 | CATEGORIES= devel | |
6 | MASTER_SITES= ${MASTER_SITE_GNU:=commoncpp/} | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=commoncpp/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.gnu.org/software/commoncpp/ | 9 | HOMEPAGE= https://www.gnu.org/software/commoncpp/ | |
10 | COMMENT= Very light-weight C++ library for deeply embedded applications | 10 | COMMENT= Very light-weight C++ library for deeply embedded applications | |
11 | LICENSE= gnu-lgpl-v3 | 11 | LICENSE= gnu-lgpl-v3 | |
12 | 12 | |||
13 | USE_CMAKE= yes | 13 | USE_CMAKE= yes | |
14 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
15 | USE_TOOLS+= intltool pkg-config | 15 | USE_TOOLS+= pkg-config | |
16 | #USE_LIBTOOL= yes | 16 | ||
17 | # Incompatible with OpenSSL 1.1 | |||
18 | CMAKE_ARGS+= -DCRYPTO_OPENSSL=OFF | |||
19 | ||||
17 | PKGCONFIG_OVERRIDE+= commoncpp.pc.in | 20 | PKGCONFIG_OVERRIDE+= commoncpp.pc.in | |
18 | PKGCONFIG_OVERRIDE+= ucommon.pc.in | 21 | PKGCONFIG_OVERRIDE+= ucommon.pc.in | |
19 | 22 | |||
20 | .include "options.mk" | |||
21 | ||||
22 | LDFLAGS.SunOS+= -lsocket -lnsl -lintl | 23 | LDFLAGS.SunOS+= -lsocket -lnsl -lintl | |
23 | 24 | |||
25 | .include "options.mk" | |||
24 | .include "../../mk/dlopen.buildlink3.mk" | 26 | .include "../../mk/dlopen.buildlink3.mk" | |
25 | .include "../../mk/pthread.buildlink3.mk" | 27 | .include "../../mk/pthread.buildlink3.mk" | |
26 | .include "../../devel/gettext-lib/buildlink3.mk" | 28 | .include "../../devel/gettext-lib/buildlink3.mk" | |
27 | .include "../../mk/bsd.pkg.mk" | 29 | .include "../../mk/bsd.pkg.mk" |
@@ -1,25 +1,20 @@ | @@ -1,25 +1,20 @@ | |||
1 | # $NetBSD: options.mk,v 1.4 2020/01/25 10:45:10 jperkin Exp $ | 1 | # $NetBSD: options.mk,v 1.5 2020/03/06 12:12:58 nia Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ucommon | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ucommon | |
4 | PKG_SUPPORTED_OPTIONS= gnutls openssl tests | 4 | PKG_SUPPORTED_OPTIONS= gnutls tests | |
5 | PKG_SUGGESTED_OPTIONS+= openssl | 5 | PKG_SUGGESTED_OPTIONS+= gnutls | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | .if !empty(PKG_OPTIONS:Mgnutls) | 9 | .if !empty(PKG_OPTIONS:Mgnutls) | |
10 | CMAKE_ARGS+= -DCRYPTO_GNUTLS=ON | |||
10 | BUILDLINK_API_DEPENDS.gnutls+= gnutls>=3.0.0 | 11 | BUILDLINK_API_DEPENDS.gnutls+= gnutls>=3.0.0 | |
11 | .include "../../security/gnutls/buildlink3.mk" | 12 | .include "../../security/gnutls/buildlink3.mk" | |
12 | .endif | 13 | CMAKE_ARGS+= -DCRYPTO_GNUTLS=OFF | |
13 | ||||
14 | .if !empty(PKG_OPTIONS:Mopenssl) | |||
15 | .include "../../security/openssl/buildlink3.mk" | |||
16 | CMAKE_ARGS+= -DCRYPTO_OPENSSL=ON | |||
17 | .else | |||
18 | CMAKE_ARGS+= -DCRYPTO_OPENSSL=OFF | |||
19 | .endif | 14 | .endif | |
20 | 15 | |||
21 | .if !empty(PKG_OPTIONS:Mtests) | 16 | .if !empty(PKG_OPTIONS:Mtests) | |
22 | CMAKE_ARGS+= -DBUILD_TESTING=ON | 17 | CMAKE_ARGS+= -DBUILD_TESTING=ON | |
23 | .else | 18 | .else | |
24 | CMAKE_ARGS+= -DBUILD_TESTING=OFF | 19 | CMAKE_ARGS+= -DBUILD_TESTING=OFF | |
25 | .endif | 20 | .endif |