summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-09-11 13:09:51 +0000
committerCédric Krier <cedk@gentoo.org>2006-09-11 13:09:51 +0000
commit2316b96afd0b755f8dc31934610ee7f4f79c4ef2 (patch)
tree027a167da0e2bd014d6686e0be24aed103bb77f4 /media-gfx/openscenegraph
parentprofiles/use.local.desc: add local use for openscenegraph (diff)
downloadsunrise-2316b96afd0b755f8dc31934610ee7f4f79c4ef2.tar.gz
sunrise-2316b96afd0b755f8dc31934610ee7f4f79c4ef2.tar.bz2
sunrise-2316b96afd0b755f8dc31934610ee7f4f79c4ef2.zip
media-gfx/openscenegraph: New Ebuild for bug 91526 thanks to Takenori KUBO, Seemant Kulleen, Jakub Moc, Tristan Heaven, Luca Barbato, Rene Meier, Geoff Leach
svn path=/sunrise/; revision=1225
Diffstat (limited to 'media-gfx/openscenegraph')
-rw-r--r--media-gfx/openscenegraph/ChangeLog10
-rw-r--r--media-gfx/openscenegraph/Manifest20
-rw-r--r--media-gfx/openscenegraph/files/digest-openscenegraph-1.13
-rw-r--r--media-gfx/openscenegraph/files/openscenegraph-1.1-build.patch76
-rw-r--r--media-gfx/openscenegraph/metadata.xml5
-rw-r--r--media-gfx/openscenegraph/openscenegraph-1.1.ebuild137
6 files changed, 251 insertions, 0 deletions
diff --git a/media-gfx/openscenegraph/ChangeLog b/media-gfx/openscenegraph/ChangeLog
new file mode 100644
index 000000000..a0f1e00cb
--- /dev/null
+++ b/media-gfx/openscenegraph/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/openscenegraph
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 11 Sep 2006; Cedric Krier <ced@ced.homedns.org>
+ +openscenegraph-1.1.ebuild, +files/openscenegraph-1.1-build.patch,
+ +metadata.xml:
+ New Ebuild for bug 91526 thanks to Takenori KUBO, Seemant Kulleen, Jakub
+ Moc, Tristan Heaven, Luca Barbato, Rene Meier, Geoff Leach
+
diff --git a/media-gfx/openscenegraph/Manifest b/media-gfx/openscenegraph/Manifest
new file mode 100644
index 000000000..84e42c064
--- /dev/null
+++ b/media-gfx/openscenegraph/Manifest
@@ -0,0 +1,20 @@
+AUX openscenegraph-1.1-build.patch 3057 RMD160 5cfa0c6cee88f15aceac33621509bdfd0804edf4 SHA1 69d6cf6dc129f96cd77beef27522a71e3eab124a SHA256 67072b528cc31dbbee1e9a5f05e2948808a9b3b8dae4d702c167b3b90ba4fd99
+MD5 7c50a2241cdde58caf3e5bbe225978b9 files/openscenegraph-1.1-build.patch 3057
+RMD160 5cfa0c6cee88f15aceac33621509bdfd0804edf4 files/openscenegraph-1.1-build.patch 3057
+SHA256 67072b528cc31dbbee1e9a5f05e2948808a9b3b8dae4d702c167b3b90ba4fd99 files/openscenegraph-1.1-build.patch 3057
+DIST OSG_OP_OT-1.1.zip 5280940 RMD160 bfdb7f81fb65e94c25dec327ab9dc7f3aa439d20 SHA1 dd6aa2ca6c92970b0331e00ee59fefe43b91dfa2 SHA256 b2b9d4aa39c6022d304f41974e6fc766b1c1723b920b81d341dbe93c61abccc5
+EBUILD openscenegraph-1.1.ebuild 3407 RMD160 803193f2c59666b0f28bc7e34dd7f604a8c69cf6 SHA1 e96afb7561fc07fef90c8b22775009a9c538b08f SHA256 65365da89962cd64e7955ea3ddf4f3acddc4a5ee3bacc814a7bba1ea74a6b77e
+MD5 3962e8b2d55d38dd5a438b3473be9561 openscenegraph-1.1.ebuild 3407
+RMD160 803193f2c59666b0f28bc7e34dd7f604a8c69cf6 openscenegraph-1.1.ebuild 3407
+SHA256 65365da89962cd64e7955ea3ddf4f3acddc4a5ee3bacc814a7bba1ea74a6b77e openscenegraph-1.1.ebuild 3407
+MISC ChangeLog 398 RMD160 c91ea1a32c241493a933587116fb70a8bd721dc7 SHA1 5125359ca43eb9ad8bed3f4374e839800c9e9a3a SHA256 012e5c56ee0e4a43b3d61cd55d6e536fb787cd44d9389efe11aa14f00efb7a14
+MD5 def9b5eea3e16780f337b623b2ab8627 ChangeLog 398
+RMD160 c91ea1a32c241493a933587116fb70a8bd721dc7 ChangeLog 398
+SHA256 012e5c56ee0e4a43b3d61cd55d6e536fb787cd44d9389efe11aa14f00efb7a14 ChangeLog 398
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
+MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
+RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
+SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170
+MD5 3a5506bb3d7c756ab066c9e1c2b60e75 files/digest-openscenegraph-1.1 235
+RMD160 5d7a40ffddda1faa8da05d9ae3cc5296297a8c1f files/digest-openscenegraph-1.1 235
+SHA256 56fd7213f1611ae5fda3fb9a895dfb22f11866059555e44cde04c19f275a2098 files/digest-openscenegraph-1.1 235
diff --git a/media-gfx/openscenegraph/files/digest-openscenegraph-1.1 b/media-gfx/openscenegraph/files/digest-openscenegraph-1.1
new file mode 100644
index 000000000..e528f8217
--- /dev/null
+++ b/media-gfx/openscenegraph/files/digest-openscenegraph-1.1
@@ -0,0 +1,3 @@
+MD5 c140e0f53f577af6e807108dd1a8f65f OSG_OP_OT-1.1.zip 5280940
+RMD160 bfdb7f81fb65e94c25dec327ab9dc7f3aa439d20 OSG_OP_OT-1.1.zip 5280940
+SHA256 b2b9d4aa39c6022d304f41974e6fc766b1c1723b920b81d341dbe93c61abccc5 OSG_OP_OT-1.1.zip 5280940
diff --git a/media-gfx/openscenegraph/files/openscenegraph-1.1-build.patch b/media-gfx/openscenegraph/files/openscenegraph-1.1-build.patch
new file mode 100644
index 000000000..e6cb6ea39
--- /dev/null
+++ b/media-gfx/openscenegraph/files/openscenegraph-1.1-build.patch
@@ -0,0 +1,76 @@
+diff -ru OSG_OP_OT-1.1~/OpenSceneGraph/Make/instexamplesrc OSG_OP_OT-1.1/OpenSceneGraph/Make/instexamplesrc
+--- OSG_OP_OT-1.1~/OpenSceneGraph/Make/instexamplesrc 2006-09-11 10:07:24.000000000 +0200
++++ OSG_OP_OT-1.1/OpenSceneGraph/Make/instexamplesrc 2006-09-11 14:45:52.000000000 +0200
+@@ -32,7 +32,7 @@
+ cd $TOPDIR/examples/$d
+ [ -d $INST_EXAMPLE_SRC/$d ] || mkdir -m 0755 -p $INST_EXAMPLE_SRC/$d
+ echo " installing $d"
+- for f in `$MAKE __instfiles | grep -v $MAKE`
++ for f in `$MAKE __instfiles`
+ do
+ src=`echo $f | cut -f1 -d"="`
+ dst=`echo $f | cut -f2 -d"="`
+diff -ru OSG_OP_OT-1.1~/OpenSceneGraph/Make/makedefs OSG_OP_OT-1.1/OpenSceneGraph/Make/makedefs
+--- OSG_OP_OT-1.1~/OpenSceneGraph/Make/makedefs 2006-09-11 10:07:24.000000000 +0200
++++ OSG_OP_OT-1.1/OpenSceneGraph/Make/makedefs 2006-09-11 13:15:48.000000000 +0200
+@@ -76,8 +76,8 @@
+ ## doesn't make a distinction, we will.
+ ############################################################################
+
+-CXXFLAGS = $(ARCHARGS) $(DOF) $(DEF) $(INC)
+-LDFLAGS = $(ARCHARGS) $(DOF) $(LINKARGS) -L$(TOPDIR)/lib/$(OS)$(ARCH)
++CXXFLAGS += -Wall $(ARCHARGS) $(DOF) $(DEF) $(INC)
++LDFLAGS += $(ARCHARGS) $(DOF) $(LINKARGS) -L$(TOPDIR)/lib/$(OS)$(ARCH)
+ OBJS = $(C++FILES:.cpp=.o) \
+ $(CXXFILES:.cpp=.o) \
+ $(CFILES:.c=.o) \
+@@ -353,9 +353,9 @@
+ endif
+ else
+
+-ifeq ("$(COMPILE_OSG_OP_OT_WITH_SONAMES)","YES")
+- LDFLAGS += -Wl,-soname -Wl,$@.0
+-endif
++#ifeq ("$(COMPILE_OSG_OP_OT_WITH_SONAMES)","YES")
++ LDFLAGS += -Wl,-soname -Wl,$@
++#endif
+
+ # LDFLAGS += `getconf LFS_LDFLAGS`
+ # DEF += `getconf LFS_CFLAGS`
+@@ -363,7 +363,7 @@
+ LIBS = -lstdc++
+ # DEF += -W -Wall -fPIC -pipe -Woverloaded-virtual
+ DEF += -W -Wall -fPIC -pipe
+- OPTF = -O2
++ #OPTF = -O2
+ DBGF = -g -gstabs+ -DOSG_COMPILE_UNIT_TESTS
+ SYSARCH := $(shell arch)
+ ifeq ($(SYSARCH),x86_64)
+@@ -379,15 +379,15 @@
+
+ SHARED = -shared
+ ifeq ($(SYSARCH),x86_64)
+- LINKARGS = -L/usr/X11R6/lib64
++ LINKARGS = -L/usr/lib64
+ else
+- LINKARGS = -L/usr/X11R6/lib
++ LINKARGS = -L/usr/lib
+ endif
+ DYNAMICLIBRARYLIB = -ldl
+ OSG_LIBS = -losgGA -losgDB -losgUtil -losg
+ GL_LIBS = -lGLU -lGL
+ GLUT_LIBS = -lglut
+- X_INC = -I/usr/X11R6/include
++ X_INC = -I/usr/include
+ X_LIBS = -lXi -lXmu -lX11
+ PF_XTRA_LIBS = -L/usr/lib/libpfdb -Xlinker -rpath /usr/lib/libpfdb \
+ -lpfdu -lpfutil -lpf
+@@ -396,7 +396,7 @@
+ PNG_LIBS = -lpng
+ JPEG_LIBS = -ljpeg
+ TIFF_LIB = -ltiff
+- GIF_LIBS = -lungif
++ GIF_LIBS = -lgif
+ MAKEDIST = $(TOPDIR)/Make/makerpms
+
+ ifeq ("$(PROFILER)","gprof")
diff --git a/media-gfx/openscenegraph/metadata.xml b/media-gfx/openscenegraph/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/media-gfx/openscenegraph/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/media-gfx/openscenegraph/openscenegraph-1.1.ebuild b/media-gfx/openscenegraph/openscenegraph-1.1.ebuild
new file mode 100644
index 000000000..1b6649764
--- /dev/null
+++ b/media-gfx/openscenegraph/openscenegraph-1.1.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+MY_PN=OpenSceneGraph
+MY_PV=${PV/_rc/-rc}
+
+DESCRIPTION="Cross-platform, high performance 3D graphics toolkit"
+HOMEPAGE="http://www.openscenegraph.org/"
+SRC_URI="http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-${MY_PV}.zip"
+
+LICENSE="OSGPL"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc examples introspection producer gdal jasper truetype xine jpeg gif tiff png coin inventor glut"
+
+RDEPEND=">=dev-libs/openproducer-1.0.2
+ >=dev-libs/openthreads-1.4.3
+ media-libs/mesa
+ virtual/opengl
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libX11
+ gdal? ( sci-libs/gdal )
+ jasper? ( media-libs/jasper )
+ truetype? ( media-libs/freetype )
+ xine? ( media-libs/xine-lib )
+ jpeg? ( media-libs/jpeg )
+ gif? ( media-libs/giflib )
+ tiff? ( media-libs/tiff )
+ png? ( media-libs/libpng
+ sys-libs/zlib )
+ coin? ( media-libs/coin )
+ inventor? ( media-libs/openinventor )
+ glut? ( virtual/glut )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ doc? ( app-doc/doxygen )"
+
+S=${WORKDIR}/OSG_OP_OT-${MY_PV}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ local myconf
+
+ use introspection \
+ && myconf="${myconf} COMPILE_INTROSPECTION=yes" \
+ || myconf="${myconf} COMPILE_INTROSPECTION=no"
+
+ use producer \
+ && myconf="${myconf} PRODUCER_INSTALLED=yes" \
+ || myconf="${myconf} PRODUCER_INSTALLED=no"
+
+ use examples \
+ && myconf="${myconf} COMPILE_EXAMPLES=yes" \
+ || myconf="${myconf} COMPILE_EXAMPLES=no"
+
+ use gdal \
+ && myconf="${myconf} GDAL_INSTALLED=yes" \
+ || myconf="${myconf} GDAL_INSTALLED=no"
+
+ use jasper \
+ && myconf="${myconf} JASPER_INSTALLED=yes" \
+ || myconf="${myconf} JASPER_INSTALLED=no"
+
+ use truetype \
+ && myconf="${myconf} FREETYPE_INSTALLED=yes" \
+ || myconf="${myconf} FREETYPE_INSTALLED=no"
+
+ use xine \
+ && myconf="${myconf} XINE_INSTALLED=yes" \
+ || myconf="${myconf} XINE_INSTALLED=no"
+
+ myconf="${myconf} QUICKTIME_INSTALLED=no"
+
+ use jpeg \
+ && myconf="${myconf} LIBJPEG_INSTALLED=yes" \
+ || myconf="${myconf} LIBJPEG_INSTALLED=no"
+
+ use gif \
+ && myconf="${myconf} LIBUNGIF_INSTALLED=yes" \
+ || myconf="${myconf} LIBUNGIF_INSTALLED=no"
+
+ use tiff \
+ && myconf="${myconf} LIBTIFF_INSTALLED=yes" \
+ || myconf="${myconf} LIBTIFF_INSTALLED=no"
+
+ use png \
+ && myconf="${myconf} LIBPNG_INSTALLED=yes" \
+ || myconf="${myconf} LIBPNG_INSTALLED=no"
+
+ use coin \
+ && myconf="${myconf} COIN_INSTALLED=yes" \
+ || myconf="${myconf} COIN_INSTALLED=no"
+
+ use inventor \
+ && myconf="${myconf} INVENTOR_INSTALLED=yes" \
+ || myconf="${myconf} INVENTOR_INSTALLED=no"
+
+ myconf="${myconf} PERFORMER_INSTALLED=no"
+
+ use glut \
+ && myconf="${myconf} GLUT_INSTALLED=yes" \
+ || myconf="${myconf} GLUT_INSTALLED=no"
+
+ emake CXX=$(tc-getCXX) ${myconf} || die "emake failed"
+
+ if use doc; then
+ OSGHOME="${S}" doxygen doc/Doxyfiles/all_Doxyfile
+ fi
+}
+
+src_install() {
+ emake INST_LOCATION="${D}"/usr INST_EXAMPLES="${D}"/usr/bin \
+ INST_EXAMPLE_SRC="${D}"/usr/share/doc/${P}/examples \
+ INST_SRC="${D}"/usr/share/doc/${P}/src install \
+ || die "emake install failed"
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins Make/openscenegraph.pc
+
+
+ dodoc AUTHORS.txt ChangeLog NEWS.txt README.txt
+
+ if use doc; then
+ dodoc doc/ProgrammingGuide/ProgrammingGuide.odt
+ dohtml -r doc/doxygen/html
+ fi
+}