/[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.3 - (hide annotations) (download)
Tue Apr 5 14:18:20 2011 UTC (6 years, 9 months ago) by jsbronder
Branch: MAIN
Changes since 1.2: +4 -4 lines
Use correct flag for installing static libraries (#361661).

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 jsbronder 1.3 # Copyright 1999-2011 Gentoo Foundation
2 jsbronder 1.1 # Distributed under the terms of the GNU General Public License v2
3 jsbronder 1.3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-2.0_rc5.ebuild,v 1.2 2010/09/16 17:10:08 scarabeus Exp $
4 jsbronder 1.1
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 jsbronder 1.3 IUSE="qt4 debug static-libs"
21 jsbronder 1.1
22     RDEPEND="qt4? ( x11-libs/qt-gui:4
23     x11-libs/qt-opengl:4
24 scarabeus 1.2 media-libs/freeglut )"
25 jsbronder 1.1 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 jsbronder 1.3 if ! use static-libs; then
54 jsbronder 1.1 # 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