Merge pull request #10129 from carlocab/big-sur-pkg-config

os/mac/pkgconfig: merge pc files for 11.1 and 11.0
This commit is contained in:
Mike McQuaid 2020-12-28 13:19:31 +00:00 committed by GitHub
commit e74be0f53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 17 additions and 199 deletions

View File

@ -7,7 +7,7 @@ module Stdenv
undef homebrew_extra_pkg_config_paths undef homebrew_extra_pkg_config_paths
def homebrew_extra_pkg_config_paths def homebrew_extra_pkg_config_paths
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"] ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
end end
def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false) def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false)

View File

@ -34,7 +34,7 @@ module Superenv
# @private # @private
def homebrew_extra_pkg_config_paths def homebrew_extra_pkg_config_paths
paths = \ paths = \
["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"] ["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
paths << "#{MacOS::XQuartz.lib}/pkgconfig" << "#{MacOS::XQuartz.share}/pkgconfig" if x11? paths << "#{MacOS::XQuartz.lib}/pkgconfig" << "#{MacOS::XQuartz.share}/pkgconfig" if x11?
paths paths
end end

View File

@ -0,0 +1 @@
11

View File

@ -1,40 +0,0 @@
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 2001 - 2018, Daniel Stenberg, <daniel@haxx.se>, 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.0.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:

View File

@ -1,12 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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

View File

@ -1,13 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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:

View File

@ -1,14 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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:

View File

@ -1,13 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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:

View File

@ -1,14 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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:

View File

@ -1,14 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.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:

View File

@ -1,12 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: SQLite
Description: SQL database engine
Version: 3.32.3
Libs: -L${libdir} -lsqlite3
Libs.private:
Cflags:

View File

@ -0,0 +1 @@
11

View File

@ -1,12 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: expat
Version: 2.2.8
Description: expat XML parser
URL: http://www.libexpat.org
Libs: -L${libdir} -lexpat
Cflags:

View File

@ -1,12 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
toolexeclibdir=${libdir}
includedir=${prefix}/include/ffi
Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.3-rc0
Libs: -L${toolexeclibdir} -lffi
Cflags: -I${includedir}

View File

@ -1,14 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.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}

View File

@ -1,14 +0,0 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
sharedlibdir=${libdir}
includedir=${prefix}/include
Name: zlib
Description: zlib compression library
Version: 1.2.11
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags:

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -23,7 +23,7 @@
# This should most probably benefit from getting a "Requires:" field added # This should most probably benefit from getting a "Requires:" field added
# dynamically by configure. # dynamically by configure.
# #
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr exec_prefix=/usr
libdir=${exec_prefix}/lib libdir=${exec_prefix}/lib

View File

@ -15,7 +15,7 @@
# For indeterminable cases, consult https://opensource.apple.com for the version used. # For indeterminable cases, consult https://opensource.apple.com for the version used.
describe "pkg-config" do describe "pkg-config" do
def pc_version(library) def pc_version(library)
path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.sdk_version}/#{library}.pc" path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.version}/#{library}.pc"
version = File.foreach(path) version = File.foreach(path)
.lazy .lazy
.grep(/^Version:\s*?(.+)$/) { Regexp.last_match(1) } .grep(/^Version:\s*?(.+)$/) { Regexp.last_match(1) }