1 # $NetBSD: Makefile,v 1.71 2013/05/04 02:50:41 obache Exp $
5 MASTER_SITES
= ftp
://ftp.gnupg.org
/gcrypt
/gpgme
/
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 HOMEPAGE
= http
://www.gnupg.org
/related_software
/gpgme
/
10 COMMENT
= GnuPG Made Easy
15 PTHREAD_OPTS
+= require
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
32 .
include "../../mk/pthread.buildlink3.mk"
34 .if
${PTHREAD_TYPE} == "native"
35 CONFIGURE_ARGS
+= --without-pth
--without-pth-test
40 .
include "../../mk/bsd.prefs.mk"
42 .if
${OPSYS} == "HPUX"
43 CONFIGURE_ENV
+= ac_cv_lib_pthread_pthread_create
=yes
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
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"