summaryrefslogtreecommitdiff
path: root/x11/fltk
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2004-02-18 05:07:34 +0000
committerben <ben@pkgsrc.org>2004-02-18 05:07:34 +0000
commit602d1edaa8fdccb85390fb5812690aa746e8ef32 (patch)
treeca42737fd35f36a9188bdaa574670fac5318fd39 /x11/fltk
parent1e1f737ea93875ce2369435589b6dfa77b9c20c9 (diff)
downloadpkgsrc-602d1edaa8fdccb85390fb5812690aa746e8ef32.tar.gz
Update from FLTK 1.0.11 to FLTK 1.1.4.
Diffstat (limited to 'x11/fltk')
-rw-r--r--x11/fltk/Makefile5
-rw-r--r--x11/fltk/PLIST126
-rw-r--r--x11/fltk/buildlink2.mk4
-rw-r--r--x11/fltk/distinfo23
-rw-r--r--x11/fltk/patches/patch-aa22
-rw-r--r--x11/fltk/patches/patch-ab96
-rw-r--r--x11/fltk/patches/patch-ac119
-rw-r--r--x11/fltk/patches/patch-ad46
-rw-r--r--x11/fltk/patches/patch-ae37
-rw-r--r--x11/fltk/patches/patch-af62
-rw-r--r--x11/fltk/patches/patch-ag119
-rw-r--r--x11/fltk/patches/patch-ah101
-rw-r--r--x11/fltk/patches/patch-ai22
13 files changed, 424 insertions, 358 deletions
diff --git a/x11/fltk/Makefile b/x11/fltk/Makefile
index f8a1c440af3..df934d7999d 100644
--- a/x11/fltk/Makefile
+++ b/x11/fltk/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.35 2004/02/08 03:00:29 jlam Exp $
+# $NetBSD: Makefile,v 1.36 2004/02/18 05:07:34 ben Exp $
#
-DISTNAME= fltk-1.0.11-source
+DISTNAME= fltk-1.1.4-source
PKGNAME= ${DISTNAME:S/-source//}
-PKGREVISION= 3
VERS= ${DISTNAME:S/fltk-//:S/-source//}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fltk/} \
diff --git a/x11/fltk/PLIST b/x11/fltk/PLIST
index 44d36e156e5..fc626d1d728 100644
--- a/x11/fltk/PLIST
+++ b/x11/fltk/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2002/02/15 10:13:06 skrll Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/02/18 05:07:34 ben Exp $
+bin/fltk-config
bin/fluid
include/FL/Enumerations.H
include/FL/Enumerations.h
@@ -6,6 +7,8 @@ include/FL/Fl.H
include/FL/Fl.h
include/FL/Fl_Adjuster.H
include/FL/Fl_Adjuster.h
+include/FL/Fl_BMP_Image.H
+include/FL/Fl_BMP_Image.h
include/FL/Fl_Bitmap.H
include/FL/Fl_Bitmap.h
include/FL/Fl_Box.H
@@ -18,6 +21,8 @@ include/FL/Fl_Button.H
include/FL/Fl_Button.h
include/FL/Fl_Chart.H
include/FL/Fl_Chart.h
+include/FL/Fl_Check_Browser.H
+include/FL/Fl_Check_Browser.h
include/FL/Fl_Check_Button.H
include/FL/Fl_Check_Button.h
include/FL/Fl_Choice.H
@@ -32,6 +37,16 @@ include/FL/Fl_Dial.H
include/FL/Fl_Dial.h
include/FL/Fl_Double_Window.H
include/FL/Fl_Double_Window.h
+include/FL/Fl_Export.H
+include/FL/Fl_Export.h
+include/FL/Fl_File_Browser.H
+include/FL/Fl_File_Browser.h
+include/FL/Fl_File_Chooser.H
+include/FL/Fl_File_Chooser.h
+include/FL/Fl_File_Icon.H
+include/FL/Fl_File_Icon.h
+include/FL/Fl_File_Input.H
+include/FL/Fl_File_Input.h
include/FL/Fl_Fill_Dial.H
include/FL/Fl_Fill_Dial.h
include/FL/Fl_Fill_Slider.H
@@ -44,10 +59,16 @@ include/FL/Fl_FormsPixmap.H
include/FL/Fl_FormsPixmap.h
include/FL/Fl_Free.H
include/FL/Fl_Free.h
+include/FL/Fl_GIF_Image.H
+include/FL/Fl_GIF_Image.h
include/FL/Fl_Gl_Window.H
include/FL/Fl_Gl_Window.h
include/FL/Fl_Group.H
include/FL/Fl_Group.h
+include/FL/Fl_Help_Dialog.H
+include/FL/Fl_Help_Dialog.h
+include/FL/Fl_Help_View.H
+include/FL/Fl_Help_View.h
include/FL/Fl_Hold_Browser.H
include/FL/Fl_Hold_Browser.h
include/FL/Fl_Hor_Fill_Slider.H
@@ -66,6 +87,8 @@ include/FL/Fl_Input_.H
include/FL/Fl_Input_.h
include/FL/Fl_Int_Input.H
include/FL/Fl_Int_Input.h
+include/FL/Fl_JPEG_Image.H
+include/FL/Fl_JPEG_Image.h
include/FL/Fl_Light_Button.H
include/FL/Fl_Light_Button.h
include/FL/Fl_Line_Dial.H
@@ -98,12 +121,20 @@ include/FL/Fl_Output.H
include/FL/Fl_Output.h
include/FL/Fl_Overlay_Window.H
include/FL/Fl_Overlay_Window.h
+include/FL/Fl_PNG_Image.H
+include/FL/Fl_PNG_Image.h
+include/FL/Fl_PNM_Image.H
+include/FL/Fl_PNM_Image.h
include/FL/Fl_Pack.H
include/FL/Fl_Pack.h
include/FL/Fl_Pixmap.H
include/FL/Fl_Pixmap.h
include/FL/Fl_Positioner.H
include/FL/Fl_Positioner.h
+include/FL/Fl_Preferences.H
+include/FL/Fl_Preferences.h
+include/FL/Fl_Progress.H
+include/FL/Fl_Progress.h
include/FL/Fl_Radio_Button.H
include/FL/Fl_Radio_Button.h
include/FL/Fl_Radio_Light_Button.H
@@ -128,16 +159,28 @@ include/FL/Fl_Secret_Input.H
include/FL/Fl_Secret_Input.h
include/FL/Fl_Select_Browser.H
include/FL/Fl_Select_Browser.h
+include/FL/Fl_Shared_Image.H
+include/FL/Fl_Shared_Image.h
include/FL/Fl_Simple_Counter.H
include/FL/Fl_Simple_Counter.h
include/FL/Fl_Single_Window.H
include/FL/Fl_Single_Window.h
include/FL/Fl_Slider.H
include/FL/Fl_Slider.h
+include/FL/Fl_Sys_Menu_Bar.H
+include/FL/Fl_Sys_Menu_Bar.h
include/FL/Fl_Tabs.H
include/FL/Fl_Tabs.h
+include/FL/Fl_Text_Buffer.H
+include/FL/Fl_Text_Buffer.h
+include/FL/Fl_Text_Display.H
+include/FL/Fl_Text_Display.h
+include/FL/Fl_Text_Editor.H
+include/FL/Fl_Text_Editor.h
include/FL/Fl_Tile.H
include/FL/Fl_Tile.h
+include/FL/Fl_Tiled_Image.H
+include/FL/Fl_Tiled_Image.h
include/FL/Fl_Timer.H
include/FL/Fl_Timer.h
include/FL/Fl_Toggle_Button.H
@@ -146,6 +189,8 @@ include/FL/Fl_Toggle_Light_Button.H
include/FL/Fl_Toggle_Light_Button.h
include/FL/Fl_Toggle_Round_Button.H
include/FL/Fl_Toggle_Round_Button.h
+include/FL/Fl_Tooltip.H
+include/FL/Fl_Tooltip.h
include/FL/Fl_Valuator.H
include/FL/Fl_Valuator.h
include/FL/Fl_Value_Input.H
@@ -158,6 +203,12 @@ include/FL/Fl_Widget.H
include/FL/Fl_Widget.h
include/FL/Fl_Window.H
include/FL/Fl_Window.h
+include/FL/Fl_Wizard.H
+include/FL/Fl_Wizard.h
+include/FL/Fl_XBM_Image.H
+include/FL/Fl_XBM_Image.h
+include/FL/Fl_XPM_Image.H
+include/FL/Fl_XPM_Image.h
include/FL/dirent.h
include/FL/filename.H
include/FL/filename.h
@@ -181,30 +232,52 @@ include/FL/gl_draw.H
include/FL/gl_draw.h
include/FL/glut.H
include/FL/glut.h
+include/FL/mac.H
+include/FL/mac.h
+include/FL/mac.r
include/FL/math.h
-include/FL/menubar.h
include/FL/win32.H
include/FL/win32.h
include/FL/x.H
include/FL/x.h
-@exec ln -sf FL %D/include/Fl
-@unexec ${RM} -f %D/include/Fl
+include/Fl
lib/libfltk.a
lib/libfltk.la
lib/libfltk.so
lib/libfltk.so.1
-lib/libfltk.so.1.5
+lib/libfltk.so.1.6
+lib/libfltk_forms.a
+lib/libfltk_forms.la
+lib/libfltk_forms.so
+lib/libfltk_forms.so.1
+lib/libfltk_forms.so.1.6
+lib/libfltk_gl.a
+lib/libfltk_gl.la
+lib/libfltk_gl.so
+lib/libfltk_gl.so.1
+lib/libfltk_gl.so.1.6
+lib/libfltk_images.a
+lib/libfltk_images.la
+lib/libfltk_images.so
+lib/libfltk_images.so.1
+lib/libfltk_images.so.1.6
+man/cat1/fltk-config.0
man/cat1/fluid.0
man/cat3/fltk.0
+man/man1/fltk-config.1
man/man1/fluid.1
man/man3/fltk.3
share/doc/html/fltk/FL.gif
+share/doc/html/fltk/Fl.html
share/doc/html/fltk/Fl_Adjuster.html
+share/doc/html/fltk/Fl_BMP_Image.html
+share/doc/html/fltk/Fl_Bitmap.html
share/doc/html/fltk/Fl_Box.html
share/doc/html/fltk/Fl_Browser.html
share/doc/html/fltk/Fl_Browser_.html
share/doc/html/fltk/Fl_Button.html
share/doc/html/fltk/Fl_Chart.html
+share/doc/html/fltk/Fl_Check_Browser.html
share/doc/html/fltk/Fl_Check_Button.gif
share/doc/html/fltk/Fl_Check_Button.html
share/doc/html/fltk/Fl_Choice.html
@@ -214,14 +287,26 @@ share/doc/html/fltk/Fl_Counter.html
share/doc/html/fltk/Fl_Dial.html
share/doc/html/fltk/Fl_Double_Window.html
share/doc/html/fltk/Fl_End.html
+share/doc/html/fltk/Fl_File_Browser.html
+share/doc/html/fltk/Fl_File_Chooser.html
+share/doc/html/fltk/Fl_File_Chooser.jpg
+share/doc/html/fltk/Fl_File_Icon.html
+share/doc/html/fltk/Fl_File_Input.gif
+share/doc/html/fltk/Fl_File_Input.html
share/doc/html/fltk/Fl_Float_Input.html
share/doc/html/fltk/Fl_Free.html
+share/doc/html/fltk/Fl_GIF_Image.html
share/doc/html/fltk/Fl_Gl_Window.html
share/doc/html/fltk/Fl_Group.html
+share/doc/html/fltk/Fl_Help_Dialog.gif
+share/doc/html/fltk/Fl_Help_Dialog.html
+share/doc/html/fltk/Fl_Help_View.html
share/doc/html/fltk/Fl_Hold_Browser.html
+share/doc/html/fltk/Fl_Image.html
share/doc/html/fltk/Fl_Input.html
share/doc/html/fltk/Fl_Input_.html
share/doc/html/fltk/Fl_Int_Input.html
+share/doc/html/fltk/Fl_JPEG_Image.html
share/doc/html/fltk/Fl_Light_Button.gif
share/doc/html/fltk/Fl_Light_Button.html
share/doc/html/fltk/Fl_Menu_.html
@@ -234,8 +319,14 @@ share/doc/html/fltk/Fl_Multiline_Input.html
share/doc/html/fltk/Fl_Multiline_Output.html
share/doc/html/fltk/Fl_Output.html
share/doc/html/fltk/Fl_Overlay_Window.html
+share/doc/html/fltk/Fl_PNG_Image.html
+share/doc/html/fltk/Fl_PNM_Image.html
share/doc/html/fltk/Fl_Pack.html
+share/doc/html/fltk/Fl_Pixmap.html
share/doc/html/fltk/Fl_Positioner.html
+share/doc/html/fltk/Fl_Preferences.html
+share/doc/html/fltk/Fl_Progress.html
+share/doc/html/fltk/Fl_RGB_Image.html
share/doc/html/fltk/Fl_Repeat_Button.html
share/doc/html/fltk/Fl_Return_Button.gif
share/doc/html/fltk/Fl_Return_Button.html
@@ -248,12 +339,18 @@ share/doc/html/fltk/Fl_Scroll.html
share/doc/html/fltk/Fl_Scrollbar.html
share/doc/html/fltk/Fl_Secret_Input.html
share/doc/html/fltk/Fl_Select_Browser.html
+share/doc/html/fltk/Fl_Shared_Image.html
share/doc/html/fltk/Fl_Single_Window.html
share/doc/html/fltk/Fl_Slider.html
share/doc/html/fltk/Fl_Tabs.html
+share/doc/html/fltk/Fl_Text_Buffer.html
+share/doc/html/fltk/Fl_Text_Display.html
+share/doc/html/fltk/Fl_Text_Editor.html
share/doc/html/fltk/Fl_Tile.gif
share/doc/html/fltk/Fl_Tile.html
+share/doc/html/fltk/Fl_Tiled_Image.html
share/doc/html/fltk/Fl_Timer.html
+share/doc/html/fltk/Fl_Tooltip.html
share/doc/html/fltk/Fl_Valuator.html
share/doc/html/fltk/Fl_Value_Input.gif
share/doc/html/fltk/Fl_Value_Input.html
@@ -262,12 +359,12 @@ share/doc/html/fltk/Fl_Value_Output.html
share/doc/html/fltk/Fl_Value_Slider.html
share/doc/html/fltk/Fl_Widget.html
share/doc/html/fltk/Fl_Window.html
+share/doc/html/fltk/Fl_Wizard.html
+share/doc/html/fltk/Fl_XBM_Image.html
+share/doc/html/fltk/Fl_XPM_Image.html
share/doc/html/fltk/adjuster1.gif
-share/doc/html/fltk/ask.C.gif
share/doc/html/fltk/basics.html
-share/doc/html/fltk/bglogo.gif
share/doc/html/fltk/boxtypes.gif
-share/doc/html/fltk/button.C.gif
share/doc/html/fltk/buttons.gif
share/doc/html/fltk/charts.gif
share/doc/html/fltk/choice.gif
@@ -282,7 +379,6 @@ share/doc/html/fltk/editor.gif
share/doc/html/fltk/editor.html
share/doc/html/fltk/enumerations.html
share/doc/html/fltk/events.html
-share/doc/html/fltk/filechooser.gif
share/doc/html/fltk/fl_alert.gif
share/doc/html/fltk/fl_ask.gif
share/doc/html/fltk/fl_choice.gif
@@ -294,15 +390,17 @@ share/doc/html/fltk/fl_show_colormap.gif
share/doc/html/fltk/fluid-catgets.gif
share/doc/html/fltk/fluid-gettext.gif
share/doc/html/fltk/fluid-org.gif
-share/doc/html/fltk/fluid.gif
share/doc/html/fltk/fluid.html
share/doc/html/fltk/fluid1.gif
share/doc/html/fltk/fluid2.gif
-share/doc/html/fltk/fluid3.gif
+share/doc/html/fltk/fluid3-cxx.gif
+share/doc/html/fltk/fluid3-gui.gif
+share/doc/html/fltk/fluid3-style.gif
share/doc/html/fltk/fluid4.gif
-share/doc/html/fltk/fluid_main.gif
share/doc/html/fltk/fluid_prefs.gif
-share/doc/html/fltk/fluid_widget.gif
+share/doc/html/fltk/fluid_widget_cxx.gif
+share/doc/html/fltk/fluid_widget_gui.gif
+share/doc/html/fltk/fluid_widget_style.gif
share/doc/html/fltk/forms.html
share/doc/html/fltk/functions.html
share/doc/html/fltk/glut.html
@@ -313,6 +411,7 @@ share/doc/html/fltk/license.html
share/doc/html/fltk/menu.gif
share/doc/html/fltk/menu_button.gif
share/doc/html/fltk/menubar.gif
+share/doc/html/fltk/migration.html
share/doc/html/fltk/opengl.html
share/doc/html/fltk/osissues.html
share/doc/html/fltk/positioner.gif
@@ -321,7 +420,6 @@ share/doc/html/fltk/resizebox1.gif
share/doc/html/fltk/resizebox2.gif
share/doc/html/fltk/round_clock.gif
share/doc/html/fltk/scrollbar.gif
-share/doc/html/fltk/shape.C.gif
share/doc/html/fltk/slider.gif
share/doc/html/fltk/subclassing.html
share/doc/html/fltk/symbols.gif
diff --git a/x11/fltk/buildlink2.mk b/x11/fltk/buildlink2.mk
index dd3971db3f2..f6d728d2dbb 100644
--- a/x11/fltk/buildlink2.mk
+++ b/x11/fltk/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.4 2003/03/12 22:07:29 jschauma Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2004/02/18 05:07:34 ben Exp $
.if !defined(FLTK_BUILDLINK2_MK)
FLTK_BUILDLINK2_MK= # defined
@@ -11,7 +11,7 @@ EVAL_PREFIX+= BUILDLINK_PREFIX.fltk=fltk
BUILDLINK_PREFIX.fltk_DEFAULT= ${X11PREFIX}
BUILDLINK_FILES.fltk= include/FL/*
BUILDLINK_FILES.fltk+= include/Fl/*
-BUILDLINK_FILES.fltk+= lib/libfltk.*
+BUILDLINK_FILES.fltk+= lib/libfltk*
.include "../../graphics/MesaLib/buildlink2.mk"
.include "../../graphics/glu/buildlink2.mk"
diff --git a/x11/fltk/distinfo b/x11/fltk/distinfo
index 28fddb1215a..2f559e929c0 100644
--- a/x11/fltk/distinfo
+++ b/x11/fltk/distinfo
@@ -1,12 +1,13 @@
-$NetBSD: distinfo,v 1.6 2003/12/01 16:35:51 ben Exp $
+$NetBSD: distinfo,v 1.7 2004/02/18 05:07:34 ben Exp $
-SHA1 (fltk-1.0.11-source.tar.bz2) = daf8593ca6d794ac779cf8e0ec43dd5d275a39ad
-Size (fltk-1.0.11-source.tar.bz2) = 999099 bytes
-SHA1 (patch-aa) = f7da8bfeaf5918a60d42ed87da252ff6cbd0cec0
-SHA1 (patch-ab) = 84510f2453d627fa5add785443e8ad0f5bfc794c
-SHA1 (patch-ac) = bc7139dfd49f162d2b7a2ff3d0b088b0cc619717
-SHA1 (patch-ad) = 3d20ba261a675f508a270ef7864626a74ba1a357
-SHA1 (patch-ae) = 4c020ba0ffd321a1d9c0b083698c53dd3e354e0a
-SHA1 (patch-af) = f44d69eda82621e14c395ededfaa64ed3b1ac972
-SHA1 (patch-ag) = c03b860c9506c95f60947a0c08bec677f40d5cc6
-SHA1 (patch-ah) = 0514008f3c66fe8e5533ff01d12d0063b885fc25
+SHA1 (fltk-1.1.4-source.tar.bz2) = e42839662bfbbdb8d61eaa2798c8687a629ddc02
+Size (fltk-1.1.4-source.tar.bz2) = 1305766 bytes
+SHA1 (patch-aa) = d75bb3c9772cb7b5920d2a32513cdc0f40694d8f
+SHA1 (patch-ab) = 04323aa95488755351e67c07273063aac18d465b
+SHA1 (patch-ac) = cf4b6038b6b72b11f2d3e67ac6c8c7e7e3407eb3
+SHA1 (patch-ad) = 46f5aff720c4172c24afc3342ea6d1273046d7ff
+SHA1 (patch-ae) = e1449b1b69379453c84287efe4c27ccafe1ed78a
+SHA1 (patch-af) = a9577b27ffc3b4c477a473def92adac025a43f45
+SHA1 (patch-ag) = d4a4042897c94d3c83cd0aa9245f074ce9366c1a
+SHA1 (patch-ah) = d1ea67737633097475dc7634484cbfb2c9df098d
+SHA1 (patch-ai) = 3bc18b682fb341e8e465bb8d5be5930776500abc
diff --git a/x11/fltk/patches/patch-aa b/x11/fltk/patches/patch-aa
index 82d599b7bfc..6c88a7fff95 100644
--- a/x11/fltk/patches/patch-aa
+++ b/x11/fltk/patches/patch-aa
@@ -1,21 +1,20 @@
-$NetBSD: patch-aa,v 1.4 2001/05/26 06:37:46 jlam Exp $
+$NetBSD: patch-aa,v 1.5 2004/02/18 05:07:34 ben Exp $
---- Makefile.orig Wed Mar 14 12:20:01 2001
+--- Makefile.orig 2003-06-14 22:39:12.000000000 -0700
+++ Makefile
@@ -25,7 +25,7 @@
- SHELL=/bin/sh
+ include makeinclude
--DIRS = src fluid test
-+DIRS = src fluid
+-DIRS = src fluid test documentation
++DIRS = src fluid documentation
all: makeinclude
- @for dir in $(DIRS); do\
-@@ -35,6 +35,14 @@
- fi;\
+ for dir in $(DIRS); do\
+@@ -33,6 +33,14 @@ all: makeinclude
(cd $$dir; $(MAKE) $(MFLAGS)) || break;\
done
-+
+
+test: makeinclude
+ dir=test;\
+ echo "=== making $$dir ===";\
@@ -23,6 +22,7 @@ $NetBSD: patch-aa,v 1.4 2001/05/26 06:37:46 jlam Exp $
+ touch $$dir/makedepend;\
+ fi;\
+ (cd $$dir; $(MAKE) $(MFLAGS)) || break;\
-
++
install: makeinclude
- @for dir in $(DIRS); do\
+ -mkdir -p $(bindir)
+ $(RM) $(bindir)/fltk-config
diff --git a/x11/fltk/patches/patch-ab b/x11/fltk/patches/patch-ab
index 5e8a22b3377..da488207ec6 100644
--- a/x11/fltk/patches/patch-ab
+++ b/x11/fltk/patches/patch-ab
@@ -1,24 +1,19 @@
-$NetBSD: patch-ab,v 1.7 2003/12/01 16:35:51 ben Exp $
+$NetBSD: patch-ab,v 1.8 2004/02/18 05:07:34 ben Exp $
---- configure.in.orig 2001-05-07 07:34:22.000000000 -0700
+--- configure.in.orig 2003-08-05 15:40:45.000000000 -0700
+++ configure.in
-@@ -30,6 +30,9 @@ AC_INIT(src/Fl.cxx)
- AC_PROG_RANLIB
-
- LIBNAME="libfltk.a"
-+LIBRARY="../lib/\$(LIBNAME)"
-+LIBFLTK="../lib/\$(LIBNAME)"
-+LINKFLTK="-L../lib -lfltk"
- if test "$RANLIB" != ":"; then
- LIBCOMMAND="ar cr"
- else
-@@ -58,8 +61,17 @@ AC_ARG_ENABLE(debug, [ --enable-debug
- DEBUGFLAG="-g "
- fi])
+@@ -92,6 +92,7 @@ AC_SUBST(GLDEMOS)
+ AC_SUBST(GLLIBNAME)
+ AC_SUBST(IMGLIBNAME)
+ AC_SUBST(LIBNAME)
++AC_SUBST(LIBTOOL)
+ AC_SUBST(LINKFLTK)
+ AC_SUBST(LINKFLTKGL)
+ AC_SUBST(LINKFLTKIMG)
+@@ -107,6 +108,15 @@ fi
AC_ARG_ENABLE(gl, [ --enable-gl turn on OpenGL support [default=yes]])
--AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]],[
--if eval "test x$enable_shared = xyes"; then
-+AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]])
+
+ AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]])
+AC_ARG_ENABLE(libtool, [ --enable-libtool=LIBTOOL_PATH
+ turn on building with libtool [default=no]],[
+if eval "test x$enable_libtool != xno"; then
@@ -28,44 +23,37 @@ $NetBSD: patch-ab,v 1.7 2003/12/01 16:35:51 ben Exp $
+ LIBTOOL=""
+fi])
+
-+if test "$enable_shared" = "yes"; then
- PICFLAG=1
- case $uname in
- SunOS* | UNIX_S*)
-@@ -95,7 +107,14 @@ if eval "test x$enable_shared = xyes"; t
- DSOCOMMAND="\$(CXX) -Wl,-soname,libfltk.so.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
- ;;
- esac
--fi])
-+fi
-+
+ if test x$enable_shared = xyes; then
+ PICFLAG=1
+ SHAREDSUFFIX=""
+@@ -206,6 +216,21 @@ else
+ LINKSHARED="-L../lib -lfltk_images -lfltk_forms -lfltk"
+ fi
+
+if test "x$LIBTOOL" != "x"; then
-+ LIBNAME="libfltk.la"
-+ LIBRARY="\$(LIBNAME)"
-+ LIBFLTK="../src/\$(LIBNAME)"
-+ LINKFLTK="../src/\$(LIBNAME)"
++ LINKFLTK="../src/libfltk.la"
++ if test "x$LINKFLTKGL" != "x"; then
++ LINKFLTKGL="../src/libfltk_gl.la"
++ fi
++ if test "x$LINKFLTKIMG" != "x"; then
++ LINKFLTKIMG="../src/libfltk_images.la"
++ fi
++ LINKSHARED="-lfltk_images -lfltk_forms -lfltk"
++ DSONAME="libfltk.la"
++ FLDSONAME="libfltk_forms.la"
++ GLDSONAME="libfltk_gl.la"
++ IMGDSONAME="libfltk_images.la"
+fi
++
+ AC_SUBST(DSOCOMMAND)
+ AC_SUBST(DSOLINK)
+ AC_SUBST(DSONAME)
+@@ -668,7 +693,7 @@ if test -n "$GCC"; then
+ ;;
+ esac
- AC_PROG_CC
- AC_PROG_CXX
-@@ -262,7 +281,7 @@ MAKEDEPEND="\$(CXX) -M"
- if test -n "$GXX"; then
- # Use gcc instead of c++ or g++, since we don't need the C++
- # library to depend on...
- CXX="$CC"
+# CXX="$CC"
- CFLAGS="-Wall $CFLAGS"
- CXXFLAGS="-Wall $CXXFLAGS"
- if test -z "$DEBUGFLAG"; then
-@@ -375,7 +394,11 @@ CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
- AC_SUBST(DSONAME)
- AC_SUBST(DSOCOMMAND)
- AC_SUBST(LIBNAME)
-+AC_SUBST(LIBRARY)
-+AC_SUBST(LIBFLTK)
-+AC_SUBST(LINKFLTK)
- AC_SUBST(LIBCOMMAND)
-+AC_SUBST(LIBTOOL)
- AC_SUBST(MAKEDEPEND)
- AC_CONFIG_HEADER(config.h:configh.in)
- AC_OUTPUT(makeinclude)
+
+ # Show all standard warnings + unused variables when compiling...
+ OPTIM="-Wall -Wunused $OPTIM"
diff --git a/x11/fltk/patches/patch-ac b/x11/fltk/patches/patch-ac
index 366f63df832..6936b7e736b 100644
--- a/x11/fltk/patches/patch-ac
+++ b/x11/fltk/patches/patch-ac
@@ -1,40 +1,27 @@
-$NetBSD: patch-ac,v 1.5 2003/12/01 16:35:51 ben Exp $
+$NetBSD: patch-ac,v 1.6 2004/02/18 05:07:34 ben Exp $
---- configure.orig 2001-05-07 07:53:14.000000000 -0700
+--- configure.orig 2003-09-08 12:18:58.000000000 -0700
+++ configure
-@@ -18,6 +18,9 @@ ac_help="$ac_help
- ac_help="$ac_help
- --enable-shared turn on shared libraries [default=no]"
- ac_help="$ac_help
+@@ -838,6 +838,8 @@ Optional Features:
+ --enable-debug turn on debugging default=no
+ --enable-gl turn on OpenGL support default=yes
+ --enable-shared turn on shared libraries default=no
+ --enable-libtool=LIBTOOL_PATH
-+ turn on building with libtool [default=no]"
-+ac_help="$ac_help
- --with-x use the X Window System"
-
- # Initialize some variables set by options.
-@@ -562,6 +565,9 @@ fi
-
-
- LIBNAME="libfltk.a"
-+LIBRARY="../lib/\$(LIBNAME)"
-+LIBFLTK="../lib/\$(LIBNAME)"
-+LINKFLTK="-L../lib -lfltk"
- if test "$RANLIB" != ":"; then
- LIBCOMMAND="ar cr"
- else
-@@ -600,8 +606,23 @@ fi
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
++ turn on building with libtool [default=no]
+ --enable-threads enable multi-threading support
+ --enable-xft turn on Xft support default=no
+ --enable-xdbe turn on Xdbe support default=no
+@@ -1294,7 +1296,22 @@ if test "${enable_shared+set}" = set; th
enableval="$enable_shared"
-+ :
-+fi
+
+ fi;
+-if test x$enable_shared = xyes; then
+
+# Check whether --enable-libtool or --disable-libtool was given.
+if test "${enable_libtool+set}" = set; then
+ enableval="$enable_libtool"
-
--if eval "test x$enable_shared = xyes"; then
-+if eval "test x$enable_libtool != xno"; then
++
++if test x$enable_libtool != xno; then
+ LIBTOOL="$enable_libtool"
+ enable_shared=no
+else
@@ -44,53 +31,45 @@ $NetBSD: patch-ac,v 1.5 2003/12/01 16:35:51 ben Exp $
+
+
+if test "$enable_shared" = "yes"; then
- PICFLAG=1
- case $uname in
- SunOS* | UNIX_S*)
-@@ -638,8 +659,13 @@ if eval "test x$enable_shared = xyes"; t
- ;;
- esac
++
+ PICFLAG=1
+ SHAREDSUFFIX=""
+ FLUID="fluid-shared"
+@@ -1395,6 +1412,20 @@ else
+ LINKSHARED="-L../lib -lfltk_images -lfltk_forms -lfltk"
fi
--fi
+if test "x$LIBTOOL" != "x"; then
-+ LIBNAME="libfltk.la"
-+ LIBRARY="\$(LIBNAME)"
-+ LIBFLTK="../src/\$(LIBNAME)"
-+ LINKFLTK="../src/\$(LIBNAME)"
++ LINKFLTK="../src/libfltk.la"
++ if test "x$LINKFLTKGL" != "x"; then
++ LINKFLTKGL="../src/libfltk_gl.la"
++ fi
++ if test "x$LINKFLTKIMG" != "x"; then
++ LINKFLTKIMG="../src/libfltk_images.la"
++ fi
++ LINKSHARED="-lfltk_images -lfltk_forms -lfltk"
++ DSONAME="libfltk.la"
++ FLDSONAME="libfltk_forms.la"
++ GLDSONAME="libfltk_gl.la"
++ IMGDSONAME="libfltk_images.la"
+fi
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
-@@ -3072,7 +3098,7 @@ MAKEDEPEND="\$(CXX) -M"
- if test -n "$GXX"; then
- # Use gcc instead of c++ or g++, since we don't need the C++
- # library to depend on...
-- CXX="$CC"
-+# CXX="$CC"
- CFLAGS="-Wall $CFLAGS"
- CXXFLAGS="-Wall $CXXFLAGS"
- if test -z "$DEBUGFLAG"; then
-@@ -3220,6 +3246,10 @@ CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
+@@ -8919,7 +8950,7 @@ echo "${ECHO_T}yes" >&6
+ ;;
+ esac
-+
-+
-+
-+
- trap '' 1 2 15
- cat > confcache <<\EOF
- # This file is a shell script that caches the results of configure
-@@ -3369,7 +3399,11 @@ s%@CAT3EXT@%$CAT3EXT%g
- s%@DSONAME@%$DSONAME%g
- s%@DSOCOMMAND@%$DSOCOMMAND%g
- s%@LIBNAME@%$LIBNAME%g
-+s%@LIBRARY@%$LIBRARY%g
-+s%@LIBFLTK@%$LIBFLTK%g
-+s%@LINKFLTK@%$LINKFLTK%g
- s%@LIBCOMMAND@%$LIBCOMMAND%g
-+s%@LIBTOOL@%$LIBTOOL%g
- s%@MAKEDEPEND@%$MAKEDEPEND%g
+- CXX="$CC"
++# CXX="$CC"
- CEOF
+ # Show all standard warnings + unused variables when compiling...
+ OPTIM="-Wall -Wunused $OPTIM"
+@@ -9753,6 +9784,7 @@ s,@GLDEMOS@,$GLDEMOS,;t t
+ s,@GLLIBNAME@,$GLLIBNAME,;t t
+ s,@IMGLIBNAME@,$IMGLIBNAME,;t t
+ s,@LIBNAME@,$LIBNAME,;t t
++s,@LIBTOOL@,$LIBTOOL,;t t
+ s,@LINKFLTK@,$LINKFLTK,;t t
+ s,@LINKFLTKGL@,$LINKFLTKGL,;t t
+ s,@LINKFLTKIMG@,$LINKFLTKIMG,;t t
diff --git a/x11/fltk/patches/patch-ad b/x11/fltk/patches/patch-ad
index ceec98ca0b4..42654805c5c 100644
--- a/x11/fltk/patches/patch-ad
+++ b/x11/fltk/patches/patch-ad
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.4 2001/05/26 06:37:46 jlam Exp $
+$NetBSD: patch-ad,v 1.5 2004/02/18 05:07:34 ben Exp $
---- documentation/Makefile.orig Mon Feb 12 10:12:14 2001
+--- documentation/Makefile.orig 2003-09-08 10:11:44.000000000 -0700
+++ documentation/Makefile
-@@ -129,23 +129,23 @@
+@@ -222,29 +222,29 @@ depend:
# htmldir = $(datadir)/doc/html/en/fltk
# Possibly the "en/" can be removed, it is not clear.
# KDE uses "HTML" instead of "html", which is correct?
@@ -10,25 +10,33 @@ $NetBSD: patch-ad,v 1.4 2001/05/26 06:37:46 jlam Exp $
+docdir = $(datadir)/doc/html/fltk
install: $(MANPAGES)
- -mkdir -p $(docdir)
-- cp $(HTMLFILES) *.gif *.jpg index.html $(docdir)
+ echo "Installing documentation files in $(docdir)..."
+ -$(MKDIR) $(docdir)
+- $(CP) $(HTMLFILES) *.gif *.jpg index.html $(docdir)
+ $(INSTALL_DATA) $(HTMLFILES) *.gif *.jpg index.html $(docdir)
- chmod 644 $(docdir)/*
- -mkdir -p $(mandir)/cat1
-- cp fluid.$(CAT1EXT) $(mandir)/cat1
+ $(CHMOD) 644 $(docdir)/*
+ echo "Installing man pages in $(mandir)..."
+ -$(MKDIR) $(mandir)/cat1
+- $(CP) fluid.$(CAT1EXT) $(mandir)/cat1
+ $(INSTALL_MAN) fluid.$(CAT1EXT) $(mandir)/cat1
- chmod 644 $(mandir)/cat1/fluid.$(CAT1EXT)
- -mkdir -p $(mandir)/cat3
-- cp fltk.$(CAT3EXT) $(mandir)/cat3
+ $(CHMOD) 644 $(mandir)/cat1/fluid.$(CAT1EXT)
+- $(CP) fltk-config.$(CAT1EXT) $(mandir)/cat1
++ $(INSTALL_MAN) fltk-config.$(CAT1EXT) $(mandir)/cat1
+ $(CHMOD) 644 $(mandir)/cat1/fltk-config.$(CAT1EXT)
+ -$(MKDIR) $(mandir)/cat3
+- $(CP) fltk.$(CAT3EXT) $(mandir)/cat3
+ $(INSTALL_MAN) fltk.$(CAT3EXT) $(mandir)/cat3
- chmod 644 $(mandir)/cat3/fltk.$(CAT3EXT)
- -mkdir -p $(mandir)/man1
-- cp fluid.man $(mandir)/man1/fluid.1
+ $(CHMOD) 644 $(mandir)/cat3/fltk.$(CAT3EXT)
+ -$(MKDIR) $(mandir)/man1
+- $(CP) fluid.man $(mandir)/man1/fluid.1
+ $(INSTALL_MAN) fluid.man $(mandir)/man1/fluid.1
- chmod 644 $(mandir)/man1/fluid.1
- -mkdir -p $(mandir)/man3
-- cp fltk.man $(mandir)/man3/fltk.3
+ $(CHMOD) 644 $(mandir)/man1/fluid.1
+- $(CP) fltk-config.man $(mandir)/man1/fltk-config.1
++ $(INSTALL_MAN) fltk-config.man $(mandir)/man1/fltk-config.1
+ $(CHMOD) 644 $(mandir)/man1/fltk-config.1
+ -$(MKDIR) $(mandir)/man3
+- $(CP) fltk.man $(mandir)/man3/fltk.3
+ $(INSTALL_MAN) fltk.man $(mandir)/man3/fltk.3
- chmod 644 $(mandir)/man3/fltk.3
+ $(CHMOD) 644 $(mandir)/man3/fltk.3
+
- # Base html files are now the readable ones, so this target is not make by
diff --git a/x11/fltk/patches/patch-ae b/x11/fltk/patches/patch-ae
index 4697820eebb..30a1bd33f80 100644
--- a/x11/fltk/patches/patch-ae
+++ b/x11/fltk/patches/patch-ae
@@ -1,28 +1,13 @@
-$NetBSD: patch-ae,v 1.2 2001/05/26 06:37:46 jlam Exp $
+$NetBSD: patch-ae,v 1.3 2004/02/18 05:07:34 ben Exp $
---- fluid/Makefile.orig Mon Jan 22 10:13:38 2001
+--- fluid/Makefile.orig 2003-08-02 14:17:30.000000000 -0700
+++ fluid/Makefile
-@@ -49,9 +49,9 @@
-
- include ../makeinclude
-
--$(PROGRAM) : $(OBJECTS) ../lib/$(LIBNAME)
-+$(PROGRAM) : $(OBJECTS) $(LIBFLTK)
- echo Linking $@...
-- $(CXX) -L../lib $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) -lfltk $(LDLIBS)
-+ $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(LINKFLTK) $(LDLIBS)
-
- clean :
- -@ rm -f *.o $(PROGRAM) $(CLEAN) core *~ makedepend
-@@ -63,9 +63,9 @@
-
- install: $(PROGRAM)
- echo "Installing FLUID..."
-- strip $(PROGRAM)
- -mkdir -p $(bindir)
-- cp $(PROGRAM) $(bindir)/$(PROGRAM)
-+ $(INSTALL_BIN) $(PROGRAM) $(bindir)/$(PROGRAM)
-+ strip $(bindir)/$(PROGRAM)
- chmod 755 $(bindir)/$(PROGRAM)
-
- uninstall:
+@@ -75,7 +75,7 @@ include makedepend
+ install: all
+ echo "Installing FLUID in $(bindir)..."
+ -$(MKDIR) $(bindir)
+- $(CP) $(FLUID) $(bindir)/fluid$(EXEEXT)
++ $(INSTALL_BIN) $(FLUID) $(bindir)/fluid$(EXEEXT)
+ $(STRIP) $(bindir)/fluid$(EXEEXT)
+ $(bindir)/fltk-config --post $(bindir)/fluid$(EXEEXT)
+ $(CHMOD) 755 $(bindir)/fluid$(EXEEXT)
diff --git a/x11/fltk/patches/patch-af b/x11/fltk/patches/patch-af
index 122f66f0ca6..d89e6da50e8 100644
--- a/x11/fltk/patches/patch-af
+++ b/x11/fltk/patches/patch-af
@@ -1,36 +1,39 @@
-$NetBSD: patch-af,v 1.4 2003/12/01 16:35:51 ben Exp $
+$NetBSD: patch-af,v 1.5 2004/02/18 05:07:34 ben Exp $
---- makeinclude.in.orig Sat Apr 14 07:11:43 2001
+--- makeinclude.in.orig 2003-01-30 13:38:24.000000000 -0800
+++ makeinclude.in
-@@ -39,8 +39,8 @@
- NROFF =@NROFF@
+@@ -47,8 +47,8 @@ SHELL = /bin/sh
+ STRIP = strip
# compiler names:
--CXX =@CXX@
--CC =@CC@
-+CXX =$(LIBTOOL) @CXX@
-+CC =$(LIBTOOL) @CC@
- MAKEDEPEND =@MAKEDEPEND@
+-CXX = @CXX@
+-CC = @CC@
++CXX = $(LIBTOOL) @CXX@
++CC = $(LIBTOOL) @CC@
+ MAKEDEPEND = @MAKEDEPEND@
# flags for C++ compiler:
-@@ -49,15 +49,26 @@
+@@ -58,6 +58,7 @@ CXXFLAGS = $(OPTIM) @CXXFLAGS@
# program to make the archive:
- LIBNAME =@LIBNAME@
-+LIBRARY =@LIBRARY@
-+LIBFLTK =@LIBFLTK@
-+LINKFLTK =@LINKFLTK@
- LIBCOMMAND =@LIBCOMMAND@
-+LIBTOOL =@LIBTOOL@
- RANLIB =@RANLIB@
- DSONAME =@DSONAME@
- DSOCOMMAND =@DSOCOMMAND@
+ LIBNAME = @LIBNAME@
++LIBTOOL = @LIBTOOL@
+ FLLIBNAME = @FLLIBNAME@
+ GLLIBNAME = @GLLIBNAME@
+ IMGLIBNAME = @IMGLIBNAME@
+@@ -70,7 +71,8 @@ IMGDSONAME = @IMGDSONAME@
+ DSOCOMMAND = @DSOCOMMAND@
# libraries to link with:
--LDLIBS =@LDFLAGS@ @LIBS@ -lX11 -lXext @X_EXTRA_LIBS@ -lm
-+#LDLIBS =@LDFLAGS@ @LIBS@ -lX11 -lXext @X_EXTRA_LIBS@ -lm
-+LDLIBS =$(GLDLIBS)
- GLDLIBS =@LDFLAGS@ @LIBS@ @GLLIB@ -lX11 -lXext @X_EXTRA_LIBS@ -lm
+-LDLIBS = @LDFLAGS@ @LIBS@
++#LDLIBS = @LDFLAGS@ @LIBS@
++LDLIBS = $(GLDLIBS)
+ GLDLIBS = @LDFLAGS@ @GLLIB@ @LIBS@
+ LINKFLTK = -L../lib @LINKFLTK@
+ LINKFLTKGL = -L../lib @LINKFLTKGL@
+@@ -79,6 +81,12 @@ LINKFLTKIMG = -L../lib -lfltk_images @LI
+ LINKSHARED = @DSOLINK@ @LINKSHARED@ $(IMAGELIBS)
+ IMAGELIBS = @IMAGELIBS@
+# installation programs:
+INSTALL_BIN =$(LIBTOOL) cp
@@ -38,15 +41,6 @@ $NetBSD: patch-af,v 1.4 2003/12/01 16:35:51 ben Exp $
+INSTALL_LIB =$(LIBTOOL) cp
+INSTALL_MAN =cp
+
- # Man page extensions...
- CAT1EXT =@CAT1EXT@
- CAT3EXT =@CAT3EXT@
-@@ -70,7 +81,7 @@
+ # The extension to use for executables...
+ EXEEXT = @EXEEXT@
- .cxx:
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) $< -lfltk $(LDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
-
- .c.o:
- echo Compiling $@...
diff --git a/x11/fltk/patches/patch-ag b/x11/fltk/patches/patch-ag
index 38919f44fed..2c9e0aa7fb8 100644
--- a/x11/fltk/patches/patch-ag
+++ b/x11/fltk/patches/patch-ag
@@ -1,57 +1,88 @@
-$NetBSD: patch-ag,v 1.2 2002/11/25 18:58:37 jlam Exp $
+$NetBSD: patch-ag,v 1.3 2004/02/18 05:07:34 ben Exp $
---- src/Makefile.orig Mon Jan 22 07:13:40 2001
+--- src/Makefile.orig 2003-08-24 06:09:06.000000000 -0700
+++ src/Makefile
-@@ -148,17 +148,18 @@ CLEAN =
-
- include ../makeinclude
-
--LIBRARY = ../lib/$(LIBNAME)
--
- OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
-
- all: $(LIBRARY) $(DSONAME)
-
--$(LIBRARY): $(OBJECTS)
-+../lib/libfltk.a: $(OBJECTS)
- echo $(LIBCOMMAND) $@ ...
+@@ -198,6 +198,10 @@ $(LIBNAME): $(OBJECTS)
$(LIBCOMMAND) $@ $(OBJECTS)
$(RANLIB) $@
+libfltk.la: $(OBJECTS)
-+ $(CXX) -o $@ $(OBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:5 $(LDLIBS)
++ echo $(CXX) $@ ...
++ $(CXX) -o $@ $(OBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG
+
- libfltk.so.1 libfltk.sl.1: $(OBJECTS)
+ libfltk.so.1.1: $(OBJECTS)
echo $(DSOCOMMAND) $@ ...
$(DSOCOMMAND) $@ $(OBJECTS)
-@@ -174,11 +175,13 @@ include makedepend
+@@ -234,6 +238,10 @@ $(FLLIBNAME): $(FLOBJECTS)
+ $(LIBCOMMAND) $@ $(FLOBJECTS)
+ $(RANLIB) $@
- ################################################################
++libfltk_forms.la: $(FLOBJECTS)
++ echo $(CXX) $@ ...
++ $(CXX) -o $@ $(FLOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG
++
+ libfltk_forms.so.1.1: $(FLOBJECTS) libfltk.so.1.1
+ echo $(DSOCOMMAND) $@ ...
+ $(DSOCOMMAND) $@ $(FLOBJECTS) -L. -lfltk
+@@ -270,6 +278,10 @@ $(GLLIBNAME): $(GLOBJECTS)
+ $(LIBCOMMAND) $@ $(GLOBJECTS)
+ $(RANLIB) $@
--install: $(LIBRARY) $(DSONAME)
-+install: install-lib install-includes
++libfltk_gl.la: $(GLOBJECTS)
++ echo $(CXX) $@ ...
++ $(CXX) -o $@ $(GLOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG
+
-+install-lib: $(LIBRARY) $(DSONAME)
- echo "Installing libraries..."
- -mkdir -p $(libdir)
- rm -f $(libdir)/$(LIBNAME)
-- -cp $(LIBRARY) $(libdir)
-+ -$(INSTALL_LIB) $(LIBRARY) $(libdir)
- -chmod 644 $(libdir)/$(LIBNAME)
- if test "$(DSONAME)" = libfltk.so.1; then\
- rm -f $(libdir)/libfltk.so*;\
-@@ -192,11 +195,13 @@ install: $(LIBRARY) $(DSONAME)
- chmod 755 $(libdir)/libfltk.sl.1; \
- ln -s libfltk.sl.1 $(libdir)/libfltk.sl;\
- fi
+ libfltk_gl.so.1.1: $(GLOBJECTS) libfltk.so.1.1
+ echo $(DSOCOMMAND) $@ ...
+ $(DSOCOMMAND) $@ $(GLOBJECTS) -L. -lfltk
+@@ -306,6 +318,10 @@ $(IMGLIBNAME): $(IMGOBJECTS)
+ $(LIBCOMMAND) $@ $(IMGOBJECTS)
+ $(RANLIB) $@
+
++libfltk_images.la: $(IMGOBJECTS)
++ echo $(CXX) $@ ...
++ $(CXX) -o $@ $(IMGOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG
+
-+install-includes:
- echo "Installing include files..."
- -mkdir -p $(includedir)
- rm -rf $(includedir)/FL
- mkdir $(includedir)/FL
-- cp ../FL/*.[hH] $(includedir)/FL
-+ $(INSTALL_DATA) ../FL/*.[hH] $(includedir)/FL
- -chmod 755 $(includedir)/FL
- -chmod 644 $(includedir)/FL/*
- cd $(includedir)/FL;\
+ libfltk_images.so.1.1: $(IMGOBJECTS) libfltk.so.1.1
+ echo $(DSOCOMMAND) $@ ...
+ $(DSOCOMMAND) $@ $(IMGOBJECTS) $(IMAGELIBS) -L. -lfltk
+@@ -428,6 +444,9 @@ install: $(LIBNAME) $(DSONAME) \
+ $(RANLIB) $(libdir)/$(GLLIBNAME); \
+ fi
+ $(RANLIB) $(libdir)/$(IMGLIBNAME)
++ if test x$(DSONAME) = xlibfltk.la; then\
++ $(INSTALL_LIB) libfltk.la $(libdir); \
++ fi
+ if test x$(DSONAME) = xlibfltk.so.1.1; then\
+ $(RM) $(libdir)/libfltk.so*;\
+ $(CP) libfltk.so.1.1 $(libdir); \
+@@ -451,6 +470,9 @@ install: $(LIBNAME) $(DSONAME) \
+ $(CP) libfltk_s.a $(libdir); \
+ $(CHMOD) 755 $(libdir)/libfltk_s.a; \
+ fi
++ if test x$(FLDSONAME) = xlibfltk_forms.la; then\
++ $(INSTALL_LIB) libfltk_forms.la $(libdir); \
++ fi
+ if test x$(FLDSONAME) = xlibfltk_forms.so.1.1; then\
+ $(RM) $(libdir)/libfltk_forms.so*;\
+ $(CP) libfltk_forms.so.1.1 $(libdir); \
+@@ -474,6 +496,9 @@ install: $(LIBNAME) $(DSONAME) \
+ $(CP) libfltk_forms_s.a $(libdir); \
+ $(CHMOD) 755 $(libdir)/libfltk_forms.a; \
+ fi
++ if test x$(GLDSONAME) = xlibfltk_gl.la; then\
++ $(INSTALL_LIB) libfltk_gl.la $(libdir); \
++ fi
+ if test x$(GLDSONAME) = xlibfltk_gl.so.1.1; then\
+ $(RM) $(libdir)/libfltk_gl.so*;\
+ $(CP) libfltk_gl.so.1.1 $(libdir); \
+@@ -497,6 +522,9 @@ install: $(LIBNAME) $(DSONAME) \
+ $(CP) libfltk_gl_s.a $(libdir); \
+ $(CHMOD) 755 $(libdir)/libfltk_gl.a; \
+ fi
++ if test x$(IMGDSONAME) = xlibfltk_images.la; then\
++ $(INSTALL_LIB) libfltk_images.la $(libdir); \
++ fi
+ if test x$(IMGDSONAME) = xlibfltk_images.so.1.1; then\
+ $(RM) $(libdir)/libfltk_images.so*;\
+ $(CP) libfltk_images.so.1.1 $(libdir); \
diff --git a/x11/fltk/patches/patch-ah b/x11/fltk/patches/patch-ah
index 4f25d50b627..06c23bee138 100644
--- a/x11/fltk/patches/patch-ah
+++ b/x11/fltk/patches/patch-ah
@@ -1,71 +1,32 @@
-$NetBSD: patch-ah,v 1.1 2001/05/26 06:37:46 jlam Exp $
+$NetBSD: patch-ah,v 1.2 2004/02/18 05:07:34 ben Exp $
---- test/Makefile.orig Mon Jan 22 10:13:41 2001
-+++ test/Makefile
-@@ -56,52 +56,52 @@
- .fl:
- echo Generating, compiling, and linking $@...
- ../fluid/fluid -c $<
-- $(CXX) -I.. -L../lib $(CXXFLAGS) $@.cxx -lfltk $(LDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) $@.cxx $(LINKFLTK) $(LDLIBS) -o $@
-
-
--$(ALL): ../lib/$(LIBNAME)
-+$(ALL): $(LIBFLTK)
-
- # Other programs needing special "help"...
- CubeView: CubeMain.o CubeView.o CubeViewUI.o
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o \
-- -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o \
-+ $(LINKFLTK) $(GLDLIBS) -o $@
- CubeMain.o: CubeViewUI.h CubeView.h
- CubeView.o: CubeView.h
-
- cube: cube.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) cube.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) cube.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- fractals: fractals.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) fractals.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) fractals.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- fullscreen: fullscreen.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) fullscreen.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) fullscreen.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- glpuzzle: glpuzzle.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) glpuzzle.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) glpuzzle.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- gl_overlay: gl_overlay.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) gl_overlay.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) gl_overlay.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- shiny: shiny.cxx shiny_panel.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) shiny.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) shiny.cxx $(LINKFLTK) $(GLDLIBS) -o $@
- keyboard: keyboard.cxx keyboard_ui.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) keyboard.cxx -lfltk $(LDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) keyboard.cxx $(LINKFLTK) $(LDLIBS) -o $@
- mandelbrot: mandelbrot.cxx mandelbrot_ui.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) mandelbrot.cxx -lfltk $(LDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) mandelbrot.cxx $(LINKFLTK) $(LDLIBS) -o $@
- shape: shape.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) shape.cxx -lfltk $(GLDLIBS) -o $@
-+ $(CXX) -I.. $(CXXFLAGS) shape.cxx $(LINKFLTK) $(GLDLIBS) -o $@
-
- # If you have libjpeg installed, you might want to try this test program:
-
- jpeg_image: jpeg_image.cxx
- echo Compiling and linking $@...
-- $(CXX) -I.. -L../lib $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx -lfltk $(LDLIBS) -ljpeg -lXext -o $@
-+ $(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx $(LINKFLTK) $(LDLIBS) -ljpeg -lXext -o $@
-
- depend:
- $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
+--- src/Fl_Text_Buffer.cxx.orig 2003-05-28 09:09:12.000000000 -0700
++++ src/Fl_Text_Buffer.cxx
+@@ -935,7 +935,8 @@ int Fl_Text_Buffer::expand_character( ch
+ /* Convert control codes to readable character sequences */
+ /*... is this safe with international character sets? */
+ if ( ( ( unsigned char ) c ) <= 31 ) {
+- sprintf( outStr, "<%s>", ControlCodeTable[ c ] );
++ i = c;
++ sprintf( outStr, "<%s>", ControlCodeTable[ i ] );
+ return strlen( outStr );
+ } else if ( c == 127 ) {
+ sprintf( outStr, "<del>" );
+@@ -958,12 +959,14 @@ int Fl_Text_Buffer::expand_character( ch
+ ** to ignore).
+ */
+ int Fl_Text_Buffer::character_width( char c, int indent, int tabDist, char nullSubsChar ) {
++ int i;
+ /* Note, this code must parallel that in Fl_Text_Buffer::ExpandCharacter */
+ if ( c == '\t' )
+ return tabDist - ( indent % tabDist );
+- else if ( ( ( unsigned char ) c ) <= 31 )
+- return strlen( ControlCodeTable[ c ] ) + 2;
+- else if ( c == 127 )
++ else if ( ( ( unsigned char ) c ) <= 31 ) {
++ i = c;
++ return strlen( ControlCodeTable[ i ] ) + 2;
++ } else if ( c == 127 )
+ return 5;
+ else if ( c == nullSubsChar )
+ return 5;
diff --git a/x11/fltk/patches/patch-ai b/x11/fltk/patches/patch-ai
new file mode 100644
index 00000000000..6512085c051
--- /dev/null
+++ b/x11/fltk/patches/patch-ai
@@ -0,0 +1,22 @@
+$NetBSD: patch-ai,v 1.1 2004/02/18 05:07:34 ben Exp $
+
+--- src/fl_draw_pixmap.cxx.orig 2003-01-30 13:43:43.000000000 -0800
++++ src/fl_draw_pixmap.cxx
+@@ -147,14 +147,15 @@ int fl_draw_pixmap(const char*const* di,
+ // if first color is ' ' it is transparent (put it later to make
+ // it not be transparent):
+ if (*p == ' ') {
+- uchar* c = (uchar*)&d.colors[' '];
++ uchar* c;
++ transparent_index = ' ';
++ c = (uchar*)&d.colors[transparent_index];
+ #ifdef U64
+ *(U64*)c = 0;
+ # if WORDS_BIGENDIAN
+ c += 4;
+ # endif
+ #endif
+- transparent_index = ' ';
+ Fl::get_color(bg, c[0], c[1], c[2]); c[3] = 0;
+ p += 4;
+ ncolors--;