aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBertrand Marron2011-02-11 21:58:23 +0100
committerDavid Höppner2011-02-12 13:29:31 +0100
commit6ffc13ceba945db459a65e154ae2c77c53468c10 (patch)
treeb975e9407187b63aca829fc3b27ab2e679ef2ae0 /Library
parentd8d4f289455efa873ab205751e6a08b2997c88c7 (diff)
downloadhomebrew-6ffc13ceba945db459a65e154ae2c77c53468c10.tar.bz2
Created formula for feh.
feh is a fast, lightweight image viewer that uses imlib2. Signed-off-by: David Höppner <0xffea@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/feh.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/feh.rb b/Library/Formula/feh.rb
new file mode 100644
index 000000000..12e40fe48
--- /dev/null
+++ b/Library/Formula/feh.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class Feh <Formula
+ url 'http://feh.finalrewind.org/feh-1.11.2.tar.bz2'
+ homepage 'http://freshmeat.net/projects/feh'
+ md5 '3b2354d78a882ce02b429bbe053467a2'
+
+ depends_on 'giblib' => :build
+ depends_on 'libpng' => :build
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "make"
+ system "make", "PREFIX=#{prefix}", "install"
+ end
+end
+
+__END__
+Patch to add X11 library path.
+
+diff --git a/config.mk b/config.mk
+index 6a5b8b3..e301ff1 100644
+--- a/config.mk
++++ b/config.mk
+@@ -31,3 +31,4 @@ CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \
+ -DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\"
+
+ LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}
++LDFLAGS += -L/usr/X11/lib