Skip to content

Commit

Permalink
add necessary .pc files for Leopard
Browse files Browse the repository at this point in the history
add missing libcrypto.pc
override broken system libcurl.pc

Closes Homebrew#16063.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
camillol authored and jacknagel committed Nov 20, 2012
1 parent f086fc9 commit bfc71f6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/ENV/pkgconfigLeopard/libcrypto.pc
@@ -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}
12 changes: 12 additions & 0 deletions Library/ENV/pkgconfigLeopard/libcurl.pc
@@ -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}
1 change: 1 addition & 0 deletions Library/Homebrew/extend/ENV.rb
Expand Up @@ -68,6 +68,7 @@ def determine_pkg_config_libdir
paths << HOMEBREW_PREFIX/'lib/pkgconfig'
paths << HOMEBREW_PREFIX/'share/pkgconfig'
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.select { |d| File.directory? d }.join(':')
end
Expand Down

0 comments on commit bfc71f6

Please sign in to comment.