Closes Homebrew/homebrew#21662.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
DusK 2013-08-04 23:09:06 -07:00 committed by Jack Nagel
parent e37bddf1e5
commit 9bff8d661f
1 changed files with 3 additions and 25 deletions

View File

@ -1,12 +1,9 @@
require 'formula'
class Gd < Formula
homepage 'https://bitbucket.org/libgd/gd-libgd'
# libgd doesn't have their latest (non-alpha) version.
# When they do release a stable version, use that url.
# Watch this space: http://libgd.bitbucket.org/pages/downloads.html
url 'http://download.osgeo.org/mapserver/libgd/gd-2.0.36RC1.tar.gz'
sha1 '21cf2ec93fd80836fc0cb4741201f7cc5440819a'
homepage 'http://libgd.bitbucket.org/'
url 'https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.gz'
sha1 'a0f3053724403aef9e126f4aa5c662573e5836cd'
head 'https://bitbucket.org/libgd/gd-libgd', :using => :hg
@ -28,25 +25,6 @@ class Gd < Formula
args << "--without-freetype" unless build.with? 'freetype'
system "./configure", *args
system "make install"
(lib+'pkgconfig/gdlib.pc').write pc_file
end
def pc_file; <<-EOS.undent
prefix=#{opt_prefix}
exec_prefix=${prefix}
libdir=/${exec_prefix}/lib
includedir=/${prefix}/include
bindir=/${prefix}/bin
ldflags= -L/${prefix}/lib
Name: gd
Description: A graphics library for quick creation of PNG or JPEG images
Version: #{version}
Requires:
Libs: -L${libdir} -lgd
Libs.private: -ljpeg -lpng12 -lz -lm
Cflags: -I${includedir}
EOS
end
test do