/[gentoo-x86]/media-gfx/openmesh/openmesh-1.9.6-r2.ebuild
Gentoo

Contents of /media-gfx/openmesh/openmesh-1.9.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed May 11 20:03:43 2011 UTC (3 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.5: +3 -3 lines
Stable on amd64 wrt bug #365649

(Portage version: 2.2.0_alpha32/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-1.9.6-r2.ebuild,v 1.5 2010/09/16 17:10:08 scarabeus Exp $
4
5 EAPI="2"
6 inherit eutils
7
8 MY_PN="OpenMesh"
9 S=${WORKDIR}/${MY_PN}
10 DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
11 HOMEPAGE="http://www.openmesh.org/"
12 SRC_URI="http://www-i8.informatik.rwth-aachen.de/${MY_PN}/downloads/${MY_PN}-${PV}.tar.bz2"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="amd64 ~x86"
17 IUSE="qt4 debug"
18
19 RDEPEND="qt4? ( x11-libs/qt-gui:4
20 x11-libs/qt-opengl:4
21 media-libs/freeglut )"
22 DEPEND=">=dev-util/acgmake-1.4
23 >=sys-apps/findutils-4.3.0
24 ${RDEPEND}"
25
26 src_prepare() {
27 use qt4 || sed -i "s:Apps::" ACGMakefile
28 # gcc-4.3 fixs.
29 sed -i \
30 'N;s,\(OPENMESH_VECTOR_HH )\n\),\1#include <string.h>\n,' \
31 Core/Geometry/VectorT_inc.hh || die
32 epatch "${FILESDIR}/QGLViewerWidget-hh-gcc-4.3-include-fix.patch" || die
33 }
34
35 src_compile() {
36 if use debug; then
37 export CXXDEFS="-UNDEBUG -DDEBUG"
38 else
39 export CXXDEFS="-DNDEBUG -UDEBUG"
40 fi
41 acgmake -env || die
42
43 # fix insecure runpaths
44 TMPDIR="${S}" scanelf -BXRr "${S}" -o /dev/null || die
45 }
46
47 src_install() {
48 local l
49
50 for l in $(find "${S}"/{Core,Tools} -name '*.so'); do
51 dolib ${l} || die
52 done
53
54 # Clean up manually as acgmake doesn't do a decent job.
55 find . -name 'ACGMakefile' -delete || die
56 find . -name '*.vcproj' -delete || die
57 rm -rf $(find "${S}" -type d -name 'Linux_gcc*_env') || die
58
59 dodir /usr/include/${MY_PN}
60
61 cp -a Core "${D}"/usr/include/${MY_PN}
62 cp -a Tools "${D}"/usr/include/${MY_PN}
63 }

  ViewVC Help
Powered by ViewVC 1.1.20