require 'formula' class Libxmlsec1 < Formula homepage 'http://www.aleksey.com/xmlsec/' url 'http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.19.tar.gz' sha1 '9f24f84bf6f4a61fc55637f016b56c0f44c048ba' revision 1 bottle do sha1 "dacd6e67c5a65acd187faff789086d1c787925a5" => :mavericks sha1 "e9b9669f1b1364eaea9c320880ef13be944f52db" => :mountain_lion sha1 "63b1cb774d0778366c13815e6971e2e51094a627" => :lion end depends_on 'pkg-config' => :build depends_on 'libxml2' # Version on 10.6/10.7 is too old depends_on 'gnutls' => :recommended depends_on 'libgcrypt' if build.with? 'gnutls' # Add HOMEBREW_PREFIX/lib to dl load path patch :DATA def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-libxml=#{Formula["libxml2"].opt_prefix}", "--disable-crypto-dl", "--disable-apps-crypto-dl" system "make install" end end __END__ diff --git a/src/dl.c b/src/dl.c index 6e8a56a..0e7f06b 100644 --- a/src/dl.c +++ b/src/dl.c @@ -141,6 +141,7 @@ xmlSecCryptoDLLibraryCreate(const xmlChar* name) { } #ifdef XMLSEC_DL_LIBLTDL + lt_dlsetsearchpath("HOMEBREW_PREFIX/lib"); lib->handle = lt_dlopenext((char*)lib->filename); if(lib->handle == NULL) { xmlSecError(XMLSEC_ERRORS_HERE,