add necessary .pc files for Leopard

add missing libcrypto.pc
override broken system libcurl.pc

Closes Homebrew/homebrew#16063.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Camillo Lugaresi 2012-11-14 00:59:43 -06:00 committed by Jack Nagel
parent 8cc3479fb7
commit cf7f0f250f
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: OpenSSL-libcrypto
Description: OpenSSL cryptography library
Version: 0.9.7l
Requires:
Libs: -L${libdir} -lcrypto -lz
Cflags: -I${includedir}

View File

@ -0,0 +1,12 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libcurl
URL: http://curl.haxx.se/
Description: Library to transfer files with ftp, http, etc.
Version: 7.16.4
Libs: -L${libdir} -lcurl
Libs.private: -lssl -lcrypto -Wl,-weak-lldap -Wl,-weak-lgssapi_krb5 -lresolv -lz
Cflags: -I${includedir}

View File

@ -68,6 +68,7 @@ module HomebrewEnvExtension
paths << HOMEBREW_PREFIX/'lib/pkgconfig' paths << HOMEBREW_PREFIX/'lib/pkgconfig'
paths << HOMEBREW_PREFIX/'share/pkgconfig' paths << HOMEBREW_PREFIX/'share/pkgconfig'
paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig' if MacOS.version >= :mountain_lion paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig' if MacOS.version >= :mountain_lion
paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfigLeopard' if MacOS.version <= :leopard
paths << '/usr/lib/pkgconfig' paths << '/usr/lib/pkgconfig'
paths.select { |d| File.directory? d }.join(':') paths.select { |d| File.directory? d }.join(':')
end end