2011-03-10 05:11:03 +00:00
|
|
|
class Autotrace < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert bitmap to vector graphics"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://autotrace.sourceforge.net"
|
|
|
|
url "https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz"
|
|
|
|
sha256 "5a1a923c3335dfd7cbcccb2bbd4cc3d68cafe7713686a2f46a1591ed8a92aff6"
|
2014-03-23 05:15:25 +00:00
|
|
|
revision 1
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "imagemagick" => :recommended
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2013-01-05 00:40:55 +00:00
|
|
|
# Issue 16569: Use MacPorts patch to port input-png.c to libpng 1.5.
|
|
|
|
# Fix underquoted m4
|
2014-03-14 15:03:23 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/100575/trunk/dports/graphics/autotrace/files/patch-libpng-1.5.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "9c57a03d907db94956324e9199c7b5431701c51919af6dfcff4793421a1f31fe"
|
2014-03-14 15:03:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/77101/trunk/dports/graphics/autotrace/files/patch-autotrace.m4.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "12d794c99938994f5798779ab268a88aff56af8ab4d509e14383a245ae713720"
|
2012-12-16 06:51:37 +00:00
|
|
|
end
|
|
|
|
|
2010-09-02 12:53:10 +00:00
|
|
|
def install
|
2012-07-30 21:08:07 +00:00
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"]
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
args << "--without-magick" if build.without? "imagemagick"
|
2010-09-02 12:53:10 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-09-02 12:53:10 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|