Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / gpgme / Makefile
blob9110ad312a95a408ef334b2efda0b1e4b0065c85
1 # $NetBSD: Makefile,v 1.71 2013/05/04 02:50:41 obache Exp $
3 DISTNAME= gpgme-1.4.1
4 CATEGORIES= security
5 MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/
6 EXTRACT_SUFX= .tar.bz2
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= http://www.gnupg.org/related_software/gpgme/
10 COMMENT= GnuPG Made Easy
11 LICENSE= gnu-gpl-v2
13 USE_LIBTOOL= yes
14 GNU_CONFIGURE= yes
15 PTHREAD_OPTS+= require
16 INFO_FILES= yes
18 SUBST_CLASSES+= pthread
19 SUBST_FILES.pthread= src/gpgme-config.in
20 SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
21 SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g'
22 SUBST_STAGE.pthread= post-patch
24 LIBS.SunOS+= -lnsl -lsocket
26 # getenv_r is not detected correctly. It will be found
27 # in either base system or librfuncs
28 CONFIGURE_ENV+= ac_cv_func_getenv_r=yes
30 TEST_TARGET= check
32 .include "../../mk/pthread.buildlink3.mk"
34 .if ${PTHREAD_TYPE} == "native"
35 CONFIGURE_ARGS+= --without-pth --without-pth-test
36 .endif
38 .include "options.mk"
40 .include "../../mk/bsd.prefs.mk"
42 .if ${OPSYS} == "HPUX"
43 CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=yes
44 .endif
46 # TLS is unsupported on NetBSD<=5, but causes crashes on -current too
47 #.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*)
48 .if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
49 CONFIGURE_ENV+= gpgme_cv_tls_works=no
50 .endif
52 # we want the getenv_r() semantics of NetBSD-current
53 BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1
54 .include "../../devel/librfuncs/buildlink3.mk"
55 BUILDLINK_API_DEPENDS.libassuan+= libassuan>=2.0.2
56 .include "../../security/libassuan2/buildlink3.mk"
57 BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.4
58 .include "../../security/libgpg-error/buildlink3.mk"
59 .include "../../mk/bsd.pkg.mk"
60 _UNWRAP_FILES=