diff options
author | reinoud <reinoud@pkgsrc.org> | 2012-02-26 20:41:04 +0000 |
---|---|---|
committer | reinoud <reinoud@pkgsrc.org> | 2012-02-26 20:41:04 +0000 |
commit | d3d4b8e316110934f5efd67a2933dac846295f25 (patch) | |
tree | d1121593f83de710dfb95672586446343747c0b4 /graphics/opencsg | |
parent | f6adca824cfc8552d2682cfef59a0335297b4f07 (diff) | |
download | pkgsrc-d3d4b8e316110934f5efd67a2933dac846295f25.tar.gz |
Add OpenCSG 1.3.2, an image based CSG renderer that renders the CSG using
OpenGL.
Diffstat (limited to 'graphics/opencsg')
-rw-r--r-- | graphics/opencsg/DESCR | 10 | ||||
-rw-r--r-- | graphics/opencsg/Makefile | 30 | ||||
-rw-r--r-- | graphics/opencsg/PLIST | 6 | ||||
-rw-r--r-- | graphics/opencsg/buildlink3.mk | 14 | ||||
-rw-r--r-- | graphics/opencsg/distinfo | 6 | ||||
-rw-r--r-- | graphics/opencsg/patches/patch-Makefile | 11 |
6 files changed, 77 insertions, 0 deletions
diff --git a/graphics/opencsg/DESCR b/graphics/opencsg/DESCR new file mode 100644 index 00000000000..3dbeddb1881 --- /dev/null +++ b/graphics/opencsg/DESCR @@ -0,0 +1,10 @@ +OpenCSG is a library that does image-based CSG rendering using OpenGL. OpenCSG +is written in C++ and supports most modern graphics hardware. + +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. The most basic shapes, which are not +result of such a CSG operation, are called primitives. Primitives must be +solid, i.e., they must have a clearly defined interior and exterior. By +construction, a CSG shape is also solid then. diff --git a/graphics/opencsg/Makefile b/graphics/opencsg/Makefile new file mode 100644 index 00000000000..b0f52e2310a --- /dev/null +++ b/graphics/opencsg/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/02/26 20:41:04 reinoud Exp $ +# + +PKGNAME= opencsg-1.3.2 +DISTNAME= OpenCSG-1.3.2 +CATEGORIES= graphics +MASTER_SITES= http://www.opencsg.org/ + +MAINTAINER= reinoud@tomaatnet.nl +HOMEPAGE= http://www.opencsg.org/ +COMMENT= Image based CSG rendering library using OpenGL +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= pkg-config gmake +USE_LANGUAGES= c c++ + +do-install: + ${INSTALL_LIB} -d ${DESTDIR}${PREFIX}/lib + ${INSTALL_LIB} -d ${DESTDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/lib/* ${DESTDIR}${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${PREFIX}/include/ + +.include "../../mk/x11.buildlink3.mk" +.include "../../graphics/glew/buildlink3.mk" +.include "../../graphics/glu/buildlink3.mk" +#.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../x11/libXmu/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/opencsg/PLIST b/graphics/opencsg/PLIST new file mode 100644 index 00000000000..3eac9019cf6 --- /dev/null +++ b/graphics/opencsg/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/26 20:41:04 reinoud Exp $ +include/opencsg.h +lib/libopencsg.so +lib/libopencsg.so.1 +lib/libopencsg.so.1.3 +lib/libopencsg.so.${PKGVERSION} diff --git a/graphics/opencsg/buildlink3.mk b/graphics/opencsg/buildlink3.mk new file mode 100644 index 00000000000..e0022290ba8 --- /dev/null +++ b/graphics/opencsg/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/02/26 20:41:04 reinoud Exp $ + +BUILDLINK_TREE+= opencsg + +.if !defined(OPENCSG_BUILDLINK3_MK) +OPENCSG_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.opencsg+= opencsg>=1.3.2 +BUILDLINK_PKGSRCDIR.opencsg?= ../../graphics/opencsg + +.include "../../graphics/glew/buildlink3.mk" +.endif # OPENCSG_BUILDLINK3_MK + +BUILDLINK_TREE+= -opencsg diff --git a/graphics/opencsg/distinfo b/graphics/opencsg/distinfo new file mode 100644 index 00000000000..c88fb10c882 --- /dev/null +++ b/graphics/opencsg/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/02/26 20:41:04 reinoud Exp $ + +SHA1 (OpenCSG-1.3.2.tar.gz) = e2b4abf169ae3e319eb5f6d9ae6136fa96710a05 +RMD160 (OpenCSG-1.3.2.tar.gz) = 4480778c310a3d5f84933c1b35508dd94adf2332 +Size (OpenCSG-1.3.2.tar.gz) = 744712 bytes +SHA1 (patch-Makefile) = 13c3cc669156b04b5d09af9587f76d1055629518 diff --git a/graphics/opencsg/patches/patch-Makefile b/graphics/opencsg/patches/patch-Makefile new file mode 100644 index 00000000000..ea830779f9e --- /dev/null +++ b/graphics/opencsg/patches/patch-Makefile @@ -0,0 +1,11 @@ +$NetBSD: patch-Makefile,v 1.1.1.1 2012/02/26 20:41:04 reinoud Exp $ + +--- Makefile.orig 2011-12-01 21:25:12.000000000 +0000 ++++ Makefile +@@ -1,4 +1,5 @@ +-SUBDIRS = glew src example ++# only build src since we are linking using pkgsrc to libglew ++SUBDIRS = src + + all: + for X in $(SUBDIRS); do make -C $$X ; done |