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

Contents of /media-gfx/openmesh/openmesh-2.0_rc5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jan 11 20:16:58 2013 UTC (22 months, 2 weeks ago) by jsbronder
Branch: MAIN
Changes since 1.4: +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.0_rc5.ebuild,v 1.4 2012/06/08 02:55:55 zmedico Exp $
4
5 EAPI="3"
6 inherit eutils flag-o-matic 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 debug 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 cd "${S}"
29 sed -i \
30 -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
31 -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
32 -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
33 -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
34 -e '/^ *INSTALL_RPATH/d' \
35 cmake/ACGCommon.cmake || die
36 }
37
38 src_configure() {
39 if use debug; then
40 CMAKE_BUILD_TYPE=Debug
41 else
42 CMAKE_BUILD_TYPE=Release
43 append-cppflags -DNDEBUG
44 fi
45 mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")"
46 cmake-utils_src_configure
47 }
48
49 src_install() {
50 cmake-utils_src_install
51
52 if ! use static-libs; then
53 # No way to set this in the build system as of 2.0_rc5
54 rm -f "${D}"/usr/$(get_libdir)/*.a \
55 || die "Failed to remove static libraries."
56 fi
57 cd "${S}"
58 dodoc LICENSE/* README CHANGELOG || die
59 }

  ViewVC Help
Powered by ViewVC 1.1.20