Thu Aug 10 18:49:17 2017 UTC ()
Fix build under macOS Sierra and possibly older versions as well.


(tron)
diff -r1.82 -r1.83 pkgsrc/security/gpgme/Makefile

cvs diff -r1.82 -r1.83 pkgsrc/security/gpgme/Makefile (switch to unified diff)

--- pkgsrc/security/gpgme/Makefile 2017/08/01 11:48:20 1.82
+++ pkgsrc/security/gpgme/Makefile 2017/08/10 18:49:17 1.83
@@ -1,63 +1,64 @@ @@ -1,63 +1,64 @@
1# $NetBSD: Makefile,v 1.82 2017/08/01 11:48:20 ryoon Exp $ 1# $NetBSD: Makefile,v 1.83 2017/08/10 18:49:17 tron Exp $
2 2
3DISTNAME= gpgme-1.8.0 3DISTNAME= gpgme-1.8.0
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= security 5CATEGORIES= security
6MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/ 6MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.gnupg.org/related_software/gpgme/ 10HOMEPAGE= http://www.gnupg.org/related_software/gpgme/
11COMMENT= GnuPG Made Easy 11COMMENT= GnuPG Made Easy
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14USE_LANGUAGES+= c c++ 14USE_LANGUAGES+= c c++
15 15
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes
17GNU_CONFIGURE= yes 17GNU_CONFIGURE= yes
18PTHREAD_OPTS+= require 18PTHREAD_OPTS+= require
19INFO_FILES= yes 19INFO_FILES= yes
20 20
21# turn off swig/python detection; there is no configure flag as of 1.8.0 21# turn off swig/python detection; there is no configure flag as of 1.8.0
22# https://dev.gnupg.org/T3057 22# https://dev.gnupg.org/T3057
23CONFIGURE_ENV+= ac_cv_path_SWIG= 23CONFIGURE_ENV+= ac_cv_path_SWIG=
24 24
25SUBST_CLASSES+= pthread 25SUBST_CLASSES+= pthread
26SUBST_FILES.pthread= src/gpgme-config.in 26SUBST_FILES.pthread= src/gpgme-config.in
27SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g' 27SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
28SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g' 28SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g'
29SUBST_STAGE.pthread= post-patch 29SUBST_STAGE.pthread= post-patch
30 30
 31CPPFLAGS.Darwin= -D_POSIX_C_SOURCE=200809L
31LIBS.SunOS+= -lnsl -lsocket 32LIBS.SunOS+= -lnsl -lsocket
32 33
33# getenv_r is not detected correctly. It will be found 34# getenv_r is not detected correctly. It will be found
34# in either base system or librfuncs 35# in either base system or librfuncs
35CONFIGURE_ENV+= ac_cv_func_getenv_r=yes 36CONFIGURE_ENV+= ac_cv_func_getenv_r=yes
36 37
37# 17 errors as of 1.8.0 38# 17 errors as of 1.8.0
38# https://dev.gnupg.org/T3056 39# https://dev.gnupg.org/T3056
39TEST_TARGET= check 40TEST_TARGET= check
40 41
41.include "../../mk/pthread.buildlink3.mk" 42.include "../../mk/pthread.buildlink3.mk"
42 43
43.include "options.mk" 44.include "options.mk"
44 45
45CONFIGURE_ENV.HPUX+= ac_cv_lib_pthread_pthread_create=yes 46CONFIGURE_ENV.HPUX+= ac_cv_lib_pthread_pthread_create=yes
46 47
47.include "../../mk/bsd.prefs.mk" 48.include "../../mk/bsd.prefs.mk"
48 49
49# TLS is unsupported on NetBSD<=5, but causes crashes on -current too 50# TLS is unsupported on NetBSD<=5, but causes crashes on -current too
50#.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*) 51#.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*)
51.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) 52.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
52CONFIGURE_ENV+= gpgme_cv_tls_works=no 53CONFIGURE_ENV+= gpgme_cv_tls_works=no
53.endif 54.endif
54 55
55# we want the getenv_r() semantics of NetBSD-current 56# we want the getenv_r() semantics of NetBSD-current
56BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1 57BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1
57.include "../../devel/librfuncs/buildlink3.mk" 58.include "../../devel/librfuncs/buildlink3.mk"
58BUILDLINK_API_DEPENDS.libassuan+= libassuan>=2.0.2 59BUILDLINK_API_DEPENDS.libassuan+= libassuan>=2.0.2
59.include "../../security/libassuan2/buildlink3.mk" 60.include "../../security/libassuan2/buildlink3.mk"
60BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.17 61BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.17
61.include "../../security/libgpg-error/buildlink3.mk" 62.include "../../security/libgpg-error/buildlink3.mk"
62.include "../../mk/bsd.pkg.mk" 63.include "../../mk/bsd.pkg.mk"
63_UNWRAP_FILES= 64_UNWRAP_FILES=