summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xgraphics-libs/opencsg/BUILD1
-rwxr-xr-xgraphics-libs/opencsg/DEPENDS3
-rwxr-xr-xgraphics-libs/opencsg/DETAILS16
-rw-r--r--graphics-libs/opencsg/HISTORY4
-rwxr-xr-xgraphics-libs/opencsg/PRE_BUILD6
-rw-r--r--graphics-libs/opencsg/opencsg-1.4.2-includepath.patch24
7 files changed, 57 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 65951d0ed9..ae62d045cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2019-07-14 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * graphics-libs/opencsg: new spell, a CSG library
+
2019-07-13 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* audio-libs/opusfile: new spell, a lib for decoding opus files
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 <siflfran@hawo.stw.uni-erlangen.de>
+ * 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 \