blob: 0c6759a7d5669469c3b866f443bbb980168b84bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# TODO: unbundle tinyxml, glew, etc...
EAPI=2
inherit eutils multilib qt4-r2 versionator
MY_PF=OpenCTM-1.0.3
DESCRIPTION="OpenCTM - the Open Compressed Triangle Mesh file format - is a file format, a software library and a tool set for compression of 3D triangle meshes."
HOMEPAGE="http://openctm.sourceforge.net"
SRC_URI="mirror://sourceforge/openctm/${MY_PF}/${MY_PF}-src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/glew
media-libs/freeglut"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_PF}
src_configure() {
sed -i 's/-lglut/-lglut -lGLU/g' tools/Makefile.linux
}
src_compile() {
emake -f Makefile.linux openctm toolset
}
src_install() {
doexe tools/bin2c
doexe tools/ctmconv
doexe tools/ctmbench
doexe tools/ctmviewer
dolib tools/libopenctm.so
}
|