homebrew-core/Formula/libwmf.rb
2017-08-07 00:31:23 -07:00

29 lines
1.1 KiB
Ruby

class Libwmf < Formula
desc "Library for converting WMF (Window Metafile Format) files"
homepage "https://wvware.sourceforge.io/libwmf.html"
url "https://downloads.sourceforge.net/project/wvware/libwmf/0.2.8.4/libwmf-0.2.8.4.tar.gz"
sha256 "5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8"
revision 2
bottle do
sha256 "9df806eb6a4a3ca1a2b4b656ff02623175892981fbf136c89d4df5b5853bd20c" => :sierra
sha256 "205bf519460576ecf73e9314ba1171542be58ea22cea81c26424d661734f2d2f" => :el_capitan
sha256 "3554c19cc80eb6435ad630587a38dd094a3f33008c11a93a622f1eb62b2a3e2e" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "gd"
depends_on "freetype"
depends_on "libpng"
depends_on "jpeg"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-png=#{Formula["libpng"].opt_prefix}",
"--with-freetype=#{Formula["freetype"].opt_prefix}"
system "make"
ENV.deparallelize # yet another rubbish Makefile
system "make", "install"
end
end