Skip to content

Commit

Permalink
modular-xorg-xquartz, libAppleWM: Use predefined OSX_SDK_PATH
Browse files Browse the repository at this point in the history
The latest macOS Big Sur 11.2.1 and Xcode 12.4 as of 2021-02-24 do not
provide 11.2 SDK. They provide 11.1 SDK instead. mk/platform/Darwin.mk has
workaround for this situation. So use the workaround directly.

OSX_SDK_PATH may be internal, however it is accessible over 5 years.
It may not be a big problem hopefully.
  • Loading branch information
ryoon committed Feb 25, 2021
1 parent 2010ffc commit 32d3112
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions wm/libAppleWM/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2020/01/18 23:35:40 rillig Exp $
# $NetBSD: Makefile,v 1.9 2021/02/25 12:30:58 ryoon Exp $

DISTNAME= libAppleWM-1.4.1
PKGREVISION= 1
Expand All @@ -21,10 +21,7 @@ USE_TOOLS+= pkg-config
CONFIGURE_ENV+= LIB_MAN_SUFFIX=3
PKGCONFIG_OVERRIDE+= applewm.pc.in

.if exists(/usr/bin/xcrun)
MY_XCODE_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path
.endif
MAKE_ENV+= OSX_SDK_PATH=${MY_XCODE_SDK_PATH}
MAKE_ENV+= OSX_SDK_PATH=${XCODE_SDK_PATH}

.include "../../x11/xorgproto/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
Expand Down
7 changes: 2 additions & 5 deletions x11/modular-xorg-xquartz/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2020/05/22 10:56:48 adam Exp $
# $NetBSD: Makefile,v 1.14 2021/02/25 12:30:58 ryoon Exp $

DISTNAME= xorg-server-1.17.2
PKGNAME= ${DISTNAME:S/xorg-server/modular-xorg-xquartz/}
Expand Down Expand Up @@ -81,10 +81,7 @@ CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/tradcpp -Uunix"
.include "../../security/nettle/buildlink3.mk"
CONFIGURE_ARGS+= --with-sha1=libnettle

.if exists(/usr/bin/xcrun)
MY_XCODE_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path
MAKE_ENV+= OSX_SDK_PATH=${MY_XCODE_SDK_PATH}
.endif
MAKE_ENV+= OSX_SDK_PATH=${XCODE_SDK_PATH}

MESSAGE_SUBST+= PREFIX=${PREFIX}

Expand Down

0 comments on commit 32d3112

Please sign in to comment.