diff options
author | perky <perky@FreeBSD.org> | 2002-06-27 12:08:41 +0000 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2002-06-27 12:08:41 +0000 |
commit | bdb62668bb07198d67a0fde67b4e290bcd49478a (patch) | |
tree | 9bd12c62cc790ef6c298d3b51b4e2bb428d3be7b /graphics | |
parent | 3061d44576a4c58823474dbff46e9dda3fd035fa (diff) | |
download | FreeBSD-ports-bdb62668bb07198d67a0fde67b4e290bcd49478a.zip FreeBSD-ports-bdb62668bb07198d67a0fde67b4e290bcd49478a.tar.gz |
Add lablgl 0.97, OpenGL interface for Objective Caml.
PR: 33961
Submitted by: Ronald Kuehn <rk@ronald.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/lablgl/Makefile | 36 | ||||
-rw-r--r-- | graphics/lablgl/distinfo | 1 | ||||
-rw-r--r-- | graphics/lablgl/files/patch-aa | 13 | ||||
-rw-r--r-- | graphics/lablgl/files/patch-ab | 39 | ||||
-rw-r--r-- | graphics/lablgl/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/lablgl/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/lablgl/pkg-plist | 81 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/Makefile | 36 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/distinfo | 1 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/files/patch-aa | 13 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/files/patch-ab | 39 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/ocaml-lablgl/pkg-plist | 81 |
15 files changed, 363 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 3be490a..5f54097 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -151,6 +151,7 @@ SUBDIR += kisomandel SUBDIR += kludge3d SUBDIR += kuickshow + SUBDIR += lablgl SUBDIR += landscape SUBDIR += lcms SUBDIR += leafpak diff --git a/graphics/lablgl/Makefile b/graphics/lablgl/Makefile new file mode 100644 index 0000000..43ac66d --- /dev/null +++ b/graphics/lablgl/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: lablgl +# Date created: 13. January 2002 +# Whom: Ronald Kuehn <rk@ronald.org> +# +# $FreeBSD$ +# + +PORTNAME= lablgl +PORTVERSION= 0.97 +CATEGORIES= graphics +MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \ + ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/ + +MAINTAINER= rk@ronald.org + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml + +USE_MESA= yes +WRKSRC= ${WRKDIR}/lablGL-${PORTVERSION} +ALL_TARGET= all opt +EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} + +post-extract: + @${CP} ${WRKSRC}/Makefile.config.ex ${WRKSRC}/Makefile.config + +post-install: + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.if !defined(NO_PORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/lablgl/distinfo b/graphics/lablgl/distinfo new file mode 100644 index 0000000..bf8af01 --- /dev/null +++ b/graphics/lablgl/distinfo @@ -0,0 +1 @@ +MD5 (lablgl-0.97.tar.gz) = e084a62ff47492cade8887f3f6b60c5b diff --git a/graphics/lablgl/files/patch-aa b/graphics/lablgl/files/patch-aa new file mode 100644 index 0000000..5ed7371 --- /dev/null +++ b/graphics/lablgl/files/patch-aa @@ -0,0 +1,13 @@ +--- Makefile.orig Thu Nov 1 09:44:16 2001 ++++ Makefile Sun Jan 13 19:27:18 2002 +@@ -104,8 +104,8 @@ + + real-install: + if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi +- if test `grep -s -c '^$(INSTALLDIR)$$' $(LIBDIR)/ld.conf || :` = 0; \ +- then echo $(INSTALLDIR) >> $(LIBDIR)/ld.conf; fi ++# if test `grep -s -c '^$(INSTALLDIR)$$' $(LIBDIR)/ld.conf || :` = 0; \ ++# then echo $(INSTALLDIR) >> $(LIBDIR)/ld.conf; fi + cp $(MLOBJS:.cmo=.cmi) $(INSTALLDIR) + cp $(MLOBJS:.cmo=.mli) $(INSTALLDIR) + cp liblablgl.a lablgl.cma libtogl.a togl.cma $(INSTALLDIR) diff --git a/graphics/lablgl/files/patch-ab b/graphics/lablgl/files/patch-ab new file mode 100644 index 0000000..26bc4cd --- /dev/null +++ b/graphics/lablgl/files/patch-ab @@ -0,0 +1,39 @@ +--- Makefile.config.orig Sun Jan 13 19:30:59 2002 ++++ Makefile.config Sun Jan 13 19:44:33 2002 +@@ -7,22 +7,22 @@ + ##### Adjust these always + + # Where to put the lablgl script +-BINDIR = /usr/local/bin ++BINDIR = ${PREFIX}/bin + + # Where to find X headers +-XINCLUDES = -I/usr/X11R6/include ++XINCLUDES = -I${X11BASE}/include + # X libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0) + #XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11 + + # Where to find Tcl/Tk headers + # This must the same version as for LablTk +-TKINCLUDES = -I/usr/local/include ++TKINCLUDES = -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 + # Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0) +-#TKLIBS = -L/usr/local/lib -ltk83 -ltcl83 ++TKLIBS = -L${LOCALBASE}/lib -ltk83 -ltcl83 + + # Where to find OpenGL/Mesa headers and libraries + GLINCLUDES = +-GLLIBS = -lGL -lGLU ++GLLIBS = -L${X11BASE}/lib -R${X11BASE}/lib -lGL -lGLU -lXmu -lXext + # The following libraries may be required (try to add them one at a time) + # GLLIBS = -lGL -lGLU -lXmu -lXext -lpthread + +@@ -45,7 +45,7 @@ + TOGLDIR = Togl + + # C Compiler options +-COPTS = -c -O ++COPTS = -c ${CFLAGS} + + ###### No need to change these + diff --git a/graphics/lablgl/pkg-comment b/graphics/lablgl/pkg-comment new file mode 100644 index 0000000..a3a9bf5 --- /dev/null +++ b/graphics/lablgl/pkg-comment @@ -0,0 +1 @@ +OpenGL interface for Objective Caml diff --git a/graphics/lablgl/pkg-descr b/graphics/lablgl/pkg-descr new file mode 100644 index 0000000..da4859e --- /dev/null +++ b/graphics/lablgl/pkg-descr @@ -0,0 +1,10 @@ +LablGL is an OpenGL interface for Objective Caml. Since it includes +support for the Togl widget, you can comfortably use it with LablTk. + +All of the GL and GLU libraries are available. Read a good book +about how to use these. Translating from OpenGL to LablGL is rather +straitforward: there is a LablGL function for each OpenGL one. For +ease of retrieving, both GL and GLU are cut in smaller modules of +related functions. + +Please see ${PREFIX}/share/doc/ocaml/lablgl/README for further information. diff --git a/graphics/lablgl/pkg-plist b/graphics/lablgl/pkg-plist new file mode 100644 index 0000000..70dc0c6 --- /dev/null +++ b/graphics/lablgl/pkg-plist @@ -0,0 +1,81 @@ +bin/lablgl +lib/ocaml/lablGL/raw.cmi +lib/ocaml/lablGL/gluMat.cmi +lib/ocaml/lablGL/gluTess.cmi +lib/ocaml/lablGL/gluQuadric.cmi +lib/ocaml/lablGL/gluNurbs.cmi +lib/ocaml/lablGL/gluMisc.cmi +lib/ocaml/lablGL/glFunc.cmi +lib/ocaml/lablGL/glDraw.cmi +lib/ocaml/lablGL/glTex.cmi +lib/ocaml/lablGL/glClear.cmi +lib/ocaml/lablGL/glPix.cmi +lib/ocaml/lablGL/glMisc.cmi +lib/ocaml/lablGL/glMat.cmi +lib/ocaml/lablGL/glMap.cmi +lib/ocaml/lablGL/glList.cmi +lib/ocaml/lablGL/glLight.cmi +lib/ocaml/lablGL/gl.cmi +lib/ocaml/lablGL/togl.cmi +lib/ocaml/lablGL/raw.mli +lib/ocaml/lablGL/gluMat.mli +lib/ocaml/lablGL/gluTess.mli +lib/ocaml/lablGL/gluQuadric.mli +lib/ocaml/lablGL/gluNurbs.mli +lib/ocaml/lablGL/gluMisc.mli +lib/ocaml/lablGL/glFunc.mli +lib/ocaml/lablGL/glDraw.mli +lib/ocaml/lablGL/glTex.mli +lib/ocaml/lablGL/glClear.mli +lib/ocaml/lablGL/glPix.mli +lib/ocaml/lablGL/glMisc.mli +lib/ocaml/lablGL/glMat.mli +lib/ocaml/lablGL/glMap.mli +lib/ocaml/lablGL/glList.mli +lib/ocaml/lablGL/glLight.mli +lib/ocaml/lablGL/gl.mli +lib/ocaml/lablGL/togl.mli +lib/ocaml/lablGL/togl.cma +lib/ocaml/lablGL/libtogl.a +lib/ocaml/lablGL/lablgl.cma +lib/ocaml/lablGL/liblablgl.a +lib/ocaml/lablGL/lablgltop +lib/ocaml/lablGL/dlltogl.so +lib/ocaml/lablGL/dlllablgl.so +lib/ocaml/lablGL/lablgl.cmxa +lib/ocaml/lablGL/gluMat.cmx +lib/ocaml/lablGL/gluTess.cmx +lib/ocaml/lablGL/gluQuadric.cmx +lib/ocaml/lablGL/gluNurbs.cmx +lib/ocaml/lablGL/gluMisc.cmx +lib/ocaml/lablGL/glFunc.cmx +lib/ocaml/lablGL/glDraw.cmx +lib/ocaml/lablGL/glTex.cmx +lib/ocaml/lablGL/glClear.cmx +lib/ocaml/lablGL/glPix.cmx +lib/ocaml/lablGL/glMisc.cmx +lib/ocaml/lablGL/glMat.cmx +lib/ocaml/lablGL/glMap.cmx +lib/ocaml/lablGL/glList.cmx +lib/ocaml/lablGL/glLight.cmx +lib/ocaml/lablGL/gl.cmx +lib/ocaml/lablGL/raw.cmx +lib/ocaml/lablGL/togl.a +lib/ocaml/lablGL/togl.cmxa +lib/ocaml/lablGL/lablgl.a +lib/ocaml/lablGL/togl.cmx +%%PORTDOCS%%share/doc/ocaml/lablgl/README +share/examples/ocaml/lablgl/Makefile +share/examples/ocaml/lablgl/README +share/examples/ocaml/lablgl/checker.ml +share/examples/ocaml/lablgl/double.ml +share/examples/ocaml/lablgl/gears.ml +share/examples/ocaml/lablgl/morph3d.ml +share/examples/ocaml/lablgl/planet.ml +share/examples/ocaml/lablgl/scene.ml +share/examples/ocaml/lablgl/simple.ml +share/examples/ocaml/lablgl/tennis.ml +share/examples/ocaml/lablgl/texturesurf.ml +@dirrm lib/ocaml/lablGL +@dirrm share/examples/ocaml/lablgl +%%PORTDOCS%%@dirrm share/doc/ocaml/lablgl diff --git a/graphics/ocaml-lablgl/Makefile b/graphics/ocaml-lablgl/Makefile new file mode 100644 index 0000000..43ac66d --- /dev/null +++ b/graphics/ocaml-lablgl/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: lablgl +# Date created: 13. January 2002 +# Whom: Ronald Kuehn <rk@ronald.org> +# +# $FreeBSD$ +# + +PORTNAME= lablgl +PORTVERSION= 0.97 +CATEGORIES= graphics +MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \ + ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/ + +MAINTAINER= rk@ronald.org + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml + +USE_MESA= yes +WRKSRC= ${WRKDIR}/lablGL-${PORTVERSION} +ALL_TARGET= all opt +EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME} + +post-extract: + @${CP} ${WRKSRC}/Makefile.config.ex ${WRKSRC}/Makefile.config + +post-install: + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.if !defined(NO_PORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/ocaml-lablgl/distinfo b/graphics/ocaml-lablgl/distinfo new file mode 100644 index 0000000..bf8af01 --- /dev/null +++ b/graphics/ocaml-lablgl/distinfo @@ -0,0 +1 @@ +MD5 (lablgl-0.97.tar.gz) = e084a62ff47492cade8887f3f6b60c5b diff --git a/graphics/ocaml-lablgl/files/patch-aa b/graphics/ocaml-lablgl/files/patch-aa new file mode 100644 index 0000000..5ed7371 --- /dev/null +++ b/graphics/ocaml-lablgl/files/patch-aa @@ -0,0 +1,13 @@ +--- Makefile.orig Thu Nov 1 09:44:16 2001 ++++ Makefile Sun Jan 13 19:27:18 2002 +@@ -104,8 +104,8 @@ + + real-install: + if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi +- if test `grep -s -c '^$(INSTALLDIR)$$' $(LIBDIR)/ld.conf || :` = 0; \ +- then echo $(INSTALLDIR) >> $(LIBDIR)/ld.conf; fi ++# if test `grep -s -c '^$(INSTALLDIR)$$' $(LIBDIR)/ld.conf || :` = 0; \ ++# then echo $(INSTALLDIR) >> $(LIBDIR)/ld.conf; fi + cp $(MLOBJS:.cmo=.cmi) $(INSTALLDIR) + cp $(MLOBJS:.cmo=.mli) $(INSTALLDIR) + cp liblablgl.a lablgl.cma libtogl.a togl.cma $(INSTALLDIR) diff --git a/graphics/ocaml-lablgl/files/patch-ab b/graphics/ocaml-lablgl/files/patch-ab new file mode 100644 index 0000000..26bc4cd --- /dev/null +++ b/graphics/ocaml-lablgl/files/patch-ab @@ -0,0 +1,39 @@ +--- Makefile.config.orig Sun Jan 13 19:30:59 2002 ++++ Makefile.config Sun Jan 13 19:44:33 2002 +@@ -7,22 +7,22 @@ + ##### Adjust these always + + # Where to put the lablgl script +-BINDIR = /usr/local/bin ++BINDIR = ${PREFIX}/bin + + # Where to find X headers +-XINCLUDES = -I/usr/X11R6/include ++XINCLUDES = -I${X11BASE}/include + # X libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0) + #XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11 + + # Where to find Tcl/Tk headers + # This must the same version as for LablTk +-TKINCLUDES = -I/usr/local/include ++TKINCLUDES = -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3 + # Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0) +-#TKLIBS = -L/usr/local/lib -ltk83 -ltcl83 ++TKLIBS = -L${LOCALBASE}/lib -ltk83 -ltcl83 + + # Where to find OpenGL/Mesa headers and libraries + GLINCLUDES = +-GLLIBS = -lGL -lGLU ++GLLIBS = -L${X11BASE}/lib -R${X11BASE}/lib -lGL -lGLU -lXmu -lXext + # The following libraries may be required (try to add them one at a time) + # GLLIBS = -lGL -lGLU -lXmu -lXext -lpthread + +@@ -45,7 +45,7 @@ + TOGLDIR = Togl + + # C Compiler options +-COPTS = -c -O ++COPTS = -c ${CFLAGS} + + ###### No need to change these + diff --git a/graphics/ocaml-lablgl/pkg-comment b/graphics/ocaml-lablgl/pkg-comment new file mode 100644 index 0000000..a3a9bf5 --- /dev/null +++ b/graphics/ocaml-lablgl/pkg-comment @@ -0,0 +1 @@ +OpenGL interface for Objective Caml diff --git a/graphics/ocaml-lablgl/pkg-descr b/graphics/ocaml-lablgl/pkg-descr new file mode 100644 index 0000000..da4859e --- /dev/null +++ b/graphics/ocaml-lablgl/pkg-descr @@ -0,0 +1,10 @@ +LablGL is an OpenGL interface for Objective Caml. Since it includes +support for the Togl widget, you can comfortably use it with LablTk. + +All of the GL and GLU libraries are available. Read a good book +about how to use these. Translating from OpenGL to LablGL is rather +straitforward: there is a LablGL function for each OpenGL one. For +ease of retrieving, both GL and GLU are cut in smaller modules of +related functions. + +Please see ${PREFIX}/share/doc/ocaml/lablgl/README for further information. diff --git a/graphics/ocaml-lablgl/pkg-plist b/graphics/ocaml-lablgl/pkg-plist new file mode 100644 index 0000000..70dc0c6 --- /dev/null +++ b/graphics/ocaml-lablgl/pkg-plist @@ -0,0 +1,81 @@ +bin/lablgl +lib/ocaml/lablGL/raw.cmi +lib/ocaml/lablGL/gluMat.cmi +lib/ocaml/lablGL/gluTess.cmi +lib/ocaml/lablGL/gluQuadric.cmi +lib/ocaml/lablGL/gluNurbs.cmi +lib/ocaml/lablGL/gluMisc.cmi +lib/ocaml/lablGL/glFunc.cmi +lib/ocaml/lablGL/glDraw.cmi +lib/ocaml/lablGL/glTex.cmi +lib/ocaml/lablGL/glClear.cmi +lib/ocaml/lablGL/glPix.cmi +lib/ocaml/lablGL/glMisc.cmi +lib/ocaml/lablGL/glMat.cmi +lib/ocaml/lablGL/glMap.cmi +lib/ocaml/lablGL/glList.cmi +lib/ocaml/lablGL/glLight.cmi +lib/ocaml/lablGL/gl.cmi +lib/ocaml/lablGL/togl.cmi +lib/ocaml/lablGL/raw.mli +lib/ocaml/lablGL/gluMat.mli +lib/ocaml/lablGL/gluTess.mli +lib/ocaml/lablGL/gluQuadric.mli +lib/ocaml/lablGL/gluNurbs.mli +lib/ocaml/lablGL/gluMisc.mli +lib/ocaml/lablGL/glFunc.mli +lib/ocaml/lablGL/glDraw.mli +lib/ocaml/lablGL/glTex.mli +lib/ocaml/lablGL/glClear.mli +lib/ocaml/lablGL/glPix.mli +lib/ocaml/lablGL/glMisc.mli +lib/ocaml/lablGL/glMat.mli +lib/ocaml/lablGL/glMap.mli +lib/ocaml/lablGL/glList.mli +lib/ocaml/lablGL/glLight.mli +lib/ocaml/lablGL/gl.mli +lib/ocaml/lablGL/togl.mli +lib/ocaml/lablGL/togl.cma +lib/ocaml/lablGL/libtogl.a +lib/ocaml/lablGL/lablgl.cma +lib/ocaml/lablGL/liblablgl.a +lib/ocaml/lablGL/lablgltop +lib/ocaml/lablGL/dlltogl.so +lib/ocaml/lablGL/dlllablgl.so +lib/ocaml/lablGL/lablgl.cmxa +lib/ocaml/lablGL/gluMat.cmx +lib/ocaml/lablGL/gluTess.cmx +lib/ocaml/lablGL/gluQuadric.cmx +lib/ocaml/lablGL/gluNurbs.cmx +lib/ocaml/lablGL/gluMisc.cmx +lib/ocaml/lablGL/glFunc.cmx +lib/ocaml/lablGL/glDraw.cmx +lib/ocaml/lablGL/glTex.cmx +lib/ocaml/lablGL/glClear.cmx +lib/ocaml/lablGL/glPix.cmx +lib/ocaml/lablGL/glMisc.cmx +lib/ocaml/lablGL/glMat.cmx +lib/ocaml/lablGL/glMap.cmx +lib/ocaml/lablGL/glList.cmx +lib/ocaml/lablGL/glLight.cmx +lib/ocaml/lablGL/gl.cmx +lib/ocaml/lablGL/raw.cmx +lib/ocaml/lablGL/togl.a +lib/ocaml/lablGL/togl.cmxa +lib/ocaml/lablGL/lablgl.a +lib/ocaml/lablGL/togl.cmx +%%PORTDOCS%%share/doc/ocaml/lablgl/README +share/examples/ocaml/lablgl/Makefile +share/examples/ocaml/lablgl/README +share/examples/ocaml/lablgl/checker.ml +share/examples/ocaml/lablgl/double.ml +share/examples/ocaml/lablgl/gears.ml +share/examples/ocaml/lablgl/morph3d.ml +share/examples/ocaml/lablgl/planet.ml +share/examples/ocaml/lablgl/scene.ml +share/examples/ocaml/lablgl/simple.ml +share/examples/ocaml/lablgl/tennis.ml +share/examples/ocaml/lablgl/texturesurf.ml +@dirrm lib/ocaml/lablGL +@dirrm share/examples/ocaml/lablgl +%%PORTDOCS%%@dirrm share/doc/ocaml/lablgl |