diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2002-06-27 12:08:41 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2002-06-27 12:08:41 +0000 |
commit | 7847cc63efdfc7bc518766fa03652483d274f7a8 (patch) | |
tree | 081b8b5c6683b3ad847bdb222061f0591b406655 /graphics/ocaml-lablgl | |
parent | Remove acs. Its successor, gnucap, is already in the tree. (diff) |
Add lablgl 0.97, OpenGL interface for Objective Caml.
PR: 33961
Submitted by: Ronald Kuehn <rk@ronald.org>
Notes
Notes:
svn path=/head/; revision=62095
Diffstat (limited to 'graphics/ocaml-lablgl')
-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 |
7 files changed, 181 insertions, 0 deletions
diff --git a/graphics/ocaml-lablgl/Makefile b/graphics/ocaml-lablgl/Makefile new file mode 100644 index 000000000000..43ac66dca8f3 --- /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 000000000000..bf8af0149c5f --- /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 000000000000..5ed73713ac0c --- /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 000000000000..26bc4cd5fa57 --- /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 000000000000..a3a9bf5f4571 --- /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 000000000000..da4859e29b04 --- /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 000000000000..70dc0c67ee4e --- /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 |