Contents of /trunk/deprecated/glut/glut-3.7.1-r7.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
File size: 1381 byte(s)
Fri Oct 10 13:29:42 2008 UTC (16 years ago) by niro
File size: 1381 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/glut/glut-3.7.1-r7.smage2,v 1.2 2008/02/07 14:23:37 niro Exp $ |
2 | |
3 | PNAME="glut" |
4 | PVER="3.7.1" |
5 | PBUILD="r7" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="testing" |
9 | |
10 | DESCRIPTION="GLUT is the OpenGL Utility Toolkit." |
11 | HOMEPAGE="http://www.opengl.org/resources/libraries/glut/" |
12 | |
13 | # use this smage only with >= xorg-7.0.0 |
14 | # preinstall and src_preare of sminc will ensure this, |
15 | # so do not remove !! |
16 | sminclude xorg mtools |
17 | |
18 | # dep only exist with new xorg-7.0.0 (media-libs/mesa) |
19 | DEPEND=">= virtual/opengl" |
20 | |
21 | PROVIDE="virtual/glut" |
22 | |
23 | SRCFILE="MesaLib-5.0.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/Mesa-5.0" |
25 | |
26 | MESADEMOS="MesaDemos-5.0.tar.bz2" |
27 | |
28 | SRC_URI=( |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${MESADEMOS} |
31 | ) |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | munpack ${MESADEMOS} || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | mconfigure || die |
43 | |
44 | # compile only glut |
45 | cd ${SRCDIR}/src-glut |
46 | mmake || die |
47 | } |
48 | |
49 | src_install() |
50 | { |
51 | cd ${SRCDIR} |
52 | |
53 | # needed directories |
54 | minstalldir /usr/include/GL || die |
55 | minstalldir /usr/$(mlibdir) || die |
56 | |
57 | # libs |
58 | minstallexec src-glut/.libs/libglut.so.${PVER} /usr/$(mlibdir) || die |
59 | ln -snf libglut.so.${PVER} ${BINDIR}/usr/$(mlibdir)/libglut.so || die |
60 | |
61 | # linkfiles |
62 | minstallfile src-glut/.libs/libglut.lai /usr/$(mlibdir)/libglut.la || die |
63 | |
64 | # headers |
65 | install -m 0644 include/GL/glut* ${BINDIR}/usr/include/GL || die |
66 | |
67 | # docs |
68 | minstalldocs docs/COPYRIGHT || die |
69 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |