diff options
author | Daniel Drake <dsd@gentoo.org> | 2006-09-19 15:11:12 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2006-09-19 15:11:12 +0000 |
commit | 2cd9f707be5ac3ee91c00294f2b7c302014ec5da (patch) | |
tree | 15fcdd6afcfbae691de6257102f291b9c5063a77 /media-gfx/openmesh | |
parent | Now depend on the correct autotools versions, as no longer all versions are a... (diff) | |
download | gentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.tar.gz gentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.tar.bz2 gentoo-2-2cd9f707be5ac3ee91c00294f2b7c302014ec5da.zip |
Initial import based on ebuild by Seemant Kulleen, thanks to ville in bug #128305
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'media-gfx/openmesh')
-rw-r--r-- | media-gfx/openmesh/ChangeLog | 11 | ||||
-rw-r--r-- | media-gfx/openmesh/Manifest | 20 | ||||
-rw-r--r-- | media-gfx/openmesh/files/digest-openmesh-1.0.0 | 3 | ||||
-rw-r--r-- | media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch | 145 | ||||
-rw-r--r-- | media-gfx/openmesh/metadata.xml | 17 | ||||
-rw-r--r-- | media-gfx/openmesh/openmesh-1.0.0.ebuild | 62 |
6 files changed, 258 insertions, 0 deletions
diff --git a/media-gfx/openmesh/ChangeLog b/media-gfx/openmesh/ChangeLog new file mode 100644 index 000000000000..6a714142b93c --- /dev/null +++ b/media-gfx/openmesh/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-gfx/openmesh +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.1 2006/09/19 15:11:12 dsd Exp $ + +*openmesh-1.0.0 (19 Sep 2006) + + 19 Sep 2006; Daniel Drake <dsd@gentoo.org> + +files/openmesh-1.0.0-gcc41.patch, +metadata.xml, +openmesh-1.0.0.ebuild: + Initial import based on ebuild by Seemant Kulleen, thanks to ville in bug + #128305 + diff --git a/media-gfx/openmesh/Manifest b/media-gfx/openmesh/Manifest new file mode 100644 index 000000000000..42b69d0666d2 --- /dev/null +++ b/media-gfx/openmesh/Manifest @@ -0,0 +1,20 @@ +AUX openmesh-1.0.0-gcc41.patch 3925 RMD160 ab4ed625667063776307d04c3a0fc5107459cfef SHA1 928d3d40dd01311b38f5e1520d77b3ad05f0d07c SHA256 9514b94f4f55e9ec7c73675dcd57e0f13d7aa7d184429e36237a36a9be50ba41 +MD5 c28259b7c563da02c08b5750bb14e4fc files/openmesh-1.0.0-gcc41.patch 3925 +RMD160 ab4ed625667063776307d04c3a0fc5107459cfef files/openmesh-1.0.0-gcc41.patch 3925 +SHA256 9514b94f4f55e9ec7c73675dcd57e0f13d7aa7d184429e36237a36a9be50ba41 files/openmesh-1.0.0-gcc41.patch 3925 +DIST OpenMesh_1.0.0.tgz 4911191 RMD160 2a90206dc51677b2cb56f5af9f1cfc2d851f9404 SHA1 47e448718e27db3c1ccae754d00a650472db5ecc SHA256 025c5af3b5af9cae7983f2322579f8aa5a45ac9f195123a8c09a0645dfc2e7c4 +EBUILD openmesh-1.0.0.ebuild 1327 RMD160 4aa9339e3743db688528c84b49e7f9de6c66ffaf SHA1 4a78c13ff311eff674d5719d265986cdec1d5e08 SHA256 730cb9b291eca2322d17e65df93c6df52c67ec2fd54fbf09b6ff1e281944844a +MD5 59648bd5ab7cab7537f22c9ada05f8bc openmesh-1.0.0.ebuild 1327 +RMD160 4aa9339e3743db688528c84b49e7f9de6c66ffaf openmesh-1.0.0.ebuild 1327 +SHA256 730cb9b291eca2322d17e65df93c6df52c67ec2fd54fbf09b6ff1e281944844a openmesh-1.0.0.ebuild 1327 +MISC ChangeLog 358 RMD160 7447723da766bd0b1e6cba2b262d5e073ae2f80a SHA1 47f165080ba07c174b1a6ede3a0d1afc0943d055 SHA256 e37133948e486daff9f85af759e387e1651a5204f4bfa1032a2a216b314ba32b +MD5 44ec496c1a6c30ff0443940d36860f24 ChangeLog 358 +RMD160 7447723da766bd0b1e6cba2b262d5e073ae2f80a ChangeLog 358 +SHA256 e37133948e486daff9f85af759e387e1651a5204f4bfa1032a2a216b314ba32b ChangeLog 358 +MISC metadata.xml 712 RMD160 493e2c838f0603abed423d12f33235b7213ee79a SHA1 7e14f67934c2055fbe0a45297ac4d2476c7c13a1 SHA256 423d505a0051c641d2213f31043b0bbd00549d4686a840043b3b469923c4fa00 +MD5 d3489ccc1a3278310b646719688d2620 metadata.xml 712 +RMD160 493e2c838f0603abed423d12f33235b7213ee79a metadata.xml 712 +SHA256 423d505a0051c641d2213f31043b0bbd00549d4686a840043b3b469923c4fa00 metadata.xml 712 +MD5 b1b825ee4b43062556a3cd0bf6cdda8f files/digest-openmesh-1.0.0 238 +RMD160 125f49e4a5f90a56e18ed13b7ae5efbc60a5e7ce files/digest-openmesh-1.0.0 238 +SHA256 58c436ccc81cf8d64afadc02da91a1f0ac150c8010d6ff3f06a99f3e53947ebc files/digest-openmesh-1.0.0 238 diff --git a/media-gfx/openmesh/files/digest-openmesh-1.0.0 b/media-gfx/openmesh/files/digest-openmesh-1.0.0 new file mode 100644 index 000000000000..d0aaf5bd4b28 --- /dev/null +++ b/media-gfx/openmesh/files/digest-openmesh-1.0.0 @@ -0,0 +1,3 @@ +MD5 694182cc15bd647409eb024422e26033 OpenMesh_1.0.0.tgz 4911191 +RMD160 2a90206dc51677b2cb56f5af9f1cfc2d851f9404 OpenMesh_1.0.0.tgz 4911191 +SHA256 025c5af3b5af9cae7983f2322579f8aa5a45ac9f195123a8c09a0645dfc2e7c4 OpenMesh_1.0.0.tgz 4911191 diff --git a/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch b/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch new file mode 100644 index 000000000000..ce6f5e108a5a --- /dev/null +++ b/media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch @@ -0,0 +1,145 @@ +From: Daniel Drake <dsd@gentoo.org> + +Index: OpenMesh/Core/IO/OMFormat.hh +=================================================================== +--- OpenMesh.orig/Core/IO/OMFormat.hh ++++ OpenMesh/Core/IO/OMFormat.hh +@@ -462,23 +462,6 @@ namespace OMFormat { + typedef GenProg::False t_unsigned; + + +- /// Store an integer with a wanted number of bits +- template< typename T > +- inline +- size_t +- store( std::ostream& _os, +- const T& _val, +- OMFormat::Chunk::Integer_Size _b, +- bool _swap) +- { +- assert( OMFormat::is_integer( _val ) ); +- +- if ( OMFormat::is_signed( _val ) ) +- return store( _os, _val, _b, _swap, t_signed() ); +- return store( _os, _val, _b, _swap, t_unsigned() ); +- } +- +- + // helper to store a an integer + template< typename T > + size_t +@@ -497,24 +480,22 @@ namespace OMFormat { + bool _swap, + t_unsigned); + +- +- /// Restore an integer with a wanted number of bits ++ /// Store an integer with a wanted number of bits + template< typename T > + inline + size_t +- restore( std::istream& _is, +- T& _val, +- OMFormat::Chunk::Integer_Size _b, +- bool _swap) ++ store( std::ostream& _os, ++ const T& _val, ++ OMFormat::Chunk::Integer_Size _b, ++ bool _swap) + { + assert( OMFormat::is_integer( _val ) ); +- ++ + if ( OMFormat::is_signed( _val ) ) +- return restore( _is, _val, _b, _swap, t_signed() ); +- return restore( _is, _val, _b, _swap, t_unsigned() ); ++ return store( _os, _val, _b, _swap, t_signed() ); ++ return store( _os, _val, _b, _swap, t_unsigned() ); + } + +- + // helper to store a an integer + template< typename T > inline + size_t restore( std::istream& _is, +@@ -530,18 +511,26 @@ namespace OMFormat { + OMFormat::Chunk::Integer_Size _b, + bool _swap, + t_unsigned); +- // +- // ---------------------------------------- storing vectors + +- /// storing a vector type +- template <typename VecT> inline +- size_t vector_store( std::ostream& _os, const VecT& _vec, bool _swap ) +- { +- return store( _os, _vec, +- GenProg::Int2Type< vector_traits<VecT>::size_ >(), +- _swap ); ++ /// Restore an integer with a wanted number of bits ++ template< typename T > ++ inline ++ size_t ++ restore( std::istream& _is, ++ T& _val, ++ OMFormat::Chunk::Integer_Size _b, ++ bool _swap) ++ { ++ assert( OMFormat::is_integer( _val ) ); ++ ++ if ( OMFormat::is_signed( _val ) ) ++ return restore( _is, _val, _b, _swap, t_signed() ); ++ return restore( _is, _val, _b, _swap, t_unsigned() ); + } + ++ // ++ // ---------------------------------------- storing vectors ++ + template <typename VecT> inline + size_t store( std::ostream& _os, const VecT& _vec, GenProg::Int2Type<1>, + bool _swap ) +@@ -579,19 +568,17 @@ namespace OMFormat { + return bytes; + } + +- // ---------------------------------------- restoring vectors +- +- /// Restoring a vector type +- template <typename VecT> +- inline +- size_t +- vector_restore( std::istream& _is, VecT& _vec, bool _swap ) ++ /// storing a vector type ++ template <typename VecT> inline ++ size_t vector_store( std::ostream& _os, const VecT& _vec, bool _swap ) + { +- return restore( _is, _vec, +- GenProg::Int2Type< vector_traits<VecT>::size_ >(), +- _swap ); ++ return store( _os, _vec, ++ GenProg::Int2Type< vector_traits<VecT>::size_ >(), ++ _swap ); + } + ++ // ---------------------------------------- restoring vectors ++ + + template <typename VecT> + inline +@@ -644,6 +631,17 @@ namespace OMFormat { + return bytes; + } + ++ /// Restoring a vector type ++ template <typename VecT> ++ inline ++ size_t ++ vector_restore( std::istream& _is, VecT& _vec, bool _swap ) ++ { ++ return restore( _is, _vec, ++ GenProg::Int2Type< vector_traits<VecT>::size_ >(), ++ _swap ); ++ } ++ + // ---------------------------------------- storing property names + + template <> diff --git a/media-gfx/openmesh/metadata.xml b/media-gfx/openmesh/metadata.xml new file mode 100644 index 000000000000..b4f5ba8cfc2f --- /dev/null +++ b/media-gfx/openmesh/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>dsd@gentoo.org</email> + <name>Daniel Drake</name> +</maintainer> +<longdescription> +OpenMesh is a generic and efficient data structure for representing and +manipulating polygonal meshes. OpenMesh is developed at the Computer Graphics +Group, RWTH Aachen, as part of the OpenSGPlus project, is funded by the +German Ministry for Research and Education (BMBF), and will serve as +geometry kernel upon which the so-called high level primitives (e.g. +subdivision surfaces or progressive meshes) of OpenSGPlus are built. +</longdescription> +</pkgmetadata> diff --git a/media-gfx/openmesh/openmesh-1.0.0.ebuild b/media-gfx/openmesh/openmesh-1.0.0.ebuild new file mode 100644 index 000000000000..9d8f54cfa4df --- /dev/null +++ b/media-gfx/openmesh/openmesh-1.0.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-1.0.0.ebuild,v 1.1 2006/09/19 15:11:12 dsd Exp $ + +inherit eutils + +MY_PN="OpenMesh" +MY_P=${MY_PN}_${PV} +S=${WORKDIR}/${MY_PN} +DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes" +HOMEPAGE="http://www.openmesh.org/" +SRC_URI="http://www-i8.informatik.rwth-aachen.de/${MY_PN}/downloads/${MY_P}.tgz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="qt4 debug" + +RDEPEND="qt4? ( x11-libs/qt )" +DEPEND="dev-util/acgmake + ${RDEPEND}" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-gcc41.patch || die + + if ! use qt4 + then + sed -i "s:Apps::" ACGMakefile + fi + + find . -name 'CVS' -type d -print0 | xargs -0 rm -rf +} + +src_compile() { + use debug && myconf="-dbg" + acgmake ${myconf} || die + + # fix insecure runpaths + TMPDIR=${S} scanelf -BXRr ${S} -o /dev/null || die +} + +src_install() { + into /usr + dolib Core/Linux_gcc_dbg/libOpenMesh_Core.so + dolib Tools/Linux_gcc_dbg/libOpenMesh_Tools.so + dolib Tools/Subdivider/Adaptive/Composite/Linux_gcc_dbg/libOpenMesh_Tools_Subdivider_Adaptive_Composite.so + + make clean + + find . -name 'ACGMakefile' -delete + find . -name '*.vcproj' -delete + + dodir /usr/include/${MY_PN} + + cp -a Core ${D}/usr/include/${MY_PN} + cp -a Tools ${D}/usr/include/${MY_PN} + +} + |