/[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.4 - (show annotations) (download)
Fri Jun 8 02:55:55 2012 UTC (5 years, 5 months ago) by zmedico
Branch: MAIN
Changes since 1.3: +3 -3 lines
inherit flag-o-matic for append-cppflags

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 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.3 2011/04/05 14:18:20 jsbronder 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 # See COPYING.EXCEPTIONS
17 LICENSE="LGPL-3 as-is"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="qt4 debug static-libs"
21
22 RDEPEND="qt4? ( x11-libs/qt-gui:4
23 x11-libs/qt-opengl:4
24 media-libs/freeglut )"
25 DEPEND="${RDEPEND}"
26
27 src_prepare() {
28 # Fix libdir and remove rpath.
29 cd "${S}"
30 sed -i \
31 -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
32 -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
33 -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
34 -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
35 -e '/^ *INSTALL_RPATH/d' \
36 cmake/ACGCommon.cmake || die
37 }
38
39 src_configure() {
40 if use debug; then
41 CMAKE_BUILD_TYPE=Debug
42 else
43 CMAKE_BUILD_TYPE=Release
44 append-cppflags -DNDEBUG
45 fi
46 mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")"
47 cmake-utils_src_configure
48 }
49
50 src_install() {
51 cmake-utils_src_install
52
53 if ! use static-libs; then
54 # No way to set this in the build system as of 2.0_rc5
55 rm -f "${D}"/usr/$(get_libdir)/*.a \
56 || die "Failed to remove static libraries."
57 fi
58 cd "${S}"
59 dodoc LICENSE/* README CHANGELOG || die
60 }

  ViewVC Help
Powered by ViewVC 1.1.20