diff options
| author | Steven Yi | 2013-05-19 17:39:46 +0100 |
|---|---|---|
| committer | Jack Nagel | 2013-05-19 13:03:33 -0500 |
| commit | 21934eba0c705fbf2d1d7e4c4fa8468857dc73c3 (patch) | |
| tree | fae47a21cc5653e689e7da30cdf9951306117f12 /Library/Formula | |
| parent | 3280d14dfd6f00e9ff560b7dbb9350805dbab9fa (diff) | |
| download | homebrew-21934eba0c705fbf2d1d7e4c4fa8468857dc73c3.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fltk.rb | 21 |
1 files changed, 21 insertions, 0 deletions
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 + |
