Import fltk2-2.0r6403

The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally
developed by Mr. Bill Spitzak and is currently maintained by a
small group of developers across the world with a central
repository in the US.

from James Turner (MAINTAINER) with some tweaks by me
This commit is contained in:
ajacoutot 2008-10-19 07:34:45 +00:00
parent 308c0513a9
commit c412043814
8 changed files with 325 additions and 0 deletions

66
x11/fltk2/Makefile Normal file
View File

@ -0,0 +1,66 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
COMMENT = fast light toolkit
V= 6403
DISTNAME = fltk-2.0.x-r${V}
PKGNAME = fltk2-2.0r${V}
CATEGORIES = x11
HOMEPAGE = http://www.fltk.org/
MASTER_SITES = http://ftp.easysw.com/pub/fltk/snapshots/ \
http://ftp2.easysw.com/pub/fltk/snapshots/
MAINTAINER = James Turner <james@bsdgroup.org>
# FLTK/GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
USE_X11 = Yes
USE_GMAKE = Yes
WANTLIB = X11 Xext Xft Xi Xinerama Xrender c fontconfig m pthread \
stdc++ z
LIB_DEPENDS = jpeg.>=62::graphics/jpeg \
png.>=8::graphics/png
MAKE_FLAGS= CC=${CC} \
CXX=${CXX} \
OPTIM="" # empty
CONFIGURE_STYLE =gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# make sure X overlay is enabled even when there's no running X server
# at build time
CONFIGURE_ENV += ac_cv_have_overlay=yes
CONFIGURE_ARGS = --enable-gl \
--enable-threads \
--enable-jpeg \
--enable-zlib \
--enable-png \
--enable-xft \
--enable-xdbe \
--enable-xinerama \
--disable-cairo \
--disable-x11 \
--disable-xshm \
--disable-shared
# This regression test wants an X11 display
REGRESS_IS_INTERACTIVE= Yes
REGRESS_FLAGS= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
do-regress:
@cd ${WRKSRC}/test && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} && \
./demo
.include <bsd.port.mk>

5
x11/fltk2/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (fltk-2.0.x-r6403.tar.gz) = 1Z6ofzpWbIfFvv2+BcRXRg==
RMD160 (fltk-2.0.x-r6403.tar.gz) = EuH49E54AlwVQgktvC5ZkhvCD/Y=
SHA1 (fltk-2.0.x-r6403.tar.gz) = 4js0iwSKjYRD3uDOtToEUax8/xk=
SHA256 (fltk-2.0.x-r6403.tar.gz) = FUePfZKOdyNE8Vl7D/pp8y0Ru+EsHR/xnz6FHOHRaoI=
SIZE (fltk-2.0.x-r6403.tar.gz) = 3033405

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
--- Makefile.orig Fri Oct 17 05:57:47 2008
+++ Makefile Fri Oct 17 05:57:53 2008
@@ -25,7 +25,7 @@
include makeinclude
-DIRS = src $(LOCALIMAGES) images OpenGL fluid glut test
+DIRS = src $(LOCALIMAGES) images OpenGL fluid glut
all: makeinclude
for dir in $(DIRS); do\

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-fluid_Makefile,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
--- fluid/Makefile.orig Fri Oct 17 06:27:51 2008
+++ fluid/Makefile Fri Oct 17 06:28:01 2008
@@ -134,7 +134,7 @@ install:
-$(MKDIR) $(DESTDIR)$(bindir)
$(CP) $(FLUID) $(DESTDIR)$(bindir)/fluid2$(EXEEXT)
$(STRIP) $(DESTDIR)$(bindir)/fluid2$(EXEEXT)
- $(bindir)/fltk2-config --post $(DESTDIR)$(bindir)/fluid2$(EXEEXT)
+ $(DESTDIR)$(bindir)/fltk2-config --post $(DESTDIR)$(bindir)/fluid2$(EXEEXT)
$(CHMOD) 755 $(DESTDIR)$(bindir)/fluid2$(EXEEXT)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-images_fl_png_cxx,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
--- images/fl_png.cxx.orig Fri Oct 17 06:15:52 2008
+++ images/fl_png.cxx Fri Oct 17 06:16:18 2008
@@ -31,7 +31,7 @@
#if HAVE_LIBPNG
extern "C"
{
-#ifdef HAVE_LOCAL_PNG_H
+#ifdef HAVE_LIBPNG_PNG_H
# include "libpng/png.h"
#else
# include <png.h>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-makeinclude_in,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
--- makeinclude.in.orig Sat Oct 18 10:28:29 2008
+++ makeinclude.in Sat Oct 18 10:28:44 2008
@@ -115,7 +115,7 @@ CAT1EXT = @CAT1EXT@
CAT3EXT = @CAT3EXT@
# Be quiet when building...
-.SILENT:
+#.SILENT:
# Build commands and filename extensions...
.SUFFIXES: .0 .1 .3 .c .cxx .h .fl .man .o .z $(EXEEXT)

6
x11/fltk2/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally
developed by Mr. Bill Spitzak and is currently maintained by a
small group of developers across the world with a central
repository in the US.

200
x11/fltk2/pkg/PLIST Normal file
View File

@ -0,0 +1,200 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/19 07:34:45 ajacoutot Exp $
bin/fltk2-config
@bin bin/fluid2
include/fltk/
include/fltk/Adjuster.h
include/fltk/AlignGroup.h
include/fltk/AnsiWidget.h
include/fltk/BarGroup.h
include/fltk/Box.h
include/fltk/Browser.h
include/fltk/Button.h
include/fltk/CheckButton.h
include/fltk/Choice.h
include/fltk/Clock.h
include/fltk/Color.h
include/fltk/ColorChooser.h
include/fltk/ComboBox.h
include/fltk/Cursor.h
include/fltk/CycleButton.h
include/fltk/Dial.h
include/fltk/Divider.h
include/fltk/DoubleBufferWindow.h
include/fltk/FL_API.h
include/fltk/FL_VERSION.h
include/fltk/FileBrowser.h
include/fltk/FileChooser.h
include/fltk/FileIcon.h
include/fltk/FileInput.h
include/fltk/FillDial.h
include/fltk/FillSlider.h
include/fltk/Flags.h
include/fltk/FloatInput.h
include/fltk/Font.h
include/fltk/GlWindow.h
include/fltk/Group.h
include/fltk/HelpDialog.h
include/fltk/HelpView.h
include/fltk/HighlightButton.h
include/fltk/Image.h
include/fltk/Input.h
include/fltk/InputBrowser.h
include/fltk/IntInput.h
include/fltk/InvisibleBox.h
include/fltk/Item.h
include/fltk/ItemGroup.h
include/fltk/LabelType.h
include/fltk/LightButton.h
include/fltk/LineDial.h
include/fltk/Menu.h
include/fltk/MenuBar.h
include/fltk/MenuBuild.h
include/fltk/MenuWindow.h
include/fltk/Monitor.h
include/fltk/MultiBrowser.h
include/fltk/MultiImage.h
include/fltk/MultiLineInput.h
include/fltk/MultiLineOutput.h
include/fltk/NumericInput.h
include/fltk/Output.h
include/fltk/PackedGroup.h
include/fltk/PixelType.h
include/fltk/PopupMenu.h
include/fltk/Preferences.h
include/fltk/ProgressBar.h
include/fltk/RadioButton.h
include/fltk/RadioItem.h
include/fltk/RadioLightButton.h
include/fltk/Rectangle.h
include/fltk/RepeatButton.h
include/fltk/ReturnButton.h
include/fltk/ScrollGroup.h
include/fltk/Scrollbar.h
include/fltk/SecretInput.h
include/fltk/ShapedWindow.h
include/fltk/SharedImage.h
include/fltk/Slider.h
include/fltk/StatusBarGroup.h
include/fltk/StringList.h
include/fltk/Style.h
include/fltk/StyleSet.h
include/fltk/Symbol.h
include/fltk/SystemMenuBar.h
include/fltk/TabGroup.h
include/fltk/TextBuffer.h
include/fltk/TextDisplay.h
include/fltk/TextEditor.h
include/fltk/Threads.h
include/fltk/ThumbWheel.h
include/fltk/TiledGroup.h
include/fltk/TiledImage.h
include/fltk/ToggleButton.h
include/fltk/ToggleItem.h
include/fltk/Tooltip.h
include/fltk/Valuator.h
include/fltk/ValueInput.h
include/fltk/ValueOutput.h
include/fltk/ValueSlider.h
include/fltk/Widget.h
include/fltk/WidgetAssociation.h
include/fltk/Window.h
include/fltk/WizardGroup.h
include/fltk/WordwrapInput.h
include/fltk/WordwrapOutput.h
include/fltk/ask.h
include/fltk/compat/
include/fltk/compat/FL/
include/fltk/compat/FL/Enumerations.H
include/fltk/compat/FL/Fl.H
include/fltk/compat/FL/Fl_Adjuster.H
include/fltk/compat/FL/Fl_Box.H
include/fltk/compat/FL/Fl_Browser.H
include/fltk/compat/FL/Fl_Button.H
include/fltk/compat/FL/Fl_Chart.H
include/fltk/compat/FL/Fl_Check_Button.H
include/fltk/compat/FL/Fl_Choice.H
include/fltk/compat/FL/Fl_Clock.H
include/fltk/compat/FL/Fl_Color_Chooser.H
include/fltk/compat/FL/Fl_Counter.H
include/fltk/compat/FL/Fl_Dial.H
include/fltk/compat/FL/Fl_Double_Window.H
include/fltk/compat/FL/Fl_File_Chooser.H
include/fltk/compat/FL/Fl_Gl_Window.H
include/fltk/compat/FL/Fl_Group.H
include/fltk/compat/FL/Fl_Hold_Browser.H
include/fltk/compat/FL/Fl_Hor_Slider.H
include/fltk/compat/FL/Fl_Hor_Value_Slider.H
include/fltk/compat/FL/Fl_Input.H
include/fltk/compat/FL/Fl_Int_Input.H
include/fltk/compat/FL/Fl_Light_Button.H
include/fltk/compat/FL/Fl_Menu_.H
include/fltk/compat/FL/Fl_Menu_Bar.H
include/fltk/compat/FL/Fl_Menu_Button.H
include/fltk/compat/FL/Fl_Menu_Item.H
include/fltk/compat/FL/Fl_Output.H
include/fltk/compat/FL/Fl_Overlay_Window.H
include/fltk/compat/FL/Fl_Pack.H
include/fltk/compat/FL/Fl_Pixmap.H
include/fltk/compat/FL/Fl_Return_Button.H
include/fltk/compat/FL/Fl_Roller.H
include/fltk/compat/FL/Fl_Scroll.H
include/fltk/compat/FL/Fl_Scrollbar.H
include/fltk/compat/FL/Fl_Select_Browser.H
include/fltk/compat/FL/Fl_Shared_Image.H
include/fltk/compat/FL/Fl_Single_Window.H
include/fltk/compat/FL/Fl_Slider.H
include/fltk/compat/FL/Fl_Tabs.H
include/fltk/compat/FL/Fl_Text_Buffer.H
include/fltk/compat/FL/Fl_Text_Editor.H
include/fltk/compat/FL/Fl_Tile.H
include/fltk/compat/FL/Fl_Toggle_Button.H
include/fltk/compat/FL/Fl_Toggle_Light_Button.H
include/fltk/compat/FL/Fl_Valuator.H
include/fltk/compat/FL/Fl_Value_Input.H
include/fltk/compat/FL/Fl_Value_Output.H
include/fltk/compat/FL/Fl_Value_Slider.H
include/fltk/compat/FL/Fl_Widget.H
include/fltk/compat/FL/Fl_Window.H
include/fltk/compat/FL/filename.H
include/fltk/compat/FL/fl_ask.H
include/fltk/compat/FL/fl_draw.H
include/fltk/compat/FL/fl_message.H
include/fltk/compat/FL/forms.H
include/fltk/compat/FL/gl.h
include/fltk/compat/FL/glut.H
include/fltk/compat/FL/math.h
include/fltk/compat/FL/menubar.h
include/fltk/compat/FL/x.H
include/fltk/damage.h
include/fltk/dirent.h
include/fltk/draw.h
include/fltk/error.h
include/fltk/events.h
include/fltk/file_chooser.h
include/fltk/filename.h
include/fltk/fltk_cairo.h
include/fltk/forms.h
include/fltk/gl.h
include/fltk/gl2opengl.h
include/fltk/glut.h
include/fltk/layout.h
include/fltk/load_plugin.h
include/fltk/mac.r
include/fltk/math.h
include/fltk/osx.h
include/fltk/pnmImage.h
include/fltk/rgbImage.h
include/fltk/run.h
include/fltk/show_colormap.h
include/fltk/string.h
include/fltk/utf.h
include/fltk/visual.h
include/fltk/win32.h
include/fltk/x.h
include/fltk/x11.h
include/fltk/xbmImage.h
include/fltk/xpmImage.h
lib/libfltk2.a
lib/libfltk2_gl.a
lib/libfltk2_glut.a
lib/libfltk2_images.a