2011-05-16 17:12:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libharu < Formula
|
|
|
|
homepage 'http://www.libharu.org'
|
|
|
|
url 'http://libharu.org/files/libharu-2.2.1.tar.bz2'
|
|
|
|
md5 '4febd7e677b1c5d54db59a608b84e79f'
|
|
|
|
|
2011-08-25 14:43:28 +00:00
|
|
|
def patches
|
|
|
|
# Fixes compilation against LibPNG 1.5. Can be removed on next release.
|
|
|
|
# Based on a commit in the LibHaru repository which does not apply cleanly
|
|
|
|
# due to a missing CHANGES file:
|
|
|
|
#
|
|
|
|
# https://github.com/tony2001/libharu/commit/e5bf8b0.patch
|
|
|
|
"http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/libharu/files/libharu-2.2.1-libpng-1.5.patch?revision=1.1"
|
|
|
|
end
|
|
|
|
|
2011-05-16 17:12:54 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
# ENV.x11 doesn't get picked up
|
|
|
|
"--with-png=/usr/X11"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|