1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

FLTK is a cross-plattform C++ graphical user interface toolkit for X, OpenGL

and Microsoft Windows systems.

It is provided under the terms of the GNU Library Public License, Version 2.

This port supplies a snapshot of the current 2.0 development version.

WWW:	http://www.fltk.org/

PR:		ports/95223
Submitted by:	Thomas-Martin Seck <tmseck@netcologne.de>
This commit is contained in:
Pav Lucistnik 2006-05-26 16:21:49 +00:00
parent 69e2802a80
commit 311ad5e06c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163499
14 changed files with 450 additions and 0 deletions

View File

@ -18,6 +18,7 @@
SUBDIR += fl_editor
SUBDIR += fltk
SUBDIR += fltk-threads
SUBDIR += fltk2
SUBDIR += flu
SUBDIR += flvw
SUBDIR += fox

View File

@ -0,0 +1,78 @@
# New ports collection makefile for: fltk2
# Date created: 2006-03-26
# Whom: Thomas-Martin Seck <tmseck@netcologne.de>
#
# $FreeBSD$
#
PORTNAME= fltk
PORTVERSION= 2.0.${SNAPSHOT}
CATEGORIES= x11-toolkits
MASTER_SITES= http://ftp.easysw.com/pub/%SUBDIR%/ \
ftp://ftp2.easysw.com/pub/%SUBDIR%/ \
ftp://ftp3.easysw.com/pub/%SUBDIR%/ \
http://mirror.nu6.org/ftp.easysw.com/pub/%SUBDIR%/ \
http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/%SUBDIR%/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/%SUBDIR%/ \
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/
MASTER_SITE_SUBDIR= fltk/snapshots
DISTNAME= fltk-2.0.x-${SNAPSHOT}
MAINTAINER= tmseck@netcologne.de
COMMENT= Fast Light Toolkit version 2 (development snapshot)
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
Xft.2:${PORTSDIR}/x11-fonts/libXft
SNAPSHOT= r4825
OPTIONS= FLTK_THREADS "Install with threads support" on
CONFLICTS= fltk-1.* fltk-threads-1.*
LATEST_LINK= fltk2
USE_BZIP2= yes
USE_GMAKE= yes
USE_GL= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
CPPFLAGS+= "-I${LOCALBASE}/include"
LDFLAGS+= "-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --enable-jpeg --enable-png --enable-gl --enable-xft \
--enable-zlib
# Turn shared library support off for now since fltk2 is not yet stable.
# fltk2 applications should only be linked statically for now to avoid trouble
# after possibly incompatible updates to fltk2.
CONFIGURE_ARGS+= --disable-shared
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbuild-freebsd${OSREL}
PORTDOCS= *
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FLTK_THREADS)
CONFIGURE_ARGS+= --enable-threads
CPPFLAGS+= "${PTHREAD_CFLAGS}"
LDFLAGS+= "${PTHREAD_LIBS}"
.else
CONFIGURE_ARGS+= --disable-threads
.endif
post-patch:
${REINPLACE_CMD} -e 's:%%CXX%%:${CXX}:g' \
${WRKSRC}/fltk-config.in \
${WRKSRC}/makeinclude.in
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/documentation && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (fltk-2.0.x-r4825.tar.bz2) = 37395d18f6cc23d5753c3539288e5f0f
SHA256 (fltk-2.0.x-r4825.tar.bz2) = 0b9a8bd41ea0afb28c4893e3e0a611fd68853e7bd7b3bb5f6c6c1ce4bc1bbabb
SIZE (fltk-2.0.x-r4825.tar.bz2) = 2435835

View File

@ -0,0 +1,11 @@
--- ./Makefile.orig Thu Aug 4 00:08:19 2005
+++ ./Makefile Sun Apr 2 13:24:34 2006
@@ -34,7 +34,7 @@
done
install: makeinclude
- for dir in $(DIRS) documentation; do\
+ for dir in $(DIRS); do\
echo "=== installing $$dir ===";\
(cd $$dir; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) install) || exit $$?;\
done

View File

@ -0,0 +1,25 @@
--- ./OpenGL/Makefile.orig Thu Aug 4 00:08:19 2005
+++ ./OpenGL/Makefile Sun Apr 2 13:24:34 2006
@@ -118,19 +118,17 @@
ifneq (,$(wildcard ../lib/$(LIBNAME)))
echo "Installing static OpenGL library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(LIBNAME)
- $(CP) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
endif
ifneq (,$(wildcard ../lib/$(DSONAME)))
echo "Installing shared OpenGL library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(DSONAME)
$(RM) $(DESTDIR)$(libdir)/$(DSOLINK)
- $(CP) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
$(LN) -s $(DSONAME) $(DESTDIR)$(libdir)/$(DSOLINK)
endif
ifeq ($(DSONAME), fltk_gl.dll)
- $(CP) lib$(DSONAME).a $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) lib$(DSONAME).a $(DESTDIR)$(libdir)
endif
#

View File

@ -0,0 +1,11 @@
--- ./configure.orig Fri Mar 17 06:00:50 2006
+++ ./configure Sun Apr 2 13:24:34 2006
@@ -1328,7 +1328,7 @@
FL_MINOR_VERSION=0
FL_PATCH_VERSION=0
FL_RELEASE_VERSION=a0
-FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
+FL_API_VERSION=${FL_MAJOR_VERSION}

View File

@ -0,0 +1,11 @@
--- fltk/ComboBox.h.orig Sun Apr 2 12:05:31 2006
+++ fltk/ComboBox.h Sun Apr 2 12:07:16 2006
@@ -103,7 +103,7 @@
ComboBox *combo_;
};
ComboInput *input_;
-#ifdef _WIN32
+#if defined ( _WIN32 ) || defined ( __GNUC__ ) && __GNUC__ < 3
public:
#endif
static void input_callback_(Widget*,void*);

View File

@ -0,0 +1,11 @@
--- ./fltk-config.in.orig Thu Aug 11 02:17:12 2005
+++ ./fltk-config.in Sun Apr 2 13:24:34 2006
@@ -62,7 +62,7 @@
srcdir=@srcdir@
# compiler names
-CXX="@CXX@"
+CXX="%%CXX%%"
CC="@CC@"
# post-process command (only needed for MacOS)

View File

@ -0,0 +1,14 @@
--- ./fluid/Makefile.orig Wed Aug 10 17:31:43 2005
+++ ./fluid/Makefile Sun Apr 2 13:24:34 2006
@@ -122,10 +122,8 @@
install:
echo "Installing FLUID in $(bindir)..."
-$(MKDIR) $(DESTDIR)$(bindir)
- $(CP) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
- $(STRIP) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
+ $(BSD_INSTALL_PROGRAM) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
$(bindir)/fltk-config --post $(DESTDIR)$(bindir)/fluid$(EXEEXT)
- $(CHMOD) 755 $(DESTDIR)$(bindir)/fluid$(EXEEXT)
uninstall:

View File

@ -0,0 +1,28 @@
--- ./images/Makefile.orig Fri Aug 12 04:53:31 2005
+++ ./images/Makefile Sun Apr 2 13:24:34 2006
@@ -120,8 +120,7 @@
ifneq (,$(wildcard ../lib/$(LIBNAME)))
echo "Installing static images library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(LIBNAME)
- $(CP) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
$(RM) -f $(DESTDIR)$(libdir)/$(LIBPREFIX)fltk_z$(LIBSUFFIX)
$(RM) -f $(DESTDIR)$(libdir)/$(LIBPREFIX)fltk_png$(LIBSUFFIX)
$(RM) -f $(DESTDIR)$(libdir)/$(LIBPREFIX)fltk_jpeg$(LIBSUFFIX)
@@ -132,13 +131,12 @@
ifneq (,$(wildcard ../lib/$(DSONAME)))
echo "Installing shared images library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(DSONAME)
$(RM) $(DESTDIR)$(libdir)/$(DSOLINK)
- $(CP) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
$(LN) -s $(DSONAME) $(DESTDIR)$(libdir)/$(DSOLINK)
endif
ifeq ($(DSONAME), fltk_images.dll)
- $(CP) lib$(DSONAME).a $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) lib$(DSONAME).a $(DESTDIR)$(libdir)
endif
#
# Uninstall the libraries...

View File

@ -0,0 +1,16 @@
--- ./makeinclude.in.orig Wed Aug 10 17:43:23 2005
+++ ./makeinclude.in Sun Apr 2 13:24:34 2006
@@ -49,11 +49,11 @@
# compiler names:
CC = @CC@
-CXX = @CXX@
+CXX = %%CXX%%
MAKEDEPEND = @MAKEDEPEND@ -Y
# flags for C++ compiler:
-OPTIM = @OPTIM@
+OPTIM =
CFLAGS = $(OPTIM) @CFLAGS@
CXXFLAGS = $(OPTIM) @CXXFLAGS@

View File

@ -0,0 +1,48 @@
--- ./src/Makefile.orig Fri Mar 10 01:02:34 2006
+++ ./src/Makefile Sun Apr 2 13:24:34 2006
@@ -254,39 +254,30 @@
mkdir $(DESTDIR); \
fi \
fi
- $(RMDIR) $(DESTDIR)$(includedir)/fltk
$(MKDIR) $(DESTDIR)$(includedir)/fltk
- $(CP) ../fltk/*.h $(DESTDIR)$(includedir)/fltk
- $(CHMOD) 755 $(DESTDIR)$(includedir)/fltk
- $(CHMOD) 644 $(DESTDIR)$(includedir)/fltk/*
+ $(BSD_INSTALL_DATA) ../fltk/*.h $(DESTDIR)$(includedir)/fltk
echo "Installing FLTK1.1 emulation include files in $(includedir)/FL..."
- $(RMDIR) $(DESTDIR)$(includedir)/FL
$(MKDIR) $(DESTDIR)$(includedir)/FL
- $(CP) ../FL/*.H ../FL/*.h $(DESTDIR)$(includedir)/FL
- $(CHMOD) 755 $(DESTDIR)$(includedir)/FL
- $(CHMOD) 644 $(DESTDIR)$(includedir)/FL/*
+ $(BSD_INSTALL_DATA) ../FL/*.H ../FL/*.h $(DESTDIR)$(includedir)/FL
ifneq (,$(wildcard ../fltk-config))
echo "Installing fltk-config in $(bindir)..."
$(MKDIR) $(DESTDIR)$(bindir)
- $(CP) ../fltk-config $(DESTDIR)$(bindir)
- $(CHMOD) 755 $(DESTDIR)$(bindir)/fltk-config
+ $(BSD_INSTALL_SCRIPT) ../fltk-config $(DESTDIR)$(bindir)
endif
ifneq (,$(wildcard ../lib/$(LIBNAME)))
echo "Installing static core library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(LIBNAME)
- $(CP) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
endif
ifneq (,$(wildcard ../lib/$(DSONAME)))
echo "Installing shared core library in $(libdir)"
$(MKDIR) $(DESTDIR)$(libdir)
- $(RM) $(DESTDIR)$(libdir)/$(DSONAME)
$(RM) $(DESTDIR)$(libdir)/$(DSOLINK)
- $(CP) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) ../lib/$(DSONAME) $(DESTDIR)$(libdir)
$(LN) $(DSONAME) $(DESTDIR)$(libdir)/$(DSOLINK)
endif
ifeq ($(DSONAME), fltk.dll)
- $(CP) lib$(DSONAME).a $(DESTDIR)$(libdir)
+ $(BSD_INSTALL_DATA) lib$(DSONAME).a $(DESTDIR)$(libdir)
endif
#

View File

@ -0,0 +1,8 @@
FLTK is a cross-plattform C++ graphical user interface toolkit for X, OpenGL
and Microsoft Windows systems.
It is provided under the terms of the GNU Library Public License, Version 2.
This port supplies a snapshot of the current 2.0 development version.
WWW: http://www.fltk.org/

View File

@ -0,0 +1,185 @@
@comment $FreeBSD$
bin/fltk-config
bin/fluid
include/FL/Enumerations.H
include/FL/Fl.H
include/FL/Fl_Adjuster.H
include/FL/Fl_Box.H
include/FL/Fl_Browser.H
include/FL/Fl_Button.H
include/FL/Fl_Chart.H
include/FL/Fl_Check_Button.H
include/FL/Fl_Choice.H
include/FL/Fl_Clock.H
include/FL/Fl_Color_Chooser.H
include/FL/Fl_Counter.H
include/FL/Fl_Dial.H
include/FL/Fl_Double_Window.H
include/FL/Fl_File_Chooser.H
include/FL/Fl_Gl_Window.H
include/FL/Fl_Group.H
include/FL/Fl_Hold_Browser.H
include/FL/Fl_Hor_Slider.H
include/FL/Fl_Hor_Value_Slider.H
include/FL/Fl_Input.H
include/FL/Fl_Int_Input.H
include/FL/Fl_Light_Button.H
include/FL/Fl_Menu_.H
include/FL/Fl_Menu_Bar.H
include/FL/Fl_Menu_Button.H
include/FL/Fl_Menu_Item.H
include/FL/Fl_Output.H
include/FL/Fl_Overlay_Window.H
include/FL/Fl_Return_Button.H
include/FL/Fl_Roller.H
include/FL/Fl_Scroll.H
include/FL/Fl_Scrollbar.H
include/FL/Fl_Select_Browser.H
include/FL/Fl_Single_Window.H
include/FL/Fl_Slider.H
include/FL/Fl_Tabs.H
include/FL/Fl_Text_Buffer.H
include/FL/Fl_Text_Editor.H
include/FL/Fl_Tile.H
include/FL/Fl_Toggle_Button.H
include/FL/Fl_Toggle_Light_Button.H
include/FL/Fl_Valuator.H
include/FL/Fl_Value_Input.H
include/FL/Fl_Value_Output.H
include/FL/Fl_Value_Slider.H
include/FL/Fl_Widget.H
include/FL/Fl_Window.H
include/FL/filename.H
include/FL/fl_ask.H
include/FL/fl_draw.H
include/FL/fl_message.H
include/FL/forms.H
include/FL/gl.h
include/FL/glut.H
include/FL/math.h
include/FL/menubar.h
include/FL/x.H
@dirrm include/FL
include/fltk/Adjuster.h
include/fltk/AlignGroup.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/StringList.h
include/fltk/Style.h
include/fltk/StyleSet.h
include/fltk/Symbol.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/Tooltip.h
include/fltk/Valuator.h
include/fltk/ValueInput.h
include/fltk/ValueOutput.h
include/fltk/ValueSlider.h
include/fltk/Widget.h
include/fltk/Window.h
include/fltk/WordwrapInput.h
include/fltk/WordwrapOutput.h
include/fltk/ask.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/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.h
include/fltk/math.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/xbmImage.h
include/fltk/xpmImage.h
@dirrm include/fltk
lib/libfltk.a
lib/libfltk_gl.a
lib/libfltk_images.a