homebrew-core/Formula/libwmf.rb

25 lines
778 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libwmf < Formula
2009-12-04 16:40:55 +00:00
homepage 'http://wvware.sourceforge.net/libwmf.html'
2013-01-29 05:29:19 +00:00
url 'http://downloads.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz'
sha1 '822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89'
2010-06-19 05:02:16 +00:00
depends_on 'pkg-config' => :build
depends_on 'gd'
2013-02-17 00:49:52 +00:00
depends_on :freetype
depends_on :libpng
def install
2013-02-17 00:49:52 +00:00
dep_prefix = (MacOS.version >= :mountain_lion) ? HOMEBREW_PREFIX : MacOS::X11.prefix
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
2013-02-17 00:49:52 +00:00
"--with-png=#{dep_prefix}",
"--with-freetype=#{dep_prefix}"
system "make"
ENV.j1 # yet another rubbish Makefile
system "make install"
end
end