diff --git a/setup-r-sysreqs/R/download.R b/setup-r-sysreqs/R/download.R index db2c07c..7f0ca84 100644 --- a/setup-r-sysreqs/R/download.R +++ b/setup-r-sysreqs/R/download.R @@ -55,6 +55,13 @@ bundle <- function(path, arch) { system2("tar", c("cJf", outfile, opts, path)) } +add_system_pc <- function(path) { + pc <- dir("pc", full.names = TRUE) + pcdir <- file.path(path, "lib/pkgconfig") + # do not overwrite existing ones that come from CRAN + file.copy(pc, pcdir) +} + create_bundle <- function(os = "darwin20", arch = c("arm64", "x86_64")) { os <- match.arg(os) arch <- match.arg(arch) @@ -80,6 +87,7 @@ create_bundle <- function(os = "darwin20", arch = c("arm64", "x86_64")) { } strip(out) + add_system_pc(out) bundle(out, arch) } diff --git a/setup-r-sysreqs/pc/libcurl.pc b/setup-r-sysreqs/pc/libcurl.pc new file mode 100644 index 0000000..b1fe850 --- /dev/null +++ b/setup-r-sysreqs/pc/libcurl.pc @@ -0,0 +1,40 @@ +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# \___|\___/|_| \_\_____| +# +# Copyright (C) 2001 - 2018, Daniel Stenberg, , et al. +# +# This software is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at https://curl.haxx.se/docs/copyright.html. +# +# You may opt to use, copy, modify, merge, publish, distribute and/or sell +# copies of the Software, and permit persons to whom the Software is +# furnished to do so, under the terms of the COPYING file. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# +########################################################################### + +# This should most probably benefit from getting a "Requires:" field added +# dynamically by configure. +# +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include +supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP" +supported_features="AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO MultiSSL NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy" + +Name: libcurl +URL: https://curl.haxx.se/ +Description: Library to transfer files with ftp, http, etc. +Version: 7.64.1 +Libs: -L${libdir} -lcurl +Libs.private: -lldap -lz +Cflags: diff --git a/setup-r-sysreqs/pc/libedit.pc b/setup-r-sysreqs/pc/libedit.pc new file mode 100644 index 0000000..72fa1e6 --- /dev/null +++ b/setup-r-sysreqs/pc/libedit.pc @@ -0,0 +1,12 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libedit +Description: command line editor library provides generic line editing, history, and tokenization functions. +Version: 3.0 +Requires: +Libs: -L${libdir} -ledit +Cflags: -I${includedir}/editline diff --git a/setup-r-sysreqs/pc/libexslt.pc b/setup-r-sysreqs/pc/libexslt.pc new file mode 100644 index 0000000..f3cdef0 --- /dev/null +++ b/setup-r-sysreqs/pc/libexslt.pc @@ -0,0 +1,13 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + + +Name: libexslt +Version: 0.8.17 +Description: EXSLT Extension library +Requires: libxml-2.0 +Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm +Cflags: diff --git a/setup-r-sysreqs/pc/libxml-2.0.pc b/setup-r-sysreqs/pc/libxml-2.0.pc new file mode 100644 index 0000000..d7cb87c --- /dev/null +++ b/setup-r-sysreqs/pc/libxml-2.0.pc @@ -0,0 +1,14 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include +modules=1 + +Name: libXML +Version: 2.9.4 +Description: libXML library version2. +Requires: +Libs: -L${libdir} -lxml2 +Libs.private: -lz -lpthread -licucore -lm +Cflags: diff --git a/setup-r-sysreqs/pc/libxslt.pc b/setup-r-sysreqs/pc/libxslt.pc new file mode 100644 index 0000000..6d88788 --- /dev/null +++ b/setup-r-sysreqs/pc/libxslt.pc @@ -0,0 +1,13 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + + +Name: libxslt +Version: 1.1.29 +Description: XSLT library version 2. +Requires: libxml-2.0 +Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm +Cflags: diff --git a/setup-r-sysreqs/pc/ncurses.pc b/setup-r-sysreqs/pc/ncurses.pc new file mode 100644 index 0000000..ce71590 --- /dev/null +++ b/setup-r-sysreqs/pc/ncurses.pc @@ -0,0 +1,14 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include +major_version=5 +version=5.7.20081102 + +Name: ncurses +Description: ncurses 5.7 library +Version: ${version} +Requires: +Libs: -L${libdir} -lncurses +Cflags: diff --git a/setup-r-sysreqs/pc/ncursesw.pc b/setup-r-sysreqs/pc/ncursesw.pc new file mode 100644 index 0000000..4db4c04 --- /dev/null +++ b/setup-r-sysreqs/pc/ncursesw.pc @@ -0,0 +1,14 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include +major_version=5 +version=5.7.20081102 + +Name: ncursesw +Description: ncurses 5.7 library +Version: ${version} +Requires: +Libs: -L${libdir} -lncurses +Cflags: diff --git a/setup-r-sysreqs/pc/uuid.pc b/setup-r-sysreqs/pc/uuid.pc new file mode 100644 index 0000000..e679e71 --- /dev/null +++ b/setup-r-sysreqs/pc/uuid.pc @@ -0,0 +1,14 @@ +homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk +prefix=${homebrew_sdkroot}/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +sharedlibdir=${libdir} +includedir=${prefix}/include/uuid + +Name: uuid +Description: Universally unique id library +Version: 1.0 + +Requires: +Libs: +Cflags: -I${includedir}