summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/modular-xorg-xquartz/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11/modular-xorg-xquartz/Makefile b/x11/modular-xorg-xquartz/Makefile
index eee72aeab9e..02cea828a42 100644
--- a/x11/modular-xorg-xquartz/Makefile
+++ b/x11/modular-xorg-xquartz/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2015/10/01 12:55:09 tnn Exp $
+# $NetBSD: Makefile,v 1.2 2015/10/12 17:51:02 tnn Exp $
DISTNAME= xorg-server-1.17.2
PKGNAME= ${DISTNAME:S/xorg-server/modular-xorg-xquartz/}
@@ -80,7 +80,11 @@ CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix"
.include "../../security/nettle/buildlink3.mk"
CONFIGURE_ARGS+= --with-sha1=libnettle
-MAKE_ENV+= OSX_SDK_PATH=${OSX_SDK_PATH}
+.if exists(/usr/bin/xcrun) && exists(/usr/bin/sw_vers)
+MY_OSX_VERS!= /usr/bin/sw_vers -productVersion
+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}
MESSAGE_SUBST+= PREFIX=${PREFIX}
.include "../../devel/ncurses/buildlink3.mk"