2010-09-02 12:53:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Autotrace < Formula
|
2010-09-02 12:53:10 +00:00
|
|
|
homepage 'http://autotrace.sourceforge.net'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz'
|
2012-07-30 21:08:07 +00:00
|
|
|
sha1 '679e4912528030b86f23db5b99e60f8e7df883fd'
|
2014-03-23 05:15:25 +00:00
|
|
|
revision 1
|
2010-09-02 12:53:10 +00:00
|
|
|
|
2014-03-23 05:15:25 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-01 00:10:39 +00:00
|
|
|
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"
|
|
|
|
sha1 "b9b8bd6eca4ca41586ac1bd22cc0c5df2e1bf601"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/77101/trunk/dports/graphics/autotrace/files/patch-autotrace.m4.diff"
|
|
|
|
sha1 "e9969fc23f83ad739f6c7f572b5c6d48eae910f5"
|
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
|
|
|
|
2013-02-01 00:10:39 +00:00
|
|
|
args << "--without-magick" if build.without? 'imagemagick'
|
2010-09-02 12:53:10 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|