summaryrefslogtreecommitdiff
path: root/x11/lablgtk
diff options
context:
space:
mode:
authordillo <dillo>2002-10-16 16:40:24 +0000
committerdillo <dillo>2002-10-16 16:40:24 +0000
commit27d32394090487d4d396f729efd239bfa4c23fd2 (patch)
tree472c9f709a5701fe1df534b0ac59896b02783945 /x11/lablgtk
parent4be2f2c65a350eb125f19463025849a94af3e71f (diff)
downloadpkgsrc-27d32394090487d4d396f729efd239bfa4c23fd2.tar.gz
initial import of lablgtk 1.2.5
LablGTK is is an Objective Caml interface to gtk+.
Diffstat (limited to 'x11/lablgtk')
-rw-r--r--x11/lablgtk/DESCR6
-rw-r--r--x11/lablgtk/Makefile26
-rw-r--r--x11/lablgtk/PLIST130
-rw-r--r--x11/lablgtk/buildlink2.mk23
-rw-r--r--x11/lablgtk/distinfo5
-rw-r--r--x11/lablgtk/patches/patch-aa61
6 files changed, 251 insertions, 0 deletions
diff --git a/x11/lablgtk/DESCR b/x11/lablgtk/DESCR
new file mode 100644
index 00000000000..0abb1828303
--- /dev/null
+++ b/x11/lablgtk/DESCR
@@ -0,0 +1,6 @@
+LablGTK is is an Objective Caml interface to gtk+.
+
+It uses the rich type system of Objective Caml 3 to provide a
+strongly typed, yet very comfortable, object-oriented interface to
+gtk+. This is not that easy if you know the dynamic typing approach
+taken by gtk+.
diff --git a/x11/lablgtk/Makefile b/x11/lablgtk/Makefile
new file mode 100644
index 00000000000..ba4142391f4
--- /dev/null
+++ b/x11/lablgtk/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/10/16 16:40:24 dillo Exp $
+#
+
+DISTNAME= lablgtk-1.2.5
+CATEGORIES= x11
+MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/
+
+MAINTAINER= dillo@netbsd.org
+HOMEPAGE= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
+COMMENT= GTK+ bindings for ocaml
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+
+MAKE_ENV+= INSTALL_DATA_DIR="${INSTALL_DATA_DIR}"
+MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}"
+MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
+
+do-configure:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
+ configure USE_DOTOPT=1 USE_CC=1 CC=${CC}
+
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../lang/ocaml/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/lablgtk/PLIST b/x11/lablgtk/PLIST
new file mode 100644
index 00000000000..f3894b3751c
--- /dev/null
+++ b/x11/lablgtk/PLIST
@@ -0,0 +1,130 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/16 16:40:25 dillo Exp $
+bin/lablgtk
+lib/ocaml/lablgtk/gBin.cmi
+lib/ocaml/lablgtk/gBin.ml
+lib/ocaml/lablgtk/gBin.mli
+lib/ocaml/lablgtk/gButton.cmi
+lib/ocaml/lablgtk/gButton.ml
+lib/ocaml/lablgtk/gButton.mli
+lib/ocaml/lablgtk/gContainer.cmi
+lib/ocaml/lablgtk/gContainer.ml
+lib/ocaml/lablgtk/gContainer.mli
+lib/ocaml/lablgtk/gData.cmi
+lib/ocaml/lablgtk/gData.ml
+lib/ocaml/lablgtk/gData.mli
+lib/ocaml/lablgtk/gDraw.cmi
+lib/ocaml/lablgtk/gDraw.ml
+lib/ocaml/lablgtk/gDraw.mli
+lib/ocaml/lablgtk/gEdit.cmi
+lib/ocaml/lablgtk/gEdit.ml
+lib/ocaml/lablgtk/gEdit.mli
+lib/ocaml/lablgtk/gList.cmi
+lib/ocaml/lablgtk/gList.ml
+lib/ocaml/lablgtk/gList.mli
+lib/ocaml/lablgtk/gMain.cmi
+lib/ocaml/lablgtk/gMain.ml
+lib/ocaml/lablgtk/gMain.mli
+lib/ocaml/lablgtk/gMenu.cmi
+lib/ocaml/lablgtk/gMenu.ml
+lib/ocaml/lablgtk/gMenu.mli
+lib/ocaml/lablgtk/gMisc.cmi
+lib/ocaml/lablgtk/gMisc.ml
+lib/ocaml/lablgtk/gMisc.mli
+lib/ocaml/lablgtk/gObj.cmi
+lib/ocaml/lablgtk/gObj.ml
+lib/ocaml/lablgtk/gObj.mli
+lib/ocaml/lablgtk/gPack.cmi
+lib/ocaml/lablgtk/gPack.ml
+lib/ocaml/lablgtk/gPack.mli
+lib/ocaml/lablgtk/gRange.cmi
+lib/ocaml/lablgtk/gRange.ml
+lib/ocaml/lablgtk/gRange.mli
+lib/ocaml/lablgtk/gToolbox.cmi
+lib/ocaml/lablgtk/gToolbox.ml
+lib/ocaml/lablgtk/gToolbox.mli
+lib/ocaml/lablgtk/gTree.cmi
+lib/ocaml/lablgtk/gTree.ml
+lib/ocaml/lablgtk/gTree.mli
+lib/ocaml/lablgtk/gUtil.cmi
+lib/ocaml/lablgtk/gUtil.ml
+lib/ocaml/lablgtk/gUtil.mli
+lib/ocaml/lablgtk/gWindow.cmi
+lib/ocaml/lablgtk/gWindow.ml
+lib/ocaml/lablgtk/gWindow.mli
+lib/ocaml/lablgtk/gaux.cmi
+lib/ocaml/lablgtk/gaux.ml
+lib/ocaml/lablgtk/gdk.cmi
+lib/ocaml/lablgtk/gdk.ml
+lib/ocaml/lablgtk/gdk.mli
+lib/ocaml/lablgtk/gdkEvent.cmi
+lib/ocaml/lablgtk/gdkEvent.ml
+lib/ocaml/lablgtk/gdkKeysyms.cmi
+lib/ocaml/lablgtk/gdkKeysyms.ml
+lib/ocaml/lablgtk/gdkPixbuf.mli
+lib/ocaml/lablgtk/gdk_tags.h
+lib/ocaml/lablgtk/gdkprivate-win32.h
+lib/ocaml/lablgtk/glGtk.mli
+lib/ocaml/lablgtk/glade.mli
+lib/ocaml/lablgtk/glib.cmi
+lib/ocaml/lablgtk/glib.ml
+lib/ocaml/lablgtk/glib_tags.h
+lib/ocaml/lablgtk/gpointer.cmi
+lib/ocaml/lablgtk/gpointer.ml
+lib/ocaml/lablgtk/gpointer.mli
+lib/ocaml/lablgtk/gtk.cmi
+lib/ocaml/lablgtk/gtk.ml
+lib/ocaml/lablgtk/gtkArgv.cmi
+lib/ocaml/lablgtk/gtkArgv.ml
+lib/ocaml/lablgtk/gtkBase.cmi
+lib/ocaml/lablgtk/gtkBase.ml
+lib/ocaml/lablgtk/gtkBin.cmi
+lib/ocaml/lablgtk/gtkBin.ml
+lib/ocaml/lablgtk/gtkButton.cmi
+lib/ocaml/lablgtk/gtkButton.ml
+lib/ocaml/lablgtk/gtkData.cmi
+lib/ocaml/lablgtk/gtkData.ml
+lib/ocaml/lablgtk/gtkEdit.cmi
+lib/ocaml/lablgtk/gtkEdit.ml
+lib/ocaml/lablgtk/gtkInit.cmi
+lib/ocaml/lablgtk/gtkInit.cmo
+lib/ocaml/lablgtk/gtkInit.ml
+lib/ocaml/lablgtk/gtkList.cmi
+lib/ocaml/lablgtk/gtkList.ml
+lib/ocaml/lablgtk/gtkMain.cmi
+lib/ocaml/lablgtk/gtkMain.ml
+lib/ocaml/lablgtk/gtkMenu.cmi
+lib/ocaml/lablgtk/gtkMenu.ml
+lib/ocaml/lablgtk/gtkMisc.cmi
+lib/ocaml/lablgtk/gtkMisc.ml
+lib/ocaml/lablgtk/gtkNew.cmi
+lib/ocaml/lablgtk/gtkNew.ml
+lib/ocaml/lablgtk/gtkPack.cmi
+lib/ocaml/lablgtk/gtkPack.ml
+lib/ocaml/lablgtk/gtkRange.cmi
+lib/ocaml/lablgtk/gtkRange.ml
+lib/ocaml/lablgtk/gtkSignal.cmi
+lib/ocaml/lablgtk/gtkSignal.ml
+lib/ocaml/lablgtk/gtkSignal.mli
+lib/ocaml/lablgtk/gtkThInit.cmo
+lib/ocaml/lablgtk/gtkThInit.ml
+lib/ocaml/lablgtk/gtkThread.cmi
+lib/ocaml/lablgtk/gtkThread.cmo
+lib/ocaml/lablgtk/gtkThread.ml
+lib/ocaml/lablgtk/gtkThread.mli
+lib/ocaml/lablgtk/gtkTree.cmi
+lib/ocaml/lablgtk/gtkTree.ml
+lib/ocaml/lablgtk/gtkWindow.cmi
+lib/ocaml/lablgtk/gtkWindow.ml
+lib/ocaml/lablgtk/gtk_tags.h
+lib/ocaml/lablgtk/lablgtk.cma
+lib/ocaml/lablgtk/lablgtktop
+lib/ocaml/lablgtk/lablgtktop_t
+lib/ocaml/lablgtk/liblablgtk.a
+lib/ocaml/lablgtk/ml_gdk.h
+lib/ocaml/lablgtk/ml_glib.h
+lib/ocaml/lablgtk/ml_gpointer.h
+lib/ocaml/lablgtk/ml_gtk.h
+lib/ocaml/lablgtk/varcc
+lib/ocaml/lablgtk/wrappers.h
+lib/ocaml/lablgtk/xml_lexer.mli
+@dirrm lib/ocaml/lablgtk
diff --git a/x11/lablgtk/buildlink2.mk b/x11/lablgtk/buildlink2.mk
new file mode 100644
index 00000000000..d99df9f17b5
--- /dev/null
+++ b/x11/lablgtk/buildlink2.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/10/16 16:40:25 dillo Exp $
+#
+# This Makefile fragment is included by packages that use lablgtk.
+
+.if !defined(LABLGTK_BUILDLINK2_MK)
+LABLGTK_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= lablgtk
+BUILDLINK_DEPENDS.lablgtk?= lablgtk>=1.2.5
+BUILDLINK_PKGSRCDIR.lablgtk?= ../../dillo/lablgtk
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.lablgtk=lablgtk
+BUILDLINK_PREFIX.lablgtk_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.lablgtk+= lib/ocaml/lablgtk/*
+
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../lang/ocaml/buildlink2.mk"
+
+BUILDLINK_TARGETS+= lablgtk-buildlink
+
+lablgtk-buildlink: _BUILDLINK_USE
+
+.endif # LABLGTK_BUILDLINK2_MK
diff --git a/x11/lablgtk/distinfo b/x11/lablgtk/distinfo
new file mode 100644
index 00000000000..e4c2c66fcde
--- /dev/null
+++ b/x11/lablgtk/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/10/16 16:40:25 dillo Exp $
+
+SHA1 (lablgtk-1.2.5.tar.gz) = 3ae950864d2772c60cc1d4962e52cb22c2abac97
+Size (lablgtk-1.2.5.tar.gz) = 463565 bytes
+SHA1 (patch-aa) = e44b58cd1993583ac2857353b0f26e8764023120
diff --git a/x11/lablgtk/patches/patch-aa b/x11/lablgtk/patches/patch-aa
new file mode 100644
index 00000000000..8a17fce1aa0
--- /dev/null
+++ b/x11/lablgtk/patches/patch-aa
@@ -0,0 +1,61 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/10/16 16:40:26 dillo Exp $
+
+--- src/Makefile.orig Fri Aug 9 02:27:19 2002
++++ src/Makefile
+@@ -136,31 +136,38 @@ testcc: lablgladecc lablgtktop
+ rm -f testcc.ml
+
+ install:
+- if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
+- cp $(ALLOBJS:.cmo=.cmi) $(THOBJS:.cmo=.cmi) $(INSTALLDIR)
+- cp -p *.mli $(INSTALLDIR)
+- cp -p $(ALLOBJS:.cmo=.ml) $(ALLTHOBJS:.cmo=.ml) $(INSTALLDIR)
+- cp $(MLLIBS) $(THOBJS) $(INITOBJS) $(THINITOBJS) $(INSTALLDIR)
+- cp $(CLIBS) $(INSTALLDIR)
+- cd $(INSTALLDIR) && $(RANLIB) $(CLIBS)
+- cp lablgtktop varcc $(INSTALLDIR)
+- if test -f lablgtktop_t; then cp lablgtktop_t $(INSTALLDIR); fi
+- cp -p *.h $(INSTALLDIR)
++ if test -d $(INSTALLDIR); then : ; else ${INSTALL_DATA_DIR} ${INSTALLDIR}; fi
++ for F in $(ALLOBJS:.cmo=.cmi) $(THOBJS:.cmo=.cmi) *.mli \
++ $(ALLOBJS:.cmo=.ml) $(ALLTHOBJS:.cmo=.ml) \
++ $(MLLIBS) $(THOBJS) $(INITOBJS) $(THINITOBJS) $(CLIBS) *.h; \
++ do \
++ ${INSTALL_DATA} $$F ${INSTALLDIR}; \
++ done
++ ${INSTALL_PROGRAM} lablgtktop $(INSTALLDIR)
++ ${INSTALL_SCRIPT} varcc $(INSTALLDIR)
++ if test -f lablgtktop_t; then ${INSTALL_PROGRAM} lablgtktop_t $(INSTALLDIR); fi
+ if test -f lablgtk.cmxa; then $(MAKE) installopt; fi
+ if test -f dlllablgtk.so; then \
+- cp $(CLIBS:lib%.a=dll%.so) $(DLLDIR) || \
+- echo "Couldn't install dlls in default location"; \
++ for F in $(CLIBS:lib%.a=dll%.so); \
++ do \
++ ${INSTALL_DATA} $$F $(DLLDIR); \
++ done; \
+ fi
+- cp lablgtk $(BINDIR)
++ ${INSTALL_SCRIPT} lablgtk $(BINDIR)
+ if test -f lablgladecc; then cp lablgladecc $(BINDIR); fi
+
+ installopt:
+- cp $(MLLIBS:.cma=.cmxa) $(MLLIBS:.cma=.a) $(INSTALLDIR)
+- cd $(INSTALLDIR) && $(RANLIB) $(MLLIBS:.cma=.a)
+- cp $(ALLOBJS:.cmo=.cmx) $(INSTALLDIR)
+- cp $(INITOBJS:.cmo=.o) $(INSTALLDIR)
++ for F in $(MLLIBS:.cma=.cmxa) $(MLLIBS:.cma=.a) \
++ $(ALLOBJS:.cmo=.cmx) $(INITOBJS:.cmo=.o); \
++ do \
++ ${INSTALL_DATA} $$F $(INSTALLDIR); \
++ done
+ if test -f gtkThread.cmx; then \
+- cp $(THOBJS:.cmo=.cmx) $(THOBJS:.cmo=.o) $(INSTALLDIR); fi
++ for F in $(THOBJS:.cmo=.cmx) $(THOBJS:.cmo=.o); \
++ do \
++ ${INSTALL_DATA} $$F $(INSTALLDIR); \
++ done; \
++ fi
+
+ liblablgtk.a: $(COBJS)
+ $(LIBRARIAN) -o lablgtk $(COBJS) $(GTKLIBS)