| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.241 2023/07/21 22:46:50 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.242 2023/09/26 20:37:17 bacon Exp $ |
2 | | | 2 | |
3 | # | | 3 | # |
4 | # If updating this package, please try to ensure PLIST.Darwin is kept in sync | | 4 | # If updating this package, please try to ensure PLIST.Darwin is kept in sync |
5 | # to avoid unnecessarily breaking macOS users. | | 5 | # to avoid unnecessarily breaking macOS users. |
6 | # | | 6 | # |
7 | DISTNAME= R-4.2.0 | | 7 | DISTNAME= R-4.2.0 |
8 | PKGREVISION= 7 | | 8 | PKGREVISION= 7 |
9 | CATEGORIES= math | | 9 | CATEGORIES= math |
10 | MASTER_SITES= ${MASTER_SITE_R_CRAN:=base/R-4/} | | 10 | MASTER_SITES= ${MASTER_SITE_R_CRAN:=base/R-4/} |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= https://www.R-project.org/ | | 13 | HOMEPAGE= https://www.R-project.org/ |
14 | COMMENT= Statistical language for data analysis and graphics | | 14 | COMMENT= Statistical language for data analysis and graphics |
| @@ -94,26 +94,34 @@ CONFIGURE_ENV+= ac_cv_path_R_GZIPCMD=${ | | | @@ -94,26 +94,34 @@ CONFIGURE_ENV+= ac_cv_path_R_GZIPCMD=${ |
94 | CONFIGURE_ENV+= ac_cv_path_R_UNZIPCMD=${TOOLS_PATH.unzip} | | 94 | CONFIGURE_ENV+= ac_cv_path_R_UNZIPCMD=${TOOLS_PATH.unzip} |
95 | CONFIGURE_ENV+= r_cv_prog_f77_flag_mieee=no | | 95 | CONFIGURE_ENV+= r_cv_prog_f77_flag_mieee=no |
96 | CONFIGURE_ENV+= ac_cv_path_PDFLATEX="" | | 96 | CONFIGURE_ENV+= ac_cv_path_PDFLATEX="" |
97 | | | 97 | |
98 | # We don't want "lib64" | | 98 | # We don't want "lib64" |
99 | CONFIGURE_ENV+= LIBnn=lib | | 99 | CONFIGURE_ENV+= LIBnn=lib |
100 | | | 100 | |
101 | # Package assumes it can append to files (specifically DESCRIPTION) that have | | 101 | # Package assumes it can append to files (specifically DESCRIPTION) that have |
102 | # been installed SHAREMODE | | 102 | # been installed SHAREMODE |
103 | SHAREMODE= 644 | | 103 | SHAREMODE= 644 |
104 | | | 104 | |
105 | CONFIGURE_ARGS.Darwin+= --disable-openmp | | 105 | CONFIGURE_ARGS.Darwin+= --disable-openmp |
106 | | | 106 | |
| | | 107 | # Temporary fix for deprecated function ATSFontFindFromName() in R 4.2.0 |
| | | 108 | # Newer R versions should eliminate this function and obsolete this hack |
| | | 109 | # https://trac.macports.org/ticket/66095 |
| | | 110 | # Darwin 21 corresponds to macOS 12 |
| | | 111 | .if ${OPSYS} == "Darwin" && ${OS_VERSION:R} > 21 |
| | | 112 | MAKE_ENV.Darwin+= MACOSX_DEPLOYMENT_TARGET="12.0" |
| | | 113 | .endif |
| | | 114 | |
107 | # R_PAPERSIZE can be: A4, Letter, Legal, Executive | | 115 | # R_PAPERSIZE can be: A4, Letter, Legal, Executive |
108 | .if defined(PAPERSIZE) | | 116 | .if defined(PAPERSIZE) |
109 | R_PAPERSIZE?= ${PAPERSIZE} | | 117 | R_PAPERSIZE?= ${PAPERSIZE} |
110 | .else | | 118 | .else |
111 | R_PAPERSIZE?= A4 | | 119 | R_PAPERSIZE?= A4 |
112 | .endif | | 120 | .endif |
113 | .if (${R_PAPERSIZE} == "Letterdj") | | 121 | .if (${R_PAPERSIZE} == "Letterdj") |
114 | R_PAPERSIZE= Letter | | 122 | R_PAPERSIZE= Letter |
115 | .endif | | 123 | .endif |
116 | CONFIGURE_ENV+= R_PAPERSIZE=${R_PAPERSIZE:Q} | | 124 | CONFIGURE_ENV+= R_PAPERSIZE=${R_PAPERSIZE:Q} |
117 | | | 125 | |
118 | # These macros are used during the build, so strip off the -o,-g flags. | | 126 | # These macros are used during the build, so strip off the -o,-g flags. |
119 | INSTALL_DATA= ${INSTALL} ${COPY} -m ${SHAREMODE} | | 127 | INSTALL_DATA= ${INSTALL} ${COPY} -m ${SHAREMODE} |