summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-11-01 12:22:32 +0000
committerjperkin <jperkin@pkgsrc.org>2013-11-01 12:22:32 +0000
commitcbb1b01996adccb9be87a276ba717882d9b91b27 (patch)
tree798fe26a6e9bdebe544ca742c9d8d7ff32a07673 /mk
parent199d8733e63565a83670ae7e063d7c92a1d6f847 (diff)
downloadpkgsrc-cbb1b01996adccb9be87a276ba717882d9b91b27.tar.gz
OSX Mavericks and Xcode 5 no longer ship system headers in /usr/include, they
are instead moved to SDK-specific locations. This breaks many builtin checks which assume headers are in a fixed place. Rather than trying to dig around finding where Xcode.app might be installed, just override IS_BUILTIN for libraries that we know exist.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index a76dd67fc07..59575609bf8 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.56 2013/11/01 11:58:48 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.57 2013/11/01 12:22:32 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -101,6 +101,18 @@ KRB5_DEFAULT?= mit-krb5
.if !empty(OS_VERSION:M[56].*)
USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
.endif
+#
+# OSX Mavericks and Xcode 5 no longer ship /usr/include headers, moving them
+# instead to SDK-specific locations. This breaks various builtin header
+# checks, so we simply override builtins here that we know exist.
+#
+.if ${OS_VERSION:R} >= 13
+IS_BUILTIN.db1= yes
+IS_BUILTIN.dl= yes
+IS_BUILTIN.pthread= yes
+IS_BUILTIN.termcap= yes
+IS_BUILTIN.terminfo= yes
+.endif
# Builtin defaults which make sense for this platform.
_OPSYS_PREFER.linux-pam?= native