1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Objective Caml interface to Tk

LablTk is an interface to the Tcl/Tk GUI framework. It allows to
develop GUI applications in a speedy and type safe way. A legacy
Camltk interface is included. The OCamlBrowser library viewer is
also part of this project.

WWW: https://forge.ocamlcore.org/projects/labltk/

PR:		195737
Submitted by:	Michael Grunewald <michipili at gmail.com>
This commit is contained in:
Guido Falsi 2015-05-04 15:39:41 +00:00
parent ae7699ae20
commit cb214a8a7b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385412
7 changed files with 428 additions and 0 deletions

View File

@ -122,6 +122,7 @@
SUBDIR += neXtaw
SUBDIR += nucleo
SUBDIR += ocaml-lablgtk2
SUBDIR += ocaml-labltk
SUBDIR += open-motif
SUBDIR += otk
SUBDIR += p5-Alien-wxWidgets

View File

@ -0,0 +1,39 @@
# Created by: Michael Grünewald <michipili@gmail.com>
# $FreeBSD$
PORTNAME= labltk
PORTVERSION= 8.06.0
CATEGORIES= x11-toolkits
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1455/
PKGNAMEPREFIX= ocaml-
MAINTAINER= michipili@gmail.com
COMMENT= Objective Caml interface to Tk
LICENSE= LGPL20
USES= gmake tk:84,85
HAS_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
MAKE_ENV+= STAGEDIR="${STAGEDIR}"
USE_OCAML= yes
ALL_TARGET= all opt
post-patch:
@${FIND} ${WRKSRC} -name 'Makefile*' | ${XARGS} ${REINPLACE_CMD} \
-e 's/$$(INSTALLDIR)/$$(STAGEDIR)$$(INSTALLDIR)/g' \
-e 's/$$(INSTALLBINDIR)/$$(STAGEDIR)$$(INSTALLBINDIR)/g' \
-e 's/$$(STUBLIBDIR)/$$(STAGEDIR)$$(STUBLIBDIR)/g' \
-e 's/mkdir /& -p /g'
@${REINPLACE_CMD} -e 's|%%SCRIPTBASE%%|${PREFIX}/lib/ocaml/labltk/|g' \
${WRKSRC}/lib/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs
post-install:
${INSTALL_DATA} ${WRKSRC}/support/META ${STAGEDIR}${PREFIX}/lib/ocaml/${PORTNAME}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs/dlllabltk.so
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (labltk-8.06.0.tar.gz) = 71997dbd6c36e4eb064484dc73037d4bd10e465e180fead07a4b193d21af9764
SIZE (labltk-8.06.0.tar.gz) = 368790

View File

@ -0,0 +1,21 @@
--- configure.orig 2014-09-18 04:08:33 UTC
+++ configure
@@ -44,10 +44,6 @@ exec 3>&1
# Parse command-line arguments
-if echo "$configure_options" | grep -q -e '--\?[a-zA-Z0-9-]\+='; then
- err "Arguments to this script look like '-libdir /foo/bar', not '-libdir=/foo/bar' (note the '=')."
-fi
-
while : ; do
case "$1" in
"") break;;
@@ -222,6 +218,7 @@ if test $has_tk = true && test -z "$tk_l
esac
if test -n "$tklibdir"; then
case "$system" in
+ freebsd) tk_libs="-L$tklibdir" ;;
*bsd*) tk_libs="-R$tklibdir -L$tklibdir" ;;
*) tk_libs="-L$tklibdir" ;;
esac

View File

@ -0,0 +1,18 @@
--- lib/Makefile.orig 2014-09-18 04:08:33 UTC
+++ lib/Makefile
@@ -75,7 +75,7 @@ $(LIBNAME)top$(EXE) : $(LIBNAME).cma ../
$(LIBNAME): Makefile
@echo Generate $@
@echo "#!/bin/sh" > $@
- @echo 'exec $(INSTALLDIR)/$(LIBNAME)top$(EXE) -I $(INSTALLDIR) "$$@"' >> $@
+ @echo 'exec %%SCRIPTBASE%%/$(LIBNAME)top$(EXE) -I %%SCRIPTBASE%% "$$@"' >> $@
install-script: $(LIBNAME)
cp $(LIBNAME) $(INSTALLBINDIR)
@@ -114,4 +114,4 @@ installopt:
cd $(INSTALLDIR); $(RANLIB) $(LIBNAME).$(A)
chmod 644 $(INSTALLDIR)/$(LIBNAME).cmxa
chmod 644 $(INSTALLDIR)/$(LIBNAME).$(A)
-endif
\ No newline at end of file
+endif

View File

@ -0,0 +1,8 @@
Objective Caml interface to Tk
LablTk is an interface to the Tcl/Tk GUI framework. It allows to
develop GUI applications in a speedy and type safe way. A legacy
Camltk interface is included. The OCamlBrowser library viewer is
also part of this project.
WWW: https://forge.ocamlcore.org/projects/labltk/

View File

@ -0,0 +1,339 @@
bin/labltk
bin/ocamlbrowser
lib/ocaml/labltk/balloon.cmi
lib/ocaml/labltk/balloon.cmx
lib/ocaml/labltk/balloon.mli
lib/ocaml/labltk/bell.cmi
lib/ocaml/labltk/bell.cmx
lib/ocaml/labltk/bell.mli
lib/ocaml/labltk/button.cmi
lib/ocaml/labltk/button.cmx
lib/ocaml/labltk/button.mli
lib/ocaml/labltk/cBell.cmi
lib/ocaml/labltk/cBell.cmx
lib/ocaml/labltk/cBell.mli
lib/ocaml/labltk/cButton.cmi
lib/ocaml/labltk/cButton.cmx
lib/ocaml/labltk/cButton.mli
lib/ocaml/labltk/cCanvas.cmi
lib/ocaml/labltk/cCanvas.cmx
lib/ocaml/labltk/cCanvas.mli
lib/ocaml/labltk/cCheckbutton.cmi
lib/ocaml/labltk/cCheckbutton.cmx
lib/ocaml/labltk/cCheckbutton.mli
lib/ocaml/labltk/cClipboard.cmi
lib/ocaml/labltk/cClipboard.cmx
lib/ocaml/labltk/cClipboard.mli
lib/ocaml/labltk/cDialog.cmi
lib/ocaml/labltk/cDialog.cmx
lib/ocaml/labltk/cDialog.mli
lib/ocaml/labltk/cEncoding.cmi
lib/ocaml/labltk/cEncoding.cmx
lib/ocaml/labltk/cEncoding.mli
lib/ocaml/labltk/cEntry.cmi
lib/ocaml/labltk/cEntry.cmx
lib/ocaml/labltk/cEntry.mli
lib/ocaml/labltk/cFocus.cmi
lib/ocaml/labltk/cFocus.cmx
lib/ocaml/labltk/cFocus.mli
lib/ocaml/labltk/cFont.cmi
lib/ocaml/labltk/cFont.cmx
lib/ocaml/labltk/cFont.mli
lib/ocaml/labltk/cFrame.cmi
lib/ocaml/labltk/cFrame.cmx
lib/ocaml/labltk/cFrame.mli
lib/ocaml/labltk/cGrab.cmi
lib/ocaml/labltk/cGrab.cmx
lib/ocaml/labltk/cGrab.mli
lib/ocaml/labltk/cGrid.cmi
lib/ocaml/labltk/cGrid.cmx
lib/ocaml/labltk/cGrid.mli
lib/ocaml/labltk/cImage.cmi
lib/ocaml/labltk/cImage.cmx
lib/ocaml/labltk/cImage.mli
lib/ocaml/labltk/cImagebitmap.cmi
lib/ocaml/labltk/cImagebitmap.cmx
lib/ocaml/labltk/cImagebitmap.mli
lib/ocaml/labltk/cImagephoto.cmi
lib/ocaml/labltk/cImagephoto.cmx
lib/ocaml/labltk/cImagephoto.mli
lib/ocaml/labltk/cLabel.cmi
lib/ocaml/labltk/cLabel.cmx
lib/ocaml/labltk/cLabel.mli
lib/ocaml/labltk/cListbox.cmi
lib/ocaml/labltk/cListbox.cmx
lib/ocaml/labltk/cListbox.mli
lib/ocaml/labltk/cMenu.cmi
lib/ocaml/labltk/cMenu.cmx
lib/ocaml/labltk/cMenu.mli
lib/ocaml/labltk/cMenubutton.cmi
lib/ocaml/labltk/cMenubutton.cmx
lib/ocaml/labltk/cMenubutton.mli
lib/ocaml/labltk/cMessage.cmi
lib/ocaml/labltk/cMessage.cmx
lib/ocaml/labltk/cMessage.mli
lib/ocaml/labltk/cOption.cmi
lib/ocaml/labltk/cOption.cmx
lib/ocaml/labltk/cOption.mli
lib/ocaml/labltk/cOptionmenu.cmi
lib/ocaml/labltk/cOptionmenu.cmx
lib/ocaml/labltk/cOptionmenu.mli
lib/ocaml/labltk/cPack.cmi
lib/ocaml/labltk/cPack.cmx
lib/ocaml/labltk/cPack.mli
lib/ocaml/labltk/cPalette.cmi
lib/ocaml/labltk/cPalette.cmx
lib/ocaml/labltk/cPalette.mli
lib/ocaml/labltk/cPixmap.cmi
lib/ocaml/labltk/cPixmap.cmx
lib/ocaml/labltk/cPixmap.mli
lib/ocaml/labltk/cPlace.cmi
lib/ocaml/labltk/cPlace.cmx
lib/ocaml/labltk/cPlace.mli
lib/ocaml/labltk/cRadiobutton.cmi
lib/ocaml/labltk/cRadiobutton.cmx
lib/ocaml/labltk/cRadiobutton.mli
lib/ocaml/labltk/cResource.cmi
lib/ocaml/labltk/cResource.cmx
lib/ocaml/labltk/cResource.mli
lib/ocaml/labltk/cScale.cmi
lib/ocaml/labltk/cScale.cmx
lib/ocaml/labltk/cScale.mli
lib/ocaml/labltk/cScrollbar.cmi
lib/ocaml/labltk/cScrollbar.cmx
lib/ocaml/labltk/cScrollbar.mli
lib/ocaml/labltk/cSelection.cmi
lib/ocaml/labltk/cSelection.cmx
lib/ocaml/labltk/cSelection.mli
lib/ocaml/labltk/cText.cmi
lib/ocaml/labltk/cText.cmx
lib/ocaml/labltk/cText.mli
lib/ocaml/labltk/cTk.cmi
lib/ocaml/labltk/cTk.cmx
lib/ocaml/labltk/cTkvars.cmi
lib/ocaml/labltk/cTkvars.cmx
lib/ocaml/labltk/cTkvars.mli
lib/ocaml/labltk/cTkwait.cmi
lib/ocaml/labltk/cTkwait.cmx
lib/ocaml/labltk/cTkwait.mli
lib/ocaml/labltk/cToplevel.cmi
lib/ocaml/labltk/cToplevel.cmx
lib/ocaml/labltk/cToplevel.mli
lib/ocaml/labltk/cWinfo.cmi
lib/ocaml/labltk/cWinfo.cmx
lib/ocaml/labltk/cWinfo.mli
lib/ocaml/labltk/cWm.cmi
lib/ocaml/labltk/cWm.cmx
lib/ocaml/labltk/cWm.mli
lib/ocaml/labltk/camltk.cmi
lib/ocaml/labltk/camltk.cmx
lib/ocaml/labltk/canvas.cmi
lib/ocaml/labltk/canvas.cmx
lib/ocaml/labltk/canvas.mli
lib/ocaml/labltk/checkbutton.cmi
lib/ocaml/labltk/checkbutton.cmx
lib/ocaml/labltk/checkbutton.mli
lib/ocaml/labltk/clipboard.cmi
lib/ocaml/labltk/clipboard.cmx
lib/ocaml/labltk/clipboard.mli
lib/ocaml/labltk/dialog.cmi
lib/ocaml/labltk/dialog.cmx
lib/ocaml/labltk/dialog.mli
lib/ocaml/labltk/encoding.cmi
lib/ocaml/labltk/encoding.cmx
lib/ocaml/labltk/encoding.mli
lib/ocaml/labltk/entry.cmi
lib/ocaml/labltk/entry.cmx
lib/ocaml/labltk/entry.mli
lib/ocaml/labltk/fileevent.cmi
lib/ocaml/labltk/fileevent.cmx
lib/ocaml/labltk/fileevent.mli
lib/ocaml/labltk/fileselect.cmi
lib/ocaml/labltk/fileselect.cmx
lib/ocaml/labltk/fileselect.mli
lib/ocaml/labltk/focus.cmi
lib/ocaml/labltk/focus.cmx
lib/ocaml/labltk/focus.mli
lib/ocaml/labltk/font.cmi
lib/ocaml/labltk/font.cmx
lib/ocaml/labltk/font.mli
lib/ocaml/labltk/frame.cmi
lib/ocaml/labltk/frame.cmx
lib/ocaml/labltk/frame.mli
lib/ocaml/labltk/frx_after.cmi
lib/ocaml/labltk/frx_after.cmx
lib/ocaml/labltk/frx_after.mli
lib/ocaml/labltk/frx_color.cmi
lib/ocaml/labltk/frx_color.cmx
lib/ocaml/labltk/frx_color.mli
lib/ocaml/labltk/frx_ctext.cmi
lib/ocaml/labltk/frx_ctext.cmx
lib/ocaml/labltk/frx_ctext.mli
lib/ocaml/labltk/frx_dialog.cmi
lib/ocaml/labltk/frx_dialog.cmx
lib/ocaml/labltk/frx_dialog.mli
lib/ocaml/labltk/frx_entry.cmi
lib/ocaml/labltk/frx_entry.cmx
lib/ocaml/labltk/frx_entry.mli
lib/ocaml/labltk/frx_fillbox.cmi
lib/ocaml/labltk/frx_fillbox.cmx
lib/ocaml/labltk/frx_fillbox.mli
lib/ocaml/labltk/frx_fit.cmi
lib/ocaml/labltk/frx_fit.cmx
lib/ocaml/labltk/frx_fit.mli
lib/ocaml/labltk/frx_focus.cmi
lib/ocaml/labltk/frx_focus.cmx
lib/ocaml/labltk/frx_focus.mli
lib/ocaml/labltk/frx_font.cmi
lib/ocaml/labltk/frx_font.cmx
lib/ocaml/labltk/frx_font.mli
lib/ocaml/labltk/frx_lbutton.mli
lib/ocaml/labltk/frx_listbox.cmi
lib/ocaml/labltk/frx_listbox.cmx
lib/ocaml/labltk/frx_listbox.mli
lib/ocaml/labltk/frx_mem.cmi
lib/ocaml/labltk/frx_mem.cmx
lib/ocaml/labltk/frx_mem.mli
lib/ocaml/labltk/frx_misc.cmi
lib/ocaml/labltk/frx_misc.cmx
lib/ocaml/labltk/frx_misc.mli
lib/ocaml/labltk/frx_req.cmi
lib/ocaml/labltk/frx_req.cmx
lib/ocaml/labltk/frx_req.mli
lib/ocaml/labltk/frx_rpc.cmi
lib/ocaml/labltk/frx_rpc.cmx
lib/ocaml/labltk/frx_rpc.mli
lib/ocaml/labltk/frx_selection.cmi
lib/ocaml/labltk/frx_selection.cmx
lib/ocaml/labltk/frx_selection.mli
lib/ocaml/labltk/frx_synth.cmi
lib/ocaml/labltk/frx_synth.cmx
lib/ocaml/labltk/frx_synth.mli
lib/ocaml/labltk/frx_text.cmi
lib/ocaml/labltk/frx_text.cmx
lib/ocaml/labltk/frx_text.mli
lib/ocaml/labltk/frx_toplevel.mli
lib/ocaml/labltk/frx_widget.cmi
lib/ocaml/labltk/frx_widget.cmx
lib/ocaml/labltk/frx_widget.mli
lib/ocaml/labltk/frxlib.a
lib/ocaml/labltk/frxlib.cma
lib/ocaml/labltk/frxlib.cmxa
lib/ocaml/labltk/grab.cmi
lib/ocaml/labltk/grab.cmx
lib/ocaml/labltk/grab.mli
lib/ocaml/labltk/grid.cmi
lib/ocaml/labltk/grid.cmx
lib/ocaml/labltk/grid.mli
lib/ocaml/labltk/image.cmi
lib/ocaml/labltk/image.cmx
lib/ocaml/labltk/image.mli
lib/ocaml/labltk/imagebitmap.cmi
lib/ocaml/labltk/imagebitmap.cmx
lib/ocaml/labltk/imagebitmap.mli
lib/ocaml/labltk/imagephoto.cmi
lib/ocaml/labltk/imagephoto.cmx
lib/ocaml/labltk/imagephoto.mli
lib/ocaml/labltk/jpf_font.cmi
lib/ocaml/labltk/jpf_font.cmx
lib/ocaml/labltk/jpf_font.mli
lib/ocaml/labltk/jpflib.a
lib/ocaml/labltk/jpflib.cma
lib/ocaml/labltk/jpflib.cmxa
lib/ocaml/labltk/label.cmi
lib/ocaml/labltk/label.cmx
lib/ocaml/labltk/label.mli
lib/ocaml/labltk/labltk.a
lib/ocaml/labltk/labltk.cma
lib/ocaml/labltk/labltk.cmi
lib/ocaml/labltk/labltk.cmx
lib/ocaml/labltk/labltk.cmxa
lib/ocaml/labltk/labltktop
lib/ocaml/labltk/liblabltk.a
lib/ocaml/labltk/listbox.cmi
lib/ocaml/labltk/listbox.cmx
lib/ocaml/labltk/listbox.mli
lib/ocaml/labltk/menu.cmi
lib/ocaml/labltk/menu.cmx
lib/ocaml/labltk/menu.mli
lib/ocaml/labltk/menubutton.cmi
lib/ocaml/labltk/menubutton.cmx
lib/ocaml/labltk/menubutton.mli
lib/ocaml/labltk/message.cmi
lib/ocaml/labltk/message.cmx
lib/ocaml/labltk/message.mli
lib/ocaml/labltk/option.cmi
lib/ocaml/labltk/option.cmx
lib/ocaml/labltk/option.mli
lib/ocaml/labltk/optionmenu.cmi
lib/ocaml/labltk/optionmenu.cmx
lib/ocaml/labltk/optionmenu.mli
lib/ocaml/labltk/pack.cmi
lib/ocaml/labltk/pack.cmx
lib/ocaml/labltk/pack.mli
lib/ocaml/labltk/palette.cmi
lib/ocaml/labltk/palette.cmx
lib/ocaml/labltk/palette.mli
lib/ocaml/labltk/pixmap.cmi
lib/ocaml/labltk/pixmap.cmx
lib/ocaml/labltk/pixmap.mli
lib/ocaml/labltk/place.cmi
lib/ocaml/labltk/place.cmx
lib/ocaml/labltk/place.mli
lib/ocaml/labltk/pp
lib/ocaml/labltk/protocol.cmi
lib/ocaml/labltk/protocol.cmx
lib/ocaml/labltk/protocol.mli
lib/ocaml/labltk/radiobutton.cmi
lib/ocaml/labltk/radiobutton.cmx
lib/ocaml/labltk/radiobutton.mli
lib/ocaml/labltk/rawwidget.cmi
lib/ocaml/labltk/rawwidget.cmx
lib/ocaml/labltk/rawwidget.mli
lib/ocaml/labltk/scale.cmi
lib/ocaml/labltk/scale.cmx
lib/ocaml/labltk/scale.mli
lib/ocaml/labltk/scrollbar.cmi
lib/ocaml/labltk/scrollbar.cmx
lib/ocaml/labltk/scrollbar.mli
lib/ocaml/labltk/selection.cmi
lib/ocaml/labltk/selection.cmx
lib/ocaml/labltk/selection.mli
lib/ocaml/labltk/shell.cmi
lib/ocaml/labltk/shell.cmx
lib/ocaml/labltk/shell.mli
lib/ocaml/labltk/text.cmi
lib/ocaml/labltk/text.cmx
lib/ocaml/labltk/text.mli
lib/ocaml/labltk/textvariable.cmi
lib/ocaml/labltk/textvariable.cmx
lib/ocaml/labltk/textvariable.mli
lib/ocaml/labltk/timer.cmi
lib/ocaml/labltk/timer.cmx
lib/ocaml/labltk/timer.mli
lib/ocaml/labltk/tk.cmi
lib/ocaml/labltk/tk.cmx
lib/ocaml/labltk/tkcompiler
lib/ocaml/labltk/tkthread.cmi
lib/ocaml/labltk/tkthread.cmo
lib/ocaml/labltk/tkthread.mli
lib/ocaml/labltk/tkvars.cmi
lib/ocaml/labltk/tkvars.cmx
lib/ocaml/labltk/tkvars.mli
lib/ocaml/labltk/tkwait.cmi
lib/ocaml/labltk/tkwait.cmx
lib/ocaml/labltk/tkwait.mli
lib/ocaml/labltk/toplevel.cmi
lib/ocaml/labltk/toplevel.cmx
lib/ocaml/labltk/toplevel.mli
lib/ocaml/labltk/widget.cmi
lib/ocaml/labltk/widget.cmx
lib/ocaml/labltk/widget.mli
lib/ocaml/labltk/winfo.cmi
lib/ocaml/labltk/winfo.cmx
lib/ocaml/labltk/winfo.mli
lib/ocaml/labltk/wm.cmi
lib/ocaml/labltk/wm.cmx
lib/ocaml/labltk/wm.mli
lib/ocaml/labltk/META
lib/ocaml/stublibs/dlllabltk.so