c4d9c2a99c
a2ps: migrate patches argp-standalone: migrate patch autotrace: migrate patches avidemux: reference secure link bibtex2html: migrate patches bsdmake: migrate patches cctools: migrate patches cdparanoia: migrate patches cdrdao: reference secure links center-im: migrate patch clisp: migrate patch clucene: migrate patches cvs: migrate to sha256 daemon: migrate patch dvdrtools: migrate patches exim: style nits exim: migrate option ghostscript: migrate patch glib: migrate patch gpsd: migrate patch graphviz: migrate patch gtkglext: migrate patches gupnp: migrate patch hping: migrate patches id3lib: migrate patches jigdo: migrate patch jove: migrate patch ld64: migrate patches libcanberra: migrate patch libgcrypt: migrate patch libinfinity: migrate patch liblinear: migrate patch libmms: migrate patch libnet: migrate patch lsdvd: migrate patches
35 lines
1.2 KiB
Ruby
35 lines
1.2 KiB
Ruby
class Autotrace < Formula
|
|
desc "Convert bitmap to vector graphics"
|
|
homepage "http://autotrace.sourceforge.net"
|
|
url "https://downloads.sourceforge.net/project/autotrace/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz"
|
|
sha256 "5a1a923c3335dfd7cbcccb2bbd4cc3d68cafe7713686a2f46a1591ed8a92aff6"
|
|
revision 1
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "imagemagick" => :recommended
|
|
|
|
# Issue 16569: Use MacPorts patch to port input-png.c to libpng 1.5.
|
|
# Fix underquoted m4
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/5b41470/autotrace/patch-libpng-1.5.diff"
|
|
sha256 "9c57a03d907db94956324e9199c7b5431701c51919af6dfcff4793421a1f31fe"
|
|
end
|
|
|
|
patch :p0 do
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/5b41470/autotrace/patch-autotrace.m4.diff"
|
|
sha256 "12d794c99938994f5798779ab268a88aff56af8ab4d509e14383a245ae713720"
|
|
end
|
|
|
|
def install
|
|
args = ["--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
]
|
|
|
|
args << "--without-magick" if build.without? "imagemagick"
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|