diff options
author | Matthew Marlowe <mattm@gentoo.org> | 2012-08-02 02:06:34 +0000 |
---|---|---|
committer | Matthew Marlowe <mattm@gentoo.org> | 2012-08-02 02:06:34 +0000 |
commit | 3d68fdfc96eddac312420ed11dbcd78fd801194d (patch) | |
tree | 84ce4d833b808b94eb66f8f2d1b47a2f82342952 /media-gfx/opencsg | |
parent | Fix spelling. (diff) | |
download | gentoo-2-3d68fdfc96eddac312420ed11dbcd78fd801194d.tar.gz gentoo-2-3d68fdfc96eddac312420ed11dbcd78fd801194d.tar.bz2 gentoo-2-3d68fdfc96eddac312420ed11dbcd78fd801194d.zip |
Adding user submitted ebuild to tree. OpenCSG is a required dependency of OpenSCAD which is a popular 3d modeling tool in the 3d printing community. Bug #300856. Thanks to bWare@iWare.co.uk for opening the initial bug and including an ebuild.
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/opencsg')
-rw-r--r-- | media-gfx/opencsg/ChangeLog | 0 | ||||
-rw-r--r-- | media-gfx/opencsg/metadata.xml | 13 | ||||
-rw-r--r-- | media-gfx/opencsg/opencsg-1.3.2.ebuild | 43 |
3 files changed, 56 insertions, 0 deletions
diff --git a/media-gfx/opencsg/ChangeLog b/media-gfx/opencsg/ChangeLog new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/media-gfx/opencsg/ChangeLog diff --git a/media-gfx/opencsg/metadata.xml b/media-gfx/opencsg/metadata.xml new file mode 100644 index 000000000000..c90d92f5ccd0 --- /dev/null +++ b/media-gfx/opencsg/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>mattm@gentoo.org</email> +<name>Matthew Marlowe</name> +</maintainer> +<longdescription> +OpenCSG is a library that does image-based CSG rendering using OpenGL. OpenCSG is written in C++ and supports most modern graphics hardware using Microsoft Windows or the Linux operating system. What is CSG, anyway? CSG is short for Constructive Solid Geometry and denotes an approach to model complex 3D-shapes using simpler ones. I.e., two shapes can be combined by taking the union of them, by intersecting them, or by subtracting one shape of the other. SG is often used as fundamental modeling technique in CAD/CAM applications. Here, image-based CSG rendering is the key to interactively manipulate CSG shapes. Since OpenCSG renders even complex CSG shapes fast, it can be advantageously used in such applications. The OpenCSG library requires graphics hardware that either supports frame buffer objects or PBuffers in OpenGL. +</longdescription> +<use> +</use> +</pkgmetadata> diff --git a/media-gfx/opencsg/opencsg-1.3.2.ebuild b/media-gfx/opencsg/opencsg-1.3.2.ebuild new file mode 100644 index 000000000000..23effae8257b --- /dev/null +++ b/media-gfx/opencsg/opencsg-1.3.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/opencsg/opencsg-1.3.2.ebuild,v 1.1 2012/08/02 02:06:34 mattm Exp $ + +EAPI="2" + +inherit qt4-r2 + +DESCRIPTION="The Constructive Solid Geometry rendering library" +HOMEPAGE="http://www.opencsg.org/" +SRC_URI="http://www.opencsg.org/OpenCSG-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +CDEPEND="media-libs/glew x11-libs/qt-core" +DEPEND="${CDEPEND} sys-devel/gcc" +RDEPEND="${CDEPEND}" + +S="${WORKDIR}/OpenCSG-${PV}" + +src_unpack() { + unpack ${A} + + /bin/rm -Rf "${S}"/glew +} + +src_prepare() { + # We actually want to install somthing + cat << EOF >> src/src.pro +include.path=/usr/include +include.files=../include/* +target.path=/usr/lib +INSTALLS += target include +EOF + +} + +src_configure() { + eqmake4 "${S}"/src/src.pro +} |