From 63a776b9fa5bac05ad4b7103144bc5fe9eabc990 Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Sun, 14 Jul 2019 17:13:18 +0200 Subject: graphics-libs/opencsg: new spell, a CSG library --- graphics-libs/opencsg/BUILD | 1 + graphics-libs/opencsg/DEPENDS | 3 +++ graphics-libs/opencsg/DETAILS | 16 +++++++++++++++ graphics-libs/opencsg/HISTORY | 4 ++++ graphics-libs/opencsg/PRE_BUILD | 6 ++++++ .../opencsg/opencsg-1.4.2-includepath.patch | 24 ++++++++++++++++++++++ 6 files changed, 54 insertions(+) create mode 100755 graphics-libs/opencsg/BUILD create mode 100755 graphics-libs/opencsg/DEPENDS create mode 100755 graphics-libs/opencsg/DETAILS create mode 100644 graphics-libs/opencsg/HISTORY create mode 100755 graphics-libs/opencsg/PRE_BUILD create mode 100644 graphics-libs/opencsg/opencsg-1.4.2-includepath.patch (limited to 'graphics-libs') diff --git a/graphics-libs/opencsg/BUILD b/graphics-libs/opencsg/BUILD new file mode 100755 index 0000000000..0694f5668d --- /dev/null +++ b/graphics-libs/opencsg/BUILD @@ -0,0 +1 @@ +qt5_build diff --git a/graphics-libs/opencsg/DEPENDS b/graphics-libs/opencsg/DEPENDS new file mode 100755 index 0000000000..fe7759669e --- /dev/null +++ b/graphics-libs/opencsg/DEPENDS @@ -0,0 +1,3 @@ +depends OPENGL && +depends gcc && +depends glew diff --git a/graphics-libs/opencsg/DETAILS b/graphics-libs/opencsg/DETAILS new file mode 100755 index 0000000000..3a9a68ebb7 --- /dev/null +++ b/graphics-libs/opencsg/DETAILS @@ -0,0 +1,16 @@ + SPELL=opencsg + VERSION=1.4.2 + SOURCE="OpenCSG-${VERSION}.tar.gz" + SOURCE_URL[0]=http://www.${SPELL}.org/${SOURCE} + SOURCE_HASH=sha512:fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778 +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/OpenCSG-${VERSION}" + WEB_SITE="http://www.opencsg.org" + LICENSE[0]=GPL + ENTERED=20190714 + SHORT="a library that does image-based CSG rendering using OpenGL" +cat << EOF +OpenCSG is a library that does image-based CSG rendering using OpenGL. 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. +EOF diff --git a/graphics-libs/opencsg/HISTORY b/graphics-libs/opencsg/HISTORY new file mode 100644 index 0000000000..f2dc4d377c --- /dev/null +++ b/graphics-libs/opencsg/HISTORY @@ -0,0 +1,4 @@ +2019-07-14 Florian Franzmann + * BUILD, DEPENDS, DETAILS, opencsg-1.4.2-includepath.patch, PRE_BUILD: + spell created + diff --git a/graphics-libs/opencsg/PRE_BUILD b/graphics-libs/opencsg/PRE_BUILD new file mode 100755 index 0000000000..695dbe6fd5 --- /dev/null +++ b/graphics-libs/opencsg/PRE_BUILD @@ -0,0 +1,6 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && + +rm -rf glew && +patch -p1 < "$SPELL_DIRECTORY/opencsg-1.4.2-includepath.patch" + diff --git a/graphics-libs/opencsg/opencsg-1.4.2-includepath.patch b/graphics-libs/opencsg/opencsg-1.4.2-includepath.patch new file mode 100644 index 0000000000..3a7309563b --- /dev/null +++ b/graphics-libs/opencsg/opencsg-1.4.2-includepath.patch @@ -0,0 +1,24 @@ +* Fix build with GCC 6 +* Don't hardcode libdir + +Gentoo-bug: 623840 + +--- a/src/src.pro ++++ b/src/src.pro +@@ -7,14 +7,14 @@ + } + + CONFIG += opengl warn_on release +-INCLUDEPATH += ../include ../ $$INSTALLDIR/include ++INCLUDEPATH += ../include .. + CONFIG -= qt +-LIBS += -L$$INSTALLDIR/lib -lGLEW ++LIBS += -lGLEW + + DESTDIR = ../lib + headers.files = ../include/opencsg.h + headers.path = $$INSTALLDIR/include + target.path = $$INSTALLDIR/lib + INSTALLS += target headers + + HEADERS = ../include/opencsg.h \ -- cgit v1.2.3