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

Contents of /media-gfx/openmesh/openmesh-2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jan 11 20:16:58 2013 UTC (19 months, 2 weeks ago) by jsbronder
Branch: MAIN
Changes since 1.3: +3 -4 lines
Fix license for >=2.0_rc5.  #450304

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-2.2.ebuild,v 1.3 2012/09/23 08:26:50 phajdan.jr Exp $
4
5 EAPI="3"
6 inherit eutils cmake-utils
7
8 MY_PN="OpenMesh"
9 MY_PV="${PV/_rc/-RC}"
10 S="${WORKDIR}/${MY_PN}-${MY_PV}"
11
12 DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
13 HOMEPAGE="http://www.openmesh.org/"
14 SRC_URI="http://openmesh.org/fileadmin/${PN}-files/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
15
16 LICENSE="LGPL-3-with-linking-exception"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE="qt4 static-libs"
20
21 RDEPEND="qt4? ( x11-libs/qt-gui:4
22 x11-libs/qt-opengl:4
23 media-libs/freeglut )"
24 DEPEND="${RDEPEND}"
25
26 src_prepare() {
27 # Fix libdir and remove rpath.
28 sed -i \
29 -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
30 -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
31 -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
32 -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
33 -e '/^ *INSTALL_RPATH/d' \
34 cmake/ACGCommon.cmake || die
35
36 if ! use static-libs; then
37 sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
38 src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
39 sed -i '/OpenMeshCoreStatic/d' \
40 src/${MY_PN}/Tools/CMakeLists.txt || die
41 fi
42 }
43
44 src_configure() {
45 mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")"
46 cmake-utils_src_configure
47 }
48
49 src_install() {
50 cmake-utils_src_install
51 dodoc LICENSE/* README CHANGELOG || die
52 }

  ViewVC Help
Powered by ViewVC 1.1.20