summaryrefslogtreecommitdiff
path: root/x11/fltk
diff options
context:
space:
mode:
authorjlam <jlam>1999-10-31 03:00:34 +0000
committerjlam <jlam>1999-10-31 03:00:34 +0000
commitbb7c1eaea2bc8ce7a78ee5cd70e5d557af4f704c (patch)
tree09a31babdb53030bb838bf4ef13d80f41db27651 /x11/fltk
parent4dce97ed32c43207e8c12ef3e8df1254b6871bca (diff)
downloadpkgsrc-bb7c1eaea2bc8ce7a78ee5cd70e5d557af4f704c.tar.gz
* Update fltk to 1.0.6. Changes from 1.0.3:
CHANGES SINCE FLTK 1.0.5 - Fl_win32.cxx defined WM_MOUSE_LEAVE instead of WM_MOUSELEAVE. - Fl_get_key_win32.cxx needed to include <ctype.h> - gl_draw_pixmap.cxx needed a pointer cast for ANSI C++. - Fl_Repeat_Button didn't always delete its timeout. - Now keep track of the current OpenGL context; this provides significant performance improvements for OpenGL applications with a single context. CHANGES SINCE FLTK 1.0.4 - Fl_Roller didn't handle a width and height of 0. - filename_list() fix for FreeBSD. - Fixed RPM install docos - needed "--install" option... - Fl_Browser_ wouldn't draw the vertical scrollbar right away if it added a horizontal one which covered the last line. - Fl_Tabs problems - single-character labels don't show up (problem in measure_tabs() or measure_label() methods?), and doesn't clear top tab area before drawing tabs. - Fl_Browser needs a destructor. - fl_draw_label() quoted characters between 0x80 and 0xa0, which caused problems for some programs using the WinANSI character set. - FLUID didn't handle declared class destructors. - Fixed another WIN32 cut/paste bug. - Fl_Tabs didn't work properly when there was only 1 tab. - Fl_Menu::add() didn't delete the old array. - Fl_Repeat_Button didn't delete its timeout when disabled. - fl_draw() would crash if no font was set (now defaults to a 14-pixel Helvetica font) - Can't forward declare classes; need to check for "class ", "struct ", "union ", etc. See Bill's message - Added #pragma around xlib.h for IRIX - FL_KEYBOARD events have the correct x/y when sent to child X windows. Note that if you worked around this bug by adjusting the x/y yourself you will have to change your code. In addition all events have the correct x/y when sent to the grab() widget. And the code to do all this was simplified a lot. - The XPM code didn't handle named colors with spaces in the names. - Pressing ESCape closed the window with pointer focus, even if there was a modal window open (now closes the modal window). - Fluid no longer produces trigraphs accidentally in the image data. - Fluid uses string constant concatenation to produce shorter image data. - The Fl_Group deletion code crashed if there was exactly one child widget. - Simulated overlays in single-buffered Fl_Gl_Windows now draw correctly (though very slowly as it requires the entire window to be redrawn to erase the overlay). This fix ported our Digital Domain programs better to systems with no overlay hardware. - Added support for extern "C" declarations in FLUID. - Added Fl_Pack support to FLUID. - Fixed the order of #include's in FLUID generated header files. - Fixed detection of vsnprintf and snprintf under HP-UX 10.20 once and for all. - The checkers demo did not compile with GCC 2.95 - FLUID didn't output virtual destructors properly. - Added inline "make_visible()" method to Fl_Browser. - Fl::wait() now returns immediately if any timeouts are called. - 16-bit XPM files are now properly handled. - Fl_Window::resize() was missing FL_EXPORT (caused problems with Windows DLLs) - FLUID was writing extern declarations twice. - New FLUID arrow key functionality: arrows move by one pixel, shift+arrow resizes, ctrl+arrow steps by grid CHANGES SINCE FLTK 1.0.3 - Documentation updates - Fl_Browser::bottomline(size) didn't scroll to the bottom if the second-to-last line was visible. - fl_wait() didn't poll FDs properly for WIN32. - Fixed DLL definitions for BC++. - FLUID now handles nested classes properly. - The "connect" demo now does a wait() for the PPP process so that you aren't left with a lot of zombie processes. - Fixed the FLTK colormap to use FF instead of F4 for full intensity values. - Minor change to scrollbar drawing code to match other toolkits. - New selections would cancel themselves out in WIN32. - The header file links were broken in the IRIX distributions. - fl_elapsed() now always uses GetClockTick() for WIN32. - fl_display is now initialized to GetModuleHandle(NULL) - this fixes problems people had with Cygwin and MingW32. - WinMain() is no longer compiled in with Cygwin and MingW32; it wasn't being used for those compilers anyways. - Added Solaris compiler options to configure script. - Fl_Value_Input wouldn't update properly if you set the value from a callback. - Fl_Tile wouldn't resize if the resizeable widget was the last child. - Was missing #include <ctype.h> and #include <stdlib.h> in several files, which caused problems on some platforms. - Fixed another case where Fl_Browser_ could get in an infinite resizing loop. - Fl_win32.cxx now includes <FL/filename.H> to export missing DLL symbols. - Fluid didn't handle member functions that include the scope operator. - Fl_Chart was dividing by 0 if there were no data samples or if they were all the same (min == max).
Diffstat (limited to 'x11/fltk')
-rw-r--r--x11/fltk/Makefile34
-rw-r--r--x11/fltk/files/md54
-rw-r--r--x11/fltk/files/patch-sum10
-rw-r--r--x11/fltk/patches/patch-aa50
-rw-r--r--x11/fltk/patches/patch-ab102
-rw-r--r--x11/fltk/patches/patch-ac100
-rw-r--r--x11/fltk/patches/patch-ad72
-rw-r--r--x11/fltk/pkg/COMMENT2
-rw-r--r--x11/fltk/pkg/DESCR6
-rw-r--r--x11/fltk/pkg/PLIST9
10 files changed, 185 insertions, 204 deletions
diff --git a/x11/fltk/Makefile b/x11/fltk/Makefile
index 0ee3242f11c..1ea12a23d5a 100644
--- a/x11/fltk/Makefile
+++ b/x11/fltk/Makefile
@@ -1,17 +1,20 @@
-# $NetBSD: Makefile,v 1.3 1999/09/29 22:58:45 tron Exp $
+# $NetBSD: Makefile,v 1.4 1999/10/31 03:00:34 jlam Exp $
#
-DISTNAME= fltk-1.0.3-source
-PKGNAME= fltk-1.0.3
+DISTNAME= fltk-1.0.6-source
+PKGNAME= ${DISTNAME:S/-source//}
+VERS= ${PKGNAME:S/fltk-//}
+WRKSRC= ${WRKDIR}/${PKGNAME}
CATEGORIES= x11
-MASTER_SITES= ftp://ftp.fltk.org/pub/fltk/1.0.3/ \
- ftp://ftp2.easysw.com/pub/fltk/1.0.3/ \
- ftp://ftp.northamerica.net/pub/ESP/fltk/1.0.3/ \
- ftp://ftp.funet.fi/mirrors/ftp.easysw.com/pub/fltk/1.0.3/ \
- ftp://ftp.kddlabs.co.jp/pub/lang/fltk/1.0.3/
+MASTER_SITES= ftp://ftp.fltk.org/pub/fltk/${VERS}/ \
+ ftp://ftp2.easysw.com/pub/fltk/${VERS}/ \
+ ftp://ftp.northamerica.net/pub/ESP/fltk/${VERS}/ \
+ ftp://ftp.funet.fi/mirrors/ftp.easysw.com/pub/fltk/${VERS}/ \
+ ftp://ftp.kddlabs.co.jp/pub/lang/fltk/${VERS}/
+EXTRACT_SUFX= .tar.bz2
MAINTAINER= packages@netbsd.org
-HOMEPAGE= http://fltk.easysw.com/
+HOMEPAGE= http://www.fltk.org/
DEPENDS+= Mesa-*:../../graphics/Mesa
@@ -20,11 +23,18 @@ USE_GMAKE= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-WRKSRC= ${WRKDIR}/${PKGNAME}/
+# When the API changes and breaks binary-compatibility with the previous
+# version, increment the MAJOR by 1 and reset the MINOR to 0. Otherwise,
+# bump the MINOR when a new version comes out.
+#
+FLTK_MAJOR= 1
+FLTK_MINOR= 1
+MAKE_ENV+= FLTK_MAJOR="${FLTK_MAJOR}" FLTK_MINOR="${FLTK_MINOR}"
+
DOCDIR= ${PREFIX}/share/doc/fltk
post-install:
- @${INSTALL_DATA_DIR} ${DOCDIR}
- @${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCDIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/x11/fltk/files/md5 b/x11/fltk/files/md5
index 059ee65ff89..0bee358b05e 100644
--- a/x11/fltk/files/md5
+++ b/x11/fltk/files/md5
@@ -1,3 +1,3 @@
-$NetBSD: md5,v 1.2 1999/06/10 01:15:47 nathanw Exp $
+$NetBSD: md5,v 1.3 1999/10/31 03:00:35 jlam Exp $
-MD5 (fltk-1.0.3-source.tar.gz) = 2f53d2738bb96583b26f3c2250bc7d57
+MD5 (fltk-1.0.6-source.tar.bz2) = aa54c29c6691bbae518a6cb909420522
diff --git a/x11/fltk/files/patch-sum b/x11/fltk/files/patch-sum
index 8260cd56e5e..f7494714480 100644
--- a/x11/fltk/files/patch-sum
+++ b/x11/fltk/files/patch-sum
@@ -1,6 +1,6 @@
-$NetBSD: patch-sum,v 1.1 1999/07/09 14:23:23 agc Exp $
+$NetBSD: patch-sum,v 1.2 1999/10/31 03:00:36 jlam Exp $
-MD5 (patch-aa) = 0e63450545808dbd0ef43d985e0de240
-MD5 (patch-ab) = 905d0f1da66dea94aa8faf1255f5f182
-MD5 (patch-ac) = 02eadabd3aa8597f68183d6852664d13
-MD5 (patch-ad) = 15a32382cdff89f1ba118422fe221f46
+MD5 (patch-aa) = df882abfbbb82ab40fe05f0852e99025
+MD5 (patch-ab) = e5f58e1d6fd9080b1b028ed4acdb8ee4
+MD5 (patch-ac) = 0943c938b4cc6337c0ce54b92e6a7dc2
+MD5 (patch-ad) = 208adf509fcb151640fc089fba6249e9
diff --git a/x11/fltk/patches/patch-aa b/x11/fltk/patches/patch-aa
index dc76ac0fb19..940190d43fa 100644
--- a/x11/fltk/patches/patch-aa
+++ b/x11/fltk/patches/patch-aa
@@ -1,13 +1,39 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/05/06 07:23:28 sakamoto Exp $
+$NetBSD: patch-aa,v 1.2 1999/10/31 03:00:36 jlam Exp $
---- makeinclude.in.orig Fri Mar 26 00:26:28 1999
-+++ makeinclude.in Mon Apr 26 13:41:23 1999
-@@ -42,7 +42,7 @@
- CXXFLAGS =@CXXFLAGS@ @X_CFLAGS@
-
- # program to make the archive:
--LIBNAME =@LIBNAME@
-+LIBNAME =libfltk.la
- LIBCOMMAND =@LIBCOMMAND@
- RANLIB =@RANLIB@
- DSONAME =@DSONAME@
+--- fluid/Makefile.orig Wed Aug 25 01:37:38 1999
++++ fluid/Makefile Sat Oct 30 00:59:51 1999
+@@ -49,17 +49,17 @@
+
+ include ../makeinclude
+
++LIB_TO_LINK = ../src/$(LIBNAME)
++
+ .SUFFIXES : .cxx .c .o
+
+ .cxx.o :
+ $(CXX) -I.. $(CXXFLAGS) -c $<
+ .c.o :
+ $(CC) -I.. $(CFLAGS) -c $<
+-.cxx :
+- $(CXX) -I.. $(CXXFLAGS) -o $@ $< -L../lib -lfltk $(LDLIBS)
+
+-$(PROGRAM) : $(OBJECTS) ../lib/$(LIBNAME)
+- $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) -L../lib -lfltk $(LDLIBS)
++$(PROGRAM) : $(OBJECTS) $(LIB_TO_LINK)
++ $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(LIB_TO_LINK) $(LDLIBS) $(GLDLIBS)
+
+ clean :
+ -@ rm -f *.o $(PROGRAM) $(CLEAN) core *~ makedepend
+@@ -71,10 +71,8 @@
+
+ install: $(PROGRAM)
+ @echo "Installing FLUID..."
+- @strip $(PROGRAM)
+- @-mkdir -p $(bindir)
+- @cp $(PROGRAM) $(bindir)/$(PROGRAM)
+- @chmod 755 $(bindir)/$(PROGRAM)
++ $(BSD_INSTALL_PROGRAM_DIR) $(bindir)
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(bindir)
+
+ uninstall:
+ -@ rm -f $(bindir)/$(PROGRAM)
diff --git a/x11/fltk/patches/patch-ab b/x11/fltk/patches/patch-ab
index 19901f45061..3630b022d40 100644
--- a/x11/fltk/patches/patch-ab
+++ b/x11/fltk/patches/patch-ab
@@ -1,91 +1,13 @@
-$NetBSD: patch-ab,v 1.2 1999/06/10 01:15:47 nathanw Exp $
+$NetBSD: patch-ab,v 1.3 1999/10/31 03:00:36 jlam Exp $
---- src/Makefile.orig Mon Apr 26 08:36:17 1999
-+++ src/Makefile Sun Jun 6 17:31:02 1999
-@@ -146,30 +146,25 @@
-
- include ../makeinclude
-
--LIBRARY = ../lib/$(LIBNAME)
-+LIBRARY = $(LIBNAME)
-
--OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
-+OBJECTS = $(CPPFILES:.cxx=.lo) $(CFILES:.c=.lo)
-
--all: $(LIBRARY) $(DSONAME)
-+all: $(LIBRARY)
-
- $(LIBRARY): $(OBJECTS)
-- @echo $(LIBCOMMAND) $@ ...
-- @$(LIBCOMMAND) $@ $(OBJECTS)
-- @$(RANLIB) $@
--
--libfltk.so.1 libfltk.sl.1: $(OBJECTS)
-- @echo $(DSOCOMMAND) $@ ...
-- @$(DSOCOMMAND) $@ $(OBJECTS)
--
--.SUFFIXES: .cxx .h .o
--
--.cxx.o :
-- $(CXX) -I.. $(CXXFLAGS) -c $<
--.c.o :
-- $(CC) -I.. $(CFLAGS) -c -o $@ $<
-+ $(LIBTOOL) --mode=link $(CXX) -o $@ $(OBJECTS) \
-+ -rpath $(PREFIX)/lib -version-info 1:0
-+
-+.SUFFIXES: .cxx .h .lo
-+
-+.cxx.lo :
-+ $(LIBTOOL) --mode=compile $(CXX) -I.. $(CXXFLAGS) -c $<
-+.c.lo :
-+ $(LIBTOOL) --mode=compile $(CC) -I.. $(CFLAGS) -c $<
-
- clean :
-- -@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
-+ -@ rm -f *.o *.do $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
- @touch makedepend
-
- depend:
-@@ -178,34 +173,17 @@
-
- ################################################################
-
--install: $(LIBRARY) $(DSONAME)
-+install: all
- @echo "Installing libraries..."
-- @-mkdir -p $(libdir)
-- @rm -f $(libdir)/$(LIBNAME)
-- @-cp $(LIBRARY) $(libdir)
-- @-chmod 644 $(libdir)/$(LIBNAME)
-- @if test "$(DSONAME)" = libfltk.so.1; then\
-- rm -f $(libdir)/libfltk.so*;\
-- cp libfltk.so.1 $(libdir); \
-- chmod 755 $(libdir)/libfltk.so.1; \
-- ln -s $(libdir)/libfltk.so.1 $(libdir)/libfltk.so;\
-- fi
-- @if test "$(DSONAME)" = libfltk.sl.1; then\
-- rm -f $(libdir)/libfltk.sl*;\
-- cp libfltk.sl.1 $(libdir); \
-- chmod 755 $(libdir)/libfltk.sl.1; \
-- ln -s $(libdir)/libfltk.sl.1 $(libdir)/libfltk.sl;\
-- fi
-+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(LIBNAME) $(libdir)
- @echo "Installing include files..."
-- @-mkdir -p $(includedir)
-- @rm -rf $(includedir)/FL $(includedir)/Fl
-- @-cp -r ../FL $(includedir)
-- @-chmod 755 $(includedir)/FL
-- @-chmod 644 $(includedir)/FL/*
-- @for file in $(includedir)/FL/*.H; do\
-+ $(BSD_INSTALL_DATA_DIR) $(includedir)/FL
-+ $(BSD_INSTALL_DATA) ../FL/* $(includedir)/FL
-+ @(cd $(includedir)/FL; \
-+ for file in *.H; do\
- newfile="`basename $$file H`h";\
-- ln -s $$file $(includedir)/FL/$$newfile;\
-- done
-+ ln -s $$file $$newfile;\
-+ done)
- @-ln -s FL $(includedir)/Fl
-
- #
+--- makeinclude.in.orig Thu Mar 25 10:26:28 1999
++++ makeinclude.in Sat Oct 30 00:30:16 1999
+@@ -42,7 +42,7 @@
+ CXXFLAGS =@CXXFLAGS@ @X_CFLAGS@
+
+ # program to make the archive:
+-LIBNAME =@LIBNAME@
++LIBNAME =libfltk.la
+ LIBCOMMAND =@LIBCOMMAND@
+ RANLIB =@RANLIB@
+ DSONAME =@DSONAME@
diff --git a/x11/fltk/patches/patch-ac b/x11/fltk/patches/patch-ac
index 9e614bebb8d..db3febd7032 100644
--- a/x11/fltk/patches/patch-ac
+++ b/x11/fltk/patches/patch-ac
@@ -1,48 +1,74 @@
-$NetBSD: patch-ac,v 1.1.1.1 1999/05/06 07:23:28 sakamoto Exp $
+$NetBSD: patch-ac,v 1.2 1999/10/31 03:00:36 jlam Exp $
---- fluid/Makefile.orig Mon Apr 19 23:01:23 1999
-+++ fluid/Makefile Mon Apr 26 13:52:02 1999
-@@ -45,21 +45,20 @@
+--- src/Makefile.orig Mon Apr 26 08:36:17 1999
++++ src/Makefile Sat Oct 30 00:30:16 1999
+@@ -146,30 +146,24 @@
- ################################################################
+ include ../makeinclude
--OBJECTS = $(CPPFILES:.cxx=.o)
-+OBJECTS = $(CPPFILES:.cxx=.lo)
+-LIBRARY = ../lib/$(LIBNAME)
++LIBRARY = $(LIBNAME)
- include ../makeinclude
+ OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
--.SUFFIXES : .cxx .c .o
-+.SUFFIXES : .cxx .c .lo
+-all: $(LIBRARY) $(DSONAME)
++all: $(LIBRARY)
--.cxx.o :
-- $(CXX) -I.. $(CXXFLAGS) -c $<
--.c.o :
-- $(CC) -I.. $(CFLAGS) -c $<
--.cxx :
-- $(CXX) -I.. $(CXXFLAGS) -o $@ $< -L../lib -lfltk $(LDLIBS)
+ $(LIBRARY): $(OBJECTS)
+- @echo $(LIBCOMMAND) $@ ...
+- @$(LIBCOMMAND) $@ $(OBJECTS)
+- @$(RANLIB) $@
-
--$(PROGRAM) : $(OBJECTS) ../lib/$(LIBNAME)
-- $(CXX) $(CXXFLAGS) -o $(PROGRAM) $(OBJECTS) -L../lib -lfltk $(LDLIBS)
-+.cxx.lo :
+-libfltk.so.1 libfltk.sl.1: $(OBJECTS)
+- @echo $(DSOCOMMAND) $@ ...
+- @$(DSOCOMMAND) $@ $(OBJECTS)
++ $(LIBTOOL) --cplusplus --mode=link $(CXX) -o $@ $(OBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info $(FLTK_MAJOR):$(FLTK_MINOR)
+
+ .SUFFIXES: .cxx .h .o
+
+ .cxx.o :
+- $(CXX) -I.. $(CXXFLAGS) -c $<
+ $(LIBTOOL) --mode=compile $(CXX) -I.. $(CXXFLAGS) -c $<
-+.c.lo :
+ .c.o :
+- $(CC) -I.. $(CFLAGS) -c -o $@ $<
+ $(LIBTOOL) --mode=compile $(CC) -I.. $(CFLAGS) -c $<
-+
-+$(PROGRAM) : $(OBJECTS) ../src/$(LIBNAME)
-+ $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) \
-+ ../src/$(LIBNAME) $(LDLIBS)
clean :
- -@ rm -f *.o $(PROGRAM) $(CLEAN) core *~ makedepend
-@@ -71,10 +70,7 @@
-
- install: $(PROGRAM)
- @echo "Installing FLUID..."
-- @strip $(PROGRAM)
-- @-mkdir -p $(bindir)
-- @cp $(PROGRAM) $(bindir)/$(PROGRAM)
-- @chmod 755 $(bindir)/$(PROGRAM)
-+ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(bindir)
-
- uninstall:
- -@ rm -f $(bindir)/$(PROGRAM)
+- -@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
++ -@ rm -f *.o *.do $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
+ @touch makedepend
+
+ depend:
+@@ -180,28 +174,11 @@
+
+ install: $(LIBRARY) $(DSONAME)
+ @echo "Installing libraries..."
+- @-mkdir -p $(libdir)
+- @rm -f $(libdir)/$(LIBNAME)
+- @-cp $(LIBRARY) $(libdir)
+- @-chmod 644 $(libdir)/$(LIBNAME)
+- @if test "$(DSONAME)" = libfltk.so.1; then\
+- rm -f $(libdir)/libfltk.so*;\
+- cp libfltk.so.1 $(libdir); \
+- chmod 755 $(libdir)/libfltk.so.1; \
+- ln -s $(libdir)/libfltk.so.1 $(libdir)/libfltk.so;\
+- fi
+- @if test "$(DSONAME)" = libfltk.sl.1; then\
+- rm -f $(libdir)/libfltk.sl*;\
+- cp libfltk.sl.1 $(libdir); \
+- chmod 755 $(libdir)/libfltk.sl.1; \
+- ln -s $(libdir)/libfltk.sl.1 $(libdir)/libfltk.sl;\
+- fi
++ $(BSD_INSTALL_DATA_DIR) $(libdir)
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(LIBNAME) $(libdir)
+ @echo "Installing include files..."
+- @-mkdir -p $(includedir)
+- @rm -rf $(includedir)/FL $(includedir)/Fl
+- @-cp -r ../FL $(includedir)
+- @-chmod 755 $(includedir)/FL
+- @-chmod 644 $(includedir)/FL/*
++ $(BSD_INSTALL_DATA_DIR) $(includedir)/FL
++ $(BSD_INSTALL_DATA) ../FL/* $(includedir)/FL
+ @for file in $(includedir)/FL/*.H; do\
+ newfile="`basename $$file H`h";\
+ ln -s $$file $(includedir)/FL/$$newfile;\
diff --git a/x11/fltk/patches/patch-ad b/x11/fltk/patches/patch-ad
index ec56d4b2f73..c3fe99b24cc 100644
--- a/x11/fltk/patches/patch-ad
+++ b/x11/fltk/patches/patch-ad
@@ -1,82 +1,76 @@
-$NetBSD: patch-ad,v 1.1.1.1 1999/05/06 07:23:28 sakamoto Exp $
+$NetBSD: patch-ad,v 1.2 1999/10/31 03:00:37 jlam Exp $
---- test/Makefile.orig Fri Mar 26 00:26:43 1999
-+++ test/Makefile Mon Apr 26 13:52:17 1999
-@@ -48,53 +48,55 @@
+--- test/Makefile.orig Thu Mar 25 10:26:43 1999
++++ test/Makefile Sat Oct 30 00:58:02 1999
+@@ -48,12 +48,14 @@
include ../makeinclude
-$(ALL): ../lib/$(LIBNAME)
-+CXX_:= $(LIBTOOL) --mode=link $(CXX)
-+LDLIBS:= ../src/$(LIBNAME) $(LDLIBS)
-+GLDLIBS:= ../src/$(LIBNAME) $(GLDLIBS)
++LIB_TO_LINK = ../src/$(LIBNAME)
++
++$(ALL): $(LIB_TO_LINK)
--.SUFFIXES: .cxx .c .o .fl .h
-+$(ALL): ../src/$(LIBNAME)
+ .SUFFIXES: .cxx .c .o .fl .h
--.cxx:
+ .cxx:
- $(CXX) -I.. $(CXXFLAGS) $< -L../lib -lfltk $(LDLIBS) -o $@
-+.SUFFIXES: .cxx .c .lo .fl .h
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) $< $(LIB_TO_LINK) $(LDLIBS) $(GLDLIBS) -o $@
--.cxx.o:
-- $(CXX) -I.. $(CXXFLAGS) $< -c
-+.cxx.lo:
-+ $(LIBTOOL) --mode=compile $(CXX) -I.. $(CXXFLAGS) -c $<
-
- .fl.cxx .fl.h:
- ../fluid/fluid -c $<
+ .cxx.o:
+ $(CXX) -I.. $(CXXFLAGS) $< -c
+@@ -63,41 +65,40 @@
.fl:
../fluid/fluid -c $<
- $(CXX) -I.. $(CXXFLAGS) $@.cxx -L../lib -lfltk $(LDLIBS) -o $@
-+ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) $@.cxx \
-+ $(LIB_) $(LDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) $@.cxx $(LIB_TO_LINK) $(LDLIBS) $(GLDLIBS) -o $@
# Other programs needing special "help"...
--CubeView: CubeMain.o CubeView.o CubeViewUI.o
+ CubeView: CubeMain.o CubeView.o CubeViewUI.o
- $(CXX) -I.. $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o \
- -L../lib -lfltk $(GLDLIBS) -o $@
--CubeMain.o: CubeViewUI.h CubeView.h
--CubeView.o: CubeView.h
-+CubeView: CubeMain.lo CubeView.lo CubeViewUI.lo
-+ $(CXX_) -I.. $(CXXFLAGS) CubeMain.lo CubeView.lo CubeViewUI.lo \
-+ $(GLDLIBS) -o $@
-+CubeMain.lo: CubeViewUI.h CubeView.h
-+CubeView.lo: CubeView.h
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) CubeMain.o CubeView.o CubeViewUI.o $(LIB_TO_LINK) $(GLDLIBS) -o $@
+ CubeMain.o: CubeViewUI.h CubeView.h
+ CubeView.o: CubeView.h
cube: cube.cxx
- $(CXX) -I.. $(CXXFLAGS) cube.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) cube.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) cube.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
fractals: fractals.cxx
- $(CXX) -I.. $(CXXFLAGS) fractals.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) fractals.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) fractals.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
fullscreen: fullscreen.cxx
- $(CXX) -I.. $(CXXFLAGS) fullscreen.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) fullscreen.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) fullscreen.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
glpuzzle: glpuzzle.cxx
- $(CXX) -I.. $(CXXFLAGS) glpuzzle.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) glpuzzle.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) glpuzzle.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
gl_overlay: gl_overlay.cxx
- $(CXX) -I.. $(CXXFLAGS) gl_overlay.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) gl_overlay.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) gl_overlay.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
shiny: shiny.cxx shiny_panel.cxx
- $(CXX) -I.. $(CXXFLAGS) shiny.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) shiny.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) shiny.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
keyboard: keyboard.cxx keyboard_ui.cxx
- $(CXX) -I.. $(CXXFLAGS) keyboard.cxx -L../lib -lfltk $(LDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) keyboard.cxx $(LDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) keyboard.cxx $(LIB_TO_LINK) $(LDLIBS) $(GLDLIBS) -o $@
mandelbrot: mandelbrot.cxx mandelbrot_ui.cxx
- $(CXX) -I.. $(CXXFLAGS) mandelbrot.cxx -L../lib -lfltk $(LDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) mandelbrot.cxx $(LDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) mandelbrot.cxx $(LIB_TO_LINK) $(LDLIBS) $(GLDLIBS) -o $@
shape: shape.cxx
- $(CXX) -I.. $(CXXFLAGS) shape.cxx -L../lib -lfltk $(GLDLIBS) -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) shape.cxx $(GLDLIBS) -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) shape.cxx $(LIB_TO_LINK) $(GLDLIBS) -o $@
# If you have libjpeg installed, you might want to try this test program:
jpeg_image: jpeg_image.cxx
- $(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx -L../lib -lfltk $(LDLIBS) -ljpeg -lXext -o $@
-+ $(CXX_) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx $(LDLIBS) -ljpeg -lXext -o $@
++ $(LIBTOOL) --mode=link $(CXX) -I.. $(CXXFLAGS) -I../../../local/jpeg-6b -L../../../local/jpeg-6b jpeg_image.cxx $(LIB_TO_LINK) $(LDLIBS) -ljpeg -lXext -o $@
depend:
- $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
+- $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
++ $(LIBTOOL) --mode=link $(MAKEDEPEND) -I.. $(CXXFLAGS) $(CPPFILES) > makedepend
+
+ clean:
+ -@ rm -f $(ALL) jpeg_image *.o core *~
diff --git a/x11/fltk/pkg/COMMENT b/x11/fltk/pkg/COMMENT
index 23102b3bbc4..113c9692b04 100644
--- a/x11/fltk/pkg/COMMENT
+++ b/x11/fltk/pkg/COMMENT
@@ -1 +1 @@
-C++ graphical user interface toolkit for X.
+The Fast Light Tool Kit
diff --git a/x11/fltk/pkg/DESCR b/x11/fltk/pkg/DESCR
index 1d567378348..d395bde2d82 100644
--- a/x11/fltk/pkg/DESCR
+++ b/x11/fltk/pkg/DESCR
@@ -1,3 +1,5 @@
-The Fast Light ToolKit.
FLTK (pronounced "fulltick") is a LGPL'd C++ graphical user interface
-toolkit for X (UNIX, OpenGL, and WIN32).
+toolkit for X (UNIX), OpenGL, and Win32. FLTK was designed to be small and
+modular enough to be statically linked, but also works fine as a shared
+library. FLTK also includes FLUID, an interactive user interface builder
+program.
diff --git a/x11/fltk/pkg/PLIST b/x11/fltk/pkg/PLIST
index 01c37ec2316..31c7861e3dc 100644
--- a/x11/fltk/pkg/PLIST
+++ b/x11/fltk/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/06 07:23:28 sakamoto Exp $
+@comment $NetBSD: PLIST,v 1.2 1999/10/31 03:00:37 jlam Exp $
bin/fluid
include/FL/Enumerations.H
include/FL/Enumerations.h
@@ -187,10 +187,8 @@ include/FL/win32.H
include/FL/win32.h
include/FL/x.H
include/FL/x.h
-@dirrm include/FL
-include/Fl
lib/libfltk.a
-lib/libfltk.so.1.0
+lib/libfltk.so.1.1
share/doc/fltk/FL.gif
share/doc/fltk/Fl_Adjuster.html
share/doc/fltk/Fl_Box.html
@@ -325,4 +323,7 @@ share/doc/fltk/text.gif
share/doc/fltk/valuators.gif
share/doc/fltk/value_slider.gif
share/doc/fltk/widgets.html
+@exec ln -sf FL %D/include/Fl
+@unexec rm -f %D/include/Fl
@dirrm share/doc/fltk
+@dirrm include/FL