summaryrefslogtreecommitdiff
path: root/x11/fltk/patches/patch-ac
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-26 06:37:45 +0000
committerjlam <jlam@pkgsrc.org>2001-05-26 06:37:45 +0000
commitd2241bc129cb5ddb1196d98c19a2675c8bf44704 (patch)
tree63fc4f835a1812d3190a1a3f9e2de0da2db0bdb7 /x11/fltk/patches/patch-ac
parent7415aa8f6231e2e127e5ce43e9e118173a955e1c (diff)
downloadpkgsrc-d2241bc129cb5ddb1196d98c19a2675c8bf44704.tar.gz
Update fltk to 1.0.11. Changes from version 1.0.10 include bugfixes and:
- Added new const const pointer versions of pixmap functions to eliminate an annoying pointer warning message that was generated by the Sun and other C++ compilers. - Eliminated all "var hides class::var" warnings. - Eliminated all "string literal converted to char *" warnings. - The file chooser buttons use user_data() rather than the label to decide what to do, allowing the label to be somewhat cleaner. - Fl_has_idle only tested N-1 callbacks and missed one. - Fl_Gl_Window has a new method to allow you to get and set the context: void Fl_Gl_Window::context(void*, int destroy = 0) void* Fl_Gl_Window::context() const; Return or set a pointer to the GLContext that this window is using. This is a system-dependent structure, but it is portable to copy the context from one window to another. You can also set it to NULL, which will force FLTK to recreate the context the next time make_current() is called, this is useful for getting around bugs in OpenGL implementations. If destroy_flag is true the context will be destroyed by fltk when the window is destroyed, or when the mode() is changed, or the next time context(x) is called. - Added Fl::add_check(...), Fl::remove_check, and Fl::has_check. These are similar to idle callbacks but are only called just before it waits for new events. They can be used to watch for changes in global state and respond to them. - Added simple FLTK and FLUID manual pages.
Diffstat (limited to 'x11/fltk/patches/patch-ac')
-rw-r--r--x11/fltk/patches/patch-ac126
1 files changed, 83 insertions, 43 deletions
diff --git a/x11/fltk/patches/patch-ac b/x11/fltk/patches/patch-ac
index 8c05ae94758..2722dfa0f6a 100644
--- a/x11/fltk/patches/patch-ac
+++ b/x11/fltk/patches/patch-ac
@@ -1,53 +1,93 @@
-$NetBSD: patch-ac,v 1.3 2000/08/04 03:38:15 jlam Exp $
+$NetBSD: patch-ac,v 1.4 2001/05/26 06:37:46 jlam Exp $
---- src/Makefile.orig Mon Jun 5 17:21:03 2000
-+++ src/Makefile Thu Aug 3 23:13:08 2000
-@@ -152,7 +152,13 @@
+--- configure.orig Mon May 7 10:53:14 2001
++++ configure
+@@ -18,6 +18,9 @@
+ ac_help="$ac_help
+ --enable-shared turn on shared libraries [default=no]"
+ ac_help="$ac_help
++ --enable-libtool=LIBTOOL_PATH
++ turn on building with libtool [default=no]"
++ac_help="$ac_help
+ --with-x use the X Window System"
- OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o)
+ # Initialize some variables set by options.
+@@ -562,6 +565,9 @@
--all: $(LIBRARY) $(DSONAME)
-+all: libfltk.la
+
+ 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 @@
+ # Check whether --enable-shared or --disable-shared was given.
+ if test "${enable_shared+set}" = set; then
+ enableval="$enable_shared"
++ :
++fi
++
++# 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
++ LIBTOOL="$enable_libtool"
++ enable_shared=no
++else
++ LIBTOOL=""
++fi
++fi
+
-+libfltk.la: $(OBJECTS)
-+ $(CXX) -o $@ $(OBJECTS:.o=.lo) -rpath $(prefix)/lib \
-+ -version-info $(FLTK_MAJOR):$(FLTK_MINOR)
-+ $(RM) -f $(LIBRARY)
-+ echo timestamp > $(LIBRARY)
++
++if test "$enable_shared" = "yes"; then
+ PICFLAG=1
+ case $uname in
+ SunOS* | UNIX_S*)
+@@ -638,13 +659,18 @@
+ ;;
+ esac
+ fi
+-fi
+
++if test "x$LIBTOOL" != "x"; then
++ LIBNAME="libfltk.la"
++ LIBRARY="\$(LIBNAME)"
++ LIBFLTK="../src/\$(LIBNAME)"
++ LINKFLTK="../src/\$(LIBNAME)"
++fi
- $(LIBRARY): $(OBJECTS)
- echo $(LIBCOMMAND) $@ ...
-@@ -174,7 +180,14 @@
+ # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:648: checking for $ac_word" >&5
++echo "configure:674: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -3220,6 +3246,10 @@
- ################################################################
--install: $(LIBRARY) $(DSONAME)
-+install: install-la install-includes
+
++
+
-+install-la: libfltk.la
-+ echo "Installing libraries..."
-+ $(BSD_INSTALL_DATA_DIR) $(libdir)
-+ $(LIBTOOL) $(BSD_INSTALL_DATA) libfltk.la $(libdir)
+
-+install-lib: $(LIBRARY) $(DSONAME)
- echo "Installing libraries..."
- -mkdir -p $(libdir)
- rm -f $(libdir)/$(LIBNAME)
-@@ -192,13 +205,11 @@
- chmod 755 $(libdir)/libfltk.sl.1; \
- ln -s libfltk.sl.1 $(libdir)/libfltk.sl;\
- fi
+
-+install-includes:
- echo "Installing include files..."
-- -mkdir -p $(includedir)
-- rm -rf $(includedir)/FL
-- mkdir $(includedir)/FL
-- cp ../FL/*.[hH] $(includedir)/FL
-- -chmod 755 $(includedir)/FL
-- -chmod 644 $(includedir)/FL/*
-+ $(BSD_INSTALL_DATA_DIR) $(includedir)/FL
-+ $(BSD_INSTALL_DATA) ../FL/* $(includedir)/FL
- cd $(includedir)/FL;\
- for file in *.H; do\
- ln -s $$file "`basename $$file H`h";\
+ trap '' 1 2 15
+ cat > confcache <<\EOF
+ # This file is a shell script that caches the results of configure
+@@ -3369,7 +3399,11 @@
+ 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
+
+ CEOF