homebrew-core/Formula/libwmf.rb
2018-09-18 07:59:51 +10:00

31 lines
1.3 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 "3e0e8ecd7072819856393b472017d1e7fc3995a6d8568c6ad65b7d1055efc2e7" => :mojave
sha256 "a96fe2e0aef8cd0f8eecce05b8789c2637f973a6ae358924c451b8f36b3a70ef" => :high_sierra
sha256 "9df806eb6a4a3ca1a2b4b656ff02623175892981fbf136c89d4df5b5853bd20c" => :sierra
sha256 "205bf519460576ecf73e9314ba1171542be58ea22cea81c26424d661734f2d2f" => :el_capitan
sha256 "3554c19cc80eb6435ad630587a38dd094a3f33008c11a93a622f1eb62b2a3e2e" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "gd"
depends_on "jpeg"
depends_on "libpng"
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