openbsd-ports/graphics/opencsg/Makefile
matthew 2262322e6f Add OpenCSG 1.3.1.
ok landry@

OpenCSG is a library that does image-based CSG rendering using OpenGL.
OpenCSG is written in C++ and supports most modern graphics hardware.

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.

Image-based CSG rendering (also z-buffer CSG rendering) is a term that
denotes algorithms for rendering CSG shapes without an explicit
calculation of the geometric boundary of a CSG shape. Such algorithms
use frame-buffer settings of the graphics hardware, e.g., the depth
and stencil buffer, to compose CSG shapes. OpenCSG implements a
variety of those algorithms, namely the Goldfeather algorithm and the
SCS algorithm, both of them in several variants.
2011-04-29 18:00:03 +00:00

41 lines
859 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/04/29 18:00:03 matthew Exp $
COMMENT = Constructive Solid Geometry rendering library
V = 1.3.1
DISTNAME = OpenCSG-${V}
PKGNAME = opencsg-${V}
SHARED_ONLY = Yes
SHARED_LIBS = opencsg 0.0
CATEGORIES = graphics
HOMEPAGE = http://www.opencsg.org/
# GPLv2 with CGAL exception
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = GL GLEW GLU lib/qt4/QtGui m stdc++
MODULES = x11/qt4
LIB_DEPENDS = graphics/glew
MASTER_SITES = http://www.opencsg.org/
WRKSRC = ${WRKDIST}/src
do-configure:
${SUBST_CMD} ${WRKSRC}/src.pro
cd ${WRKSRC} && qmake4 src.pro
do-install:
${INSTALL_DATA} ${WRKDIST}/lib/libopencsg.so.${LIBopencsg_VERSION} \
${PREFIX}/lib
${INSTALL_DATA} ${WRKDIST}/include/opencsg.h ${PREFIX}/include
.include <bsd.port.mk>