homebrew-core/Formula/xmlstarlet.rb
Max Howell 8570152278 Force xmlstarlet to link to the xml2 dylibs
Static linking makes no sense for us anyway. And OS X doesn't even provide those libs as static variants so we have no choice.
2009-10-19 04:02:48 +01:00

18 lines
679 B
Ruby

require 'formula'
class Xmlstarlet <Formula
url 'http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.0.1/xmlstarlet-1.0.1.tar.gz'
md5 '8deb71834bcdfb4443c258a1f0042fce'
homepage 'http://xmlstar.sourceforge.net/'
def install
# thanks, xmlstarlet but OS X doesn't have the static versions
inreplace 'configure', '${LIBXML_PREFIX}/lib/libxml2.a', '-lxml2'
inreplace 'configure', '${LIBXSLT_PREFIX}/lib/libxslt.a', '-lxslt'
inreplace 'configure', '${LIBXSLT_PREFIX}/lib/libexslt.a', '-lexslt'
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make"
system "make install"
end
end