diff options
author | Matthieu Sozeau <mattam@gentoo.org> | 2004-02-06 03:33:21 +0000 |
---|---|---|
committer | Matthieu Sozeau <mattam@gentoo.org> | 2004-02-06 03:33:21 +0000 |
commit | 7d2326b15066a811d76e2cf9a4179b1c193f746d (patch) | |
tree | 0091b1eeed4f4290704066fd991a6e666c3dedea /dev-ml/lablgl | |
parent | lablgl-1.00 version bump (adds glut support). (diff) | |
download | historical-7d2326b15066a811d76e2cf9a4179b1c193f746d.tar.gz historical-7d2326b15066a811d76e2cf9a4179b1c193f746d.tar.bz2 historical-7d2326b15066a811d76e2cf9a4179b1c193f746d.zip |
lablgl-1.00 version bump (adds glut support).
Diffstat (limited to 'dev-ml/lablgl')
-rw-r--r-- | dev-ml/lablgl/Manifest | 5 | ||||
-rw-r--r-- | dev-ml/lablgl/files/digest-lablgl-1.00 | 3 | ||||
-rw-r--r-- | dev-ml/lablgl/files/lablgl-1.00-Makefile.config | 14 | ||||
-rw-r--r-- | dev-ml/lablgl/lablgl-1.00.ebuild | 82 |
4 files changed, 102 insertions, 2 deletions
diff --git a/dev-ml/lablgl/Manifest b/dev-ml/lablgl/Manifest index f80b5720630d..abf888913ceb 100644 --- a/dev-ml/lablgl/Manifest +++ b/dev-ml/lablgl/Manifest @@ -1,10 +1,11 @@ MD5 648a541494aceee26dbcfd76164f37ea metadata.xml 157 MD5 55fee7b83f4be8f4c3eda525b2f4614b lablgl-0.97.ebuild 1100 -MD5 72fa591c7d3106356f08d13730c4ea05 ChangeLog 2455 -MD5 56830e6ef23cdf12790c7cac22c3c183 lablgl-1.00.ebuild 1936 +MD5 5d3d909be1078aac2a226cb683ff0bab ChangeLog 2673 +MD5 8f3c472010dd90c0bc5636fb5c901b62 lablgl-1.00.ebuild 2055 MD5 1b082f4db0678bfb9b1b54cfe41470e2 lablgl-0.98.ebuild 1757 MD5 c43d56bd957cec6f22e4a01d27e98f06 lablgl-0.99.ebuild 1853 MD5 56830e6ef23cdf12790c7cac22c3c183 lablgl-0.99-r1.ebuild 1936 +MD5 fe2f6d4854f565091bda3022e0a62b31 files/lablgl-1.00-Makefile.config 371 MD5 b5f4f06ceeac8ce19b70d33f538b885a files/LablGL-0.97-Makefile-destdir.patch 1350 MD5 6ef239cb00bd6b3b6b60356f31adea47 files/digest-lablgl-0.97 63 MD5 007f6ebc610ac1d9f52d6396f5b430e1 files/LablGL-0.98-Makefile-destdir.patch 1540 diff --git a/dev-ml/lablgl/files/digest-lablgl-1.00 b/dev-ml/lablgl/files/digest-lablgl-1.00 new file mode 100644 index 000000000000..53050da79c2f --- /dev/null +++ b/dev-ml/lablgl/files/digest-lablgl-1.00 @@ -0,0 +1,3 @@ +MD5 92bcfe3121650c43e5bc4c018778405b lablgl-1.00.tar.gz 390570 +MD5 ee11755055492e0a9e60cb51fae657bf LablGL-0.99-Makefile-destdir.patch 1450 +MD5 7b95aa62137ce4a457a8603803892bcd LablGL-0.99-Makefile.config 1422 diff --git a/dev-ml/lablgl/files/lablgl-1.00-Makefile.config b/dev-ml/lablgl/files/lablgl-1.00-Makefile.config new file mode 100644 index 000000000000..3ce6c075bb8f --- /dev/null +++ b/dev-ml/lablgl/files/lablgl-1.00-Makefile.config @@ -0,0 +1,14 @@ +BINDIR = /usr/bin +XINCLUDES = -I/usr/X11R6/include +XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11 +GLINCLUDES = +GLLIBS = -lGL -lGLU -lglut +RANLIB = ranlib +LIBDIR = `ocamlc -where` +LABLTKDIR = $(LIBDIR)/labltk +INSTALLDIR = $(LIBDIR)/lablGL +TOGLDIR = Togl +COPTS = -c -O $(CFLAGS) +INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES) +LIBS = $(TKLIBS) $(GLLIBS) $(XLIBS) +LIBDIRS =
\ No newline at end of file diff --git a/dev-ml/lablgl/lablgl-1.00.ebuild b/dev-ml/lablgl/lablgl-1.00.ebuild new file mode 100644 index 000000000000..bf74eeb3c6f3 --- /dev/null +++ b/dev-ml/lablgl/lablgl-1.00.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.00.ebuild,v 1.1 2004/02/06 03:33:08 mattam Exp $ + +IUSE="tcltk glut doc" + +DESCRIPTION="Objective CAML interface for OpenGL" +HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html" +LICENSE="as-is" + +DEPEND=">=dev-lang/ocaml-3.05 +virtual/opengl +glut ? ( media-libs/glut ) +tcltk? ( >=dev-lang/tcl-8.3* + >=dev-lang/tk-8.3* )" + +SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc" + +pkg_setup() +{ + if ( use tcltk ) + then + #lablgl requires ocaml compiled with tk support while ocaml has it as an optional dependency + if ( ! which labltk ) + then + eerror "It seems you don't have ocaml compiled with tk support" + eerror "" + eerror "lablgl requires ocaml be built with tk support." + eerror "" + eerror "Please make sure that ocaml is installed with tk support." + false; + fi + fi +} + +src_compile() { + # make configuration file + cp ${FILESDIR}/${P}-Makefile.config ${S}/Makefile.config || die + + use tcltk && make && make opt + + use glut && make glut glutopt + + make lib libopt || die +} + +src_install () { + # Makefile do not use mkdir so the library is not installed + # but copied as a 'stublibs' file. + dodir /usr/lib/ocaml/stublibs + + # Same for lablglut's toplevel + dodir /usr/bin + + BINDIR=${D}/usr/bin + BASE=${D}/usr/lib/ocaml + make BINDIR=${BINDIR} INSTALLDIR=${BASE}/lablGL DLLDIR=${BASE}/stublibs install || die + + dodoc README CHANGES COPYRIGHT + + if ( use doc && use tcltk ) then + DIR=usr/share/doc/${PF} + cp -R Togl/examples/ ${D}/${DIR}/examples.togl + fi + + if ( use glut ) then + cd LablGlut + newdoc README README.glut + newdoc ChangeLog ChangeLog.glut + newdoc CHANGES CHANGES.glut + newdoc COPYRIGHT COPYRIGHT.glut + newdoc THANKS THANKS.glut + newdoc TODO TODO.glut + + if ( use doc ) then + DIR=usr/share/doc/${PF} + cp -R examples ${D}/${DIR}/examples.glut + fi + fi +}
\ No newline at end of file |