blob: 8b757c8ab790a23ba00d9b572fc0afac982abdc4 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# TODO: use versionator; first talk to upstream to cleanup their naming
# TODO: add slot for version 2, append -${SLOT}
EAPI="3"
inherit eutils multilib qt4-r2 versionator
DESCRIPTION="A mesh processing system for the editing of large unstructured 3D triangular meshes."
HOMEPAGE="http://meshlab.sourceforge.net/"
SRC_URI="mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.2.3/MeshLabSrc_AllInc_v123a.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=sys-devel/gcc-4.4
media-libs/glew
sci-libs/levmar
media-libs/lib3ds
>=dev-cpp/muParser-1.30
<media-libs/qhull-2010.1
dev-qt/qtcore:4
dev-qt/qtopengl:4"
RDEPEND="${DEPEND}"
S=${WORKDIR}/MeshLabSrc_AllInc_v${PV//./}/meshlab/src
PATCHES=(
"${FILESDIR}/${PF}-use-system-libs-rpath.patch"
)
src_configure() {
eqmake4 meshlabv12.pro
}
src_install() {
local my_libdir=/usr/$(get_libdir)/meshlab
exeinto ${my_libdir}
doexe distrib/{libcommon.so.1.0.0,meshlab{,server}} || die
dosym libcommon.so.1.0.0 ${my_libdir}/libcommon.so.1 || die
dosym libcommon.so.1 ${my_libdir}/libcommon.so || die
dosym ${my_libdir}/meshlab /usr/bin/meshlab || die
dosym ${my_libdir}/meshlabserver /usr/bin/meshlabserver || die
exeinto ${my_libdir}/plugins
doexe distrib/plugins/*.so || die
insinto ${my_libdir}/shaders
doins -r distrib/shaders/* || die
}
|