From 21934eba0c705fbf2d1d7e4c4fa8468857dc73c3 Mon Sep 17 00:00:00 2001 From: Steven Yi Date: Sun, 19 May 2013 17:39:46 +0100 Subject: fltk: add patch for issue with -lpng https://trac.macports.org/browser/trunk/dports/aqua/fltk/files/patch-src-Makefile.diff Signed-off-by: Jack Nagel --- Library/Formula/fltk.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Library') diff --git a/Library/Formula/fltk.rb b/Library/Formula/fltk.rb index bf542bcdb..c62c08cfa 100644 --- a/Library/Formula/fltk.rb +++ b/Library/Formula/fltk.rb @@ -15,6 +15,12 @@ class Fltk < Formula cause "http://llvm.org/bugs/show_bug.cgi?id=10338" end + # The patch is to fix issue with -lpng not found. + # Based on: https://trac.macports.org/browser/trunk/dports/aqua/fltk/files/patch-src-Makefile.diff + def patches + DATA + end + def install ENV.universal_binary if build.universal? system "./configure", "--prefix=#{prefix}", @@ -23,3 +29,18 @@ class Fltk < Formula system "make install" end end + +__END__ +diff --git a/src/Makefile b/src/Makefile +index fcad5f0..5a5a850 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -355,7 +355,7 @@ libfltk_images.1.3.dylib: $(IMGOBJECTS) libfltk.1.3.dylib + -install_name $(libdir)/$@ \ + -current_version 1.3.1 \ + -compatibility_version 1.3.0 \ +- $(IMGOBJECTS) -L. $(LDLIBS) $(IMAGELIBS) -lfltk ++ $(IMGOBJECTS) -L. $(LDLIBS) $(IMAGELIBS) -lfltk $(LDFLAGS) + $(RM) libfltk_images.dylib + $(LN) libfltk_images.1.3.dylib libfltk_images.dylib + -- cgit v1.2.3