summaryrefslogtreecommitdiff
path: root/security/gnupg2
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-06-16 13:41:23 +0000
committerjperkin <jperkin@pkgsrc.org>2015-06-16 13:41:23 +0000
commitd6619fe2752098c6839445d7de032a6e1fcd51bc (patch)
treeaff760cca0d420bd7f3f4231221b7e081dee8adb /security/gnupg2
parente7ffa36072ea90ea40f2c5833fb1c09f9a2d5c0d (diff)
downloadpkgsrc-d6619fe2752098c6839445d7de032a6e1fcd51bc.tar.gz
Support the stdint.h fix when using the OSX SDK include path.
Diffstat (limited to 'security/gnupg2')
-rw-r--r--security/gnupg2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/security/gnupg2/Makefile b/security/gnupg2/Makefile
index 6f34e4b01bd..804c23e6349 100644
--- a/security/gnupg2/Makefile
+++ b/security/gnupg2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2015/06/03 21:00:39 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2015/06/16 13:41:23 jperkin Exp $
DISTNAME= gnupg-2.0.28
PKGNAME= ${DISTNAME:S/gnupg/gnupg2/}
@@ -20,8 +20,12 @@ CONFIGURE_ARGS+= --sharedstatedir=${VARBASE}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-pinentry-pgm=${BUILDLINK_PREFIX.pinentry}/bin/pinentry
+.include "../../mk/bsd.prefs.mk"
+
# Sometimes wrong include file gets detected, e.g. for Clang
-.if exists(/usr/include/stdint.h)
+.if defined(OSX_SDK_PATH) && exists(${OSX_SDK_PATH:Q}/usr/include/stdint.h)
+CONFIGURE_ENV+= gl_cv_absolute_stdint_h=${OSX_SDK_PATH:Q}/usr/include/stdint.h
+.elif exists(/usr/include/stdint.h)
CONFIGURE_ENV+= gl_cv_absolute_stdint_h=/usr/include/stdint.h
.endif