# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils inherit qt4-r2 DESCRIPTION="MeshLab, a mesh processing system, for user assisted editing, cleaning, filtering and rendering of large unstructured 3D triangular meshes (typical 3D scanning meshes)." HOMEPAGE="http://meshlab.sourceforge.net/" SRC_URI="mirror://sourceforge/meshlab/files/meshlab/MeshLab%20v1.2.2/MeshLabSrc_AllInc_v122.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=media-libs/glew-1.5.1 >=media-libs/lib3ds-1.3.0 >=media-libs/qhull-2003.1-r1" RDEPEND="${DEPEND}" S="${WORKDIR}/MeshLabSrc_AllInc_v122" EPATCH_OPTS="-p1" PATCHES=( "${FILESDIR}/${P}-buildfixes.patch" ) src_configure() { cd "${S}/meshlab/src" eqmake4 "-recursive meshlabv12.pro" } src_compile() { cd "${S}/meshlab/src" emake -j1 || die "emake failed" } src_install() { # upstream does not provide any installation tools # the following is reverse engineered dodir /usr/lib/meshlab exeinto /usr/lib/meshlab doexe "${S}/meshlab/src/meshlab/meshlab" dosym /usr/lib/meshlab/meshlab /usr/bin/meshlab dodir /usr/lib/meshlab/plugins exeinto /usr/lib/meshlab/plugins for f in "${S}/meshlab/src/meshlab/plugins/*.so" do doexe $f done dodir /usr/lib/meshlab/shaders insinto /usr/lib/meshlab/shaders for f in "${S}/meshlab/src/meshlab/shaders/*" do doins $f done dodir /usr/lib/meshlab/shadersrm insinto /usr/lib/meshlab/shadersrm for f in "${S}/meshlab/src/meshlab/shadersrm/*" do doins $f done }