diff options
author | jperkin <jperkin@pkgsrc.org> | 2015-06-16 13:41:23 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2015-06-16 13:41:23 +0000 |
commit | 867c7dc9febe1d555d40983c424029fe5e8b215e (patch) | |
tree | aff760cca0d420bd7f3f4231221b7e081dee8adb /security | |
parent | fc5d676a6f4f669df918fd5c9bb7f3e8a859db65 (diff) | |
download | pkgsrc-867c7dc9febe1d555d40983c424029fe5e8b215e.tar.gz |
Support the stdint.h fix when using the OSX SDK include path.
Diffstat (limited to 'security')
-rw-r--r-- | security/gnupg2/Makefile | 8 |
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 |