pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/R



Module Name:    pkgsrc
Committed By:   bacon
Date:           Tue Sep 26 20:37:17 UTC 2023

Modified Files:
        pkgsrc/math/R: Makefile

Log Message:
math/R: Unbreak build on macOS > 12

R 4.2.0 uses a deprecated function
Set MACOSX_DEPLOYMENT_TARGET=12.0 for temporary fix on macOS 13+


To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 pkgsrc/math/R/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/R/Makefile
diff -u pkgsrc/math/R/Makefile:1.241 pkgsrc/math/R/Makefile:1.242
--- pkgsrc/math/R/Makefile:1.241        Fri Jul 21 22:46:50 2023
+++ pkgsrc/math/R/Makefile      Tue Sep 26 20:37:17 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.241 2023/07/21 22:46:50 mef Exp $
+# $NetBSD: Makefile,v 1.242 2023/09/26 20:37:17 bacon Exp $
 
 #
 # If updating this package, please try to ensure PLIST.Darwin is kept in sync
@@ -104,6 +104,14 @@ SHAREMODE=         644
 
 CONFIGURE_ARGS.Darwin+=        --disable-openmp
 
+# Temporary fix for deprecated function ATSFontFindFromName() in R 4.2.0
+# Newer R versions should eliminate this function and obsolete this hack
+# https://trac.macports.org/ticket/66095
+# Darwin 21 corresponds to macOS 12
+.if ${OPSYS} == "Darwin" && ${OS_VERSION:R} > 21
+MAKE_ENV.Darwin+= MACOSX_DEPLOYMENT_TARGET="12.0"
+.endif
+
 # R_PAPERSIZE can be: A4, Letter, Legal, Executive
 .if defined(PAPERSIZE)
 R_PAPERSIZE?=          ${PAPERSIZE}



Home | Main Index | Thread Index | Old Index