/[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.1 - (hide annotations) (download)
Wed Jun 16 21:46:30 2010 UTC (7 years, 6 months ago) by jsbronder
Branch: MAIN
Bump media-gfx/openmesh-2.0_rc5
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 jsbronder 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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     # See COPYING.EXCEPTIONS
17     LICENSE="LGPL-3 as-is"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86"
20     IUSE="qt4 debug static"
21    
22     RDEPEND="qt4? ( x11-libs/qt-gui:4
23     x11-libs/qt-opengl:4
24     virtual/glut )"
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; 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