summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2012-02-20 22:30:03 +0000
committerJustin Bronder <jsbronder@gentoo.org>2012-02-20 22:30:03 +0000
commit65f10f6d86d3ca05b1368d57cf796e4eaca0e9f0 (patch)
treef6ea880c2feeceb2ade46df3638e4b2229f565a1 /media-gfx/openmesh
parentold (diff)
downloadgentoo-2-65f10f6d86d3ca05b1368d57cf796e4eaca0e9f0.tar.gz
gentoo-2-65f10f6d86d3ca05b1368d57cf796e4eaca0e9f0.tar.bz2
gentoo-2-65f10f6d86d3ca05b1368d57cf796e4eaca0e9f0.zip
Version bump (#363225)
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/openmesh')
-rw-r--r--media-gfx/openmesh/ChangeLog9
-rw-r--r--media-gfx/openmesh/openmesh-2.1.ebuild53
2 files changed, 60 insertions, 2 deletions
diff --git a/media-gfx/openmesh/ChangeLog b/media-gfx/openmesh/ChangeLog
index b4680888dc36..d4b5ebdd455f 100644
--- a/media-gfx/openmesh/ChangeLog
+++ b/media-gfx/openmesh/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/openmesh
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.20 2011/05/11 21:08:28 jsbronder Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.21 2012/02/20 22:30:03 jsbronder Exp $
+
+*openmesh-2.1 (20 Feb 2012)
+
+ 20 Feb 2012; Justin Bronder <jsbronder@gentoo.org> +openmesh-2.1.ebuild:
+ Version bump (#363225)
11 May 2011; Justin Bronder <jsbronder@gentoo.org> -openmesh-1.0.0.ebuild:
Remove old, closes #286561
diff --git a/media-gfx/openmesh/openmesh-2.1.ebuild b/media-gfx/openmesh/openmesh-2.1.ebuild
new file mode 100644
index 000000000000..ea88381a946a
--- /dev/null
+++ b/media-gfx/openmesh/openmesh-2.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-2.1.ebuild,v 1.1 2012/02/20 22:30:03 jsbronder Exp $
+
+EAPI="3"
+inherit eutils cmake-utils
+
+MY_PN="OpenMesh"
+MY_PV="${PV/_rc/-RC}"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
+HOMEPAGE="http://www.openmesh.org/"
+SRC_URI="http://openmesh.org/fileadmin/${PN}-files/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
+
+# See COPYING.EXCEPTIONS
+LICENSE="LGPL-3 as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="qt4 static-libs"
+
+RDEPEND="qt4? ( x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ media-libs/freeglut )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # Fix libdir and remove rpath.
+ sed -i \
+ -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
+ -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
+ -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
+ -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
+ -e '/^ *INSTALL_RPATH/d' \
+ cmake/ACGCommon.cmake || die
+
+ if ! use static-libs; then
+ sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
+ src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
+ sed -i '/OpenMeshCoreStatic/d' \
+ src/${MY_PN}/Tools/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc LICENSE/* README CHANGELOG || die
+}