summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2006-09-19 15:11:12 +0000
committerDaniel Drake <dsd@gentoo.org>2006-09-19 15:11:12 +0000
commit5d3fa450a16deac7ab4eee5baf5c00b086ae6a97 (patch)
tree7f8a9aa8c6b053aa15f28ff6de9c701d30d3e040 /media-gfx/openmesh
parentNow depend on the correct autotools versions, as no longer all versions are a... (diff)
downloadhistorical-5d3fa450a16deac7ab4eee5baf5c00b086ae6a97.tar.gz
historical-5d3fa450a16deac7ab4eee5baf5c00b086ae6a97.tar.bz2
historical-5d3fa450a16deac7ab4eee5baf5c00b086ae6a97.zip
Initial import based on ebuild by Seemant Kulleen, thanks to ville in bug #128305
Package-Manager: portage-2.1.2_pre1
Diffstat (limited to 'media-gfx/openmesh')
-rw-r--r--media-gfx/openmesh/ChangeLog11
-rw-r--r--media-gfx/openmesh/Manifest20
-rw-r--r--media-gfx/openmesh/files/digest-openmesh-1.0.03
-rw-r--r--media-gfx/openmesh/files/openmesh-1.0.0-gcc41.patch145
-rw-r--r--media-gfx/openmesh/metadata.xml17
-rw-r--r--media-gfx/openmesh/openmesh-1.0.0.ebuild62
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..5b6357a5aec1
--- /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 1426 RMD160 faa7698eeb13c6d246d43be4fa1a71bb93e7d2af SHA1 788836016e61bb0229461034786eb4c984c9961a SHA256 89a8a99767624c983dc66da001de418763d4ccfb46f4cb0bf935411c6cf609bc
+MD5 007d4c804f573dcd01016ec371ee8714 openmesh-1.0.0.ebuild 1426
+RMD160 faa7698eeb13c6d246d43be4fa1a71bb93e7d2af openmesh-1.0.0.ebuild 1426
+SHA256 89a8a99767624c983dc66da001de418763d4ccfb46f4cb0bf935411c6cf609bc openmesh-1.0.0.ebuild 1426
+MISC ChangeLog 445 RMD160 9c5a1e7d3e534d91e2bad8bfc7d0db169ed8b036 SHA1 f9bcaa65a6e08ab73f7a74ece9236c16867b71bc SHA256 4d46ad0bde587b3dce6454b184fba6b8334f66d900b64e0eb06dae0005e565d2
+MD5 68ee8fdc4382d550354a8dcc703cf0c8 ChangeLog 445
+RMD160 9c5a1e7d3e534d91e2bad8bfc7d0db169ed8b036 ChangeLog 445
+SHA256 4d46ad0bde587b3dce6454b184fba6b8334f66d900b64e0eb06dae0005e565d2 ChangeLog 445
+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}
+
+}
+