From 6ffc13ceba945db459a65e154ae2c77c53468c10 Mon Sep 17 00:00:00 2001 From: Bertrand Marron Date: Fri, 11 Feb 2011 21:58:23 +0100 Subject: Created formula for feh. feh is a fast, lightweight image viewer that uses imlib2. Signed-off-by: David Höppner <0xffea@gmail.com> --- Library/Formula/feh.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Library/Formula/feh.rb (limited to 'Library/Formula') 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 :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 -- cgit v1.2.3