summaryrefslogtreecommitdiff
path: root/wm
diff options
context:
space:
mode:
authortnn <tnn>2015-10-25 20:05:01 +0000
committertnn <tnn>2015-10-25 20:05:01 +0000
commit015cc8a9b4c4d18940c3c2e65a370384f9ed083b (patch)
tree4cdac8059cac4b0a0138a1b2dd2ecf3773b28430 /wm
parentca6b5602c8ed3a65a4ba5ad457aee3ee90fee3f1 (diff)
downloadpkgsrc-015cc8a9b4c4d18940c3c2e65a370384f9ed083b.tar.gz
More copy paste from mk/platform/Darwin.mk since it is not obvious to
me how to make it always provide this information for us. Should fix build on OS X 10.11.1.
Diffstat (limited to 'wm')
-rw-r--r--wm/libAppleWM/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/wm/libAppleWM/Makefile b/wm/libAppleWM/Makefile
index db1f6eccb23..1294c413f58 100644
--- a/wm/libAppleWM/Makefile
+++ b/wm/libAppleWM/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2015/10/12 17:51:02 tnn Exp $
+# $NetBSD: Makefile,v 1.5 2015/10/25 20:05:01 tnn Exp $
DISTNAME= libAppleWM-1.4.1
CATEGORIES= x11 devel
@@ -22,6 +22,9 @@ PKGCONFIG_OVERRIDE+= applewm.pc.in
.if exists(/usr/bin/xcrun) && exists(/usr/bin/sw_vers)
MY_OSX_VERS!= /usr/bin/sw_vers -productVersion
+. if ${MY_OSX_VERS:R:R} != ${MY_OSX_VERS:R}
+MY_OSX_VERS:= ${MY_OSX_VERS:R}
+. endif
MY_XCODE_SDK_PATH!= /usr/bin/xcrun --sdk macosx${MY_OSX_VERS} --show-sdk-path
.endif
MAKE_ENV+= OSX_SDK_PATH=${MY_XCODE_SDK_PATH}