aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBrett Koonce2014-11-16 22:44:55 -0800
committerMike McQuaid2014-11-17 10:21:14 +0000
commit6b52f6b203b08cfa9a3f8c66bf3c8f38c1abc316 (patch)
tree6a94624b94db8089d8a9a3542a6f060e8065dfd7 /Library
parent372bae2d7c0517211e683132b0c61313779f3987 (diff)
downloadhomebrew-6b52f6b203b08cfa9a3f8c66bf3c8f38c1abc316.tar.bz2
fltk 1.3.3
Closes #34236. Closes #34253.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fltk.rb59
1 files changed, 8 insertions, 51 deletions
diff --git a/Library/Formula/fltk.rb b/Library/Formula/fltk.rb
index 4fc598e5b..7721ff479 100644
--- a/Library/Formula/fltk.rb
+++ b/Library/Formula/fltk.rb
@@ -1,10 +1,9 @@
-require 'formula'
+require "formula"
class Fltk < Formula
- homepage 'http://www.fltk.org/'
- url 'http://fossies.org/linux/misc/fltk-1.3.2-source.tar.gz'
- sha1 '25071d6bb81cc136a449825bfd574094b48f07fb'
- revision 1
+ homepage "http://www.fltk.org/"
+ url "http://fossies.org/linux/misc/fltk-1.3.3-source.tar.gz"
+ sha1 "873aac49b277149e054b9740378e2ca87b0bd435"
bottle do
sha1 "fdd346322d4abd84efcb94947dacc1452a922f7d" => :mavericks
@@ -13,22 +12,16 @@ class Fltk < Formula
option :universal
- depends_on 'libpng'
- depends_on 'jpeg'
+ depends_on "libpng"
+ depends_on "jpeg"
fails_with :clang do
build 318
cause "http://llvm.org/bugs/show_bug.cgi?id=10338"
end
- # First patch is to fix issue with -lpng not found.
+ # Fixes issue with -lpng not found.
# Based on: https://trac.macports.org/browser/trunk/dports/aqua/fltk/files/patch-src-Makefile.diff
- #
- # Second patch is to fix compile issue with clang 3.4.
- # Based on: http://www.fltk.org/strfiles/3046/fltk-clang3.4-1.patch
- #
- # Third patch is to fix compile issue with OSX 10.10 Yosemite
- # Based on: http://www.fltk.org/str.php?L3141
patch :DATA
def install
@@ -45,7 +38,7 @@ 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
+@@ -360,7 +360,7 @@ libfltk_images.1.3.dylib: $(IMGOBJECTS) libfltk.1.3.dylib
-install_name $(libdir)/$@ \
-current_version 1.3.1 \
-compatibility_version 1.3.0 \
@@ -53,39 +46,3 @@ index fcad5f0..5a5a850 100644
+ $(IMGOBJECTS) -L. $(LDLIBS) $(IMAGELIBS) -lfltk $(LDFLAGS)
$(RM) libfltk_images.dylib
$(LN) libfltk_images.1.3.dylib libfltk_images.dylib
-
-diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
-index fdbe320..bd7e741 100644
---- a/fluid/Fl_Type.h
-+++ b/fluid/Fl_Type.h
-@@ -36,7 +36,7 @@ void set_modflag(int mf);
- class Fl_Type {
-
- friend class Widget_Browser;
-- friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0);
-+ friend Fl_Widget *make_type_browser(int,int,int,int,const char *);
- friend class Fl_Window_Type;
- virtual void setlabel(const char *); // virtual part of label(char*)
-
-diff --git a/src/Fl_cocoa.mm.o b/src/Fl_cocoa.mm
-index 1234567..1234567 100644
---- a/src/Fl_cocoa.mm
-+++ b/src/Fl_cocoa.mm
-@@ -1322,7 +1322,7 @@
- if (need_new_nsapp) [NSApplication sharedApplication];
- NSAutoreleasePool *localPool;
- localPool = [[NSAutoreleasePool alloc] init]; // never released
-- [NSApp setDelegate:[[FLDelegate alloc] init]];
-+ [(NSApplication *)NSApp setDelegate:[[FLDelegate alloc] init]];
- if (need_new_nsapp) [NSApp finishLaunching];
-
- // empty the event queue but keep system events for drag&drop of files at launch
-@@ -2231,7 +2231,7 @@
- w->set_visible();
- if ( w->border() || (!w->modal() && !w->tooltip_window()) ) Fl::handle(FL_FOCUS, w);
- Fl::first_window(w);
-- [cw setDelegate:[NSApp delegate]];
-+ [(NSFileManager *)cw setDelegate:[NSApp delegate]];
- if (fl_show_iconic) {
- fl_show_iconic = 0;
- [cw miniaturize:nil];