pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/platform
Module Name: pkgsrc
Committed By: jperkin
Date: Thu Aug 10 16:45:28 UTC 2023
Modified Files:
pkgsrc/mk/platform: Darwin.mk
Log Message:
mk: Improve user experience for invalid MACOSX_DEPLOYMENT_TARGET.
To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 pkgsrc/mk/platform/Darwin.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.130 pkgsrc/mk/platform/Darwin.mk:1.131
--- pkgsrc/mk/platform/Darwin.mk:1.130 Wed Jul 19 08:11:35 2023
+++ pkgsrc/mk/platform/Darwin.mk Thu Aug 10 16:45:28 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.130 2023/07/19 08:11:35 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.131 2023/08/10 16:45:28 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -107,6 +107,10 @@ MAKEFLAGS+= OSX_VERSION=${OSX_VERSION:Q
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${MACOSX_DEPLOYMENT_TARGET} \
--show-sdk-path 2>/dev/null || echo /nonexistent
. endif
+. if !exists(${OSX_SDK_PATH})
+PKG_FAIL_REASON+= "Unable to find macOS SDK at ${OSX_SDK_PATH}"
+PKG_FAIL_REASON+= "Check MACOSX_DEPLOYMENT_TARGET points to a valid SDK"
+. endif
ALL_ENV+= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
MAKEFLAGS+= OSX_SDK_PATH=${OSX_SDK_PATH:Q}
_OPSYS_INCLUDE_DIRS?= ${OSX_SDK_PATH}/usr/include
Home |
Main Index |
Thread Index |
Old Index