1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/math/carve/Makefile
Pietro Cerutti 2bbecf479f - New port: math/carve
Carve is a C++ library designed to perform boolean operations between two
  arbitrary polygonal meshes. The standard union and intersection operations
  are supported, as are symmetric and asymmetric difference. It is also
  possible to implement custom operations using Carve, allowing results to be
  formed from any combination of inputs.
  Carve supports a variety of inputs, including both closed and open surfaces,
  faces with arbitrary edge counts and datasets with multiple disjoint,
  embedded or touching surfaces. Carve can also interpolate arbitrary values
  across faces, meaning that CSG operations need not discard colour, texture
  coordinates or other data.

  WWW: http://code.google.com/p/carve/
2012-02-20 10:56:06 +00:00

51 lines
1.0 KiB
Makefile

# New ports collection Makefile for: carve
# Date created: 16 November 2011
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= carve
PORTVERSION= 1.4.0
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX= .tgz
MAINTAINER= gahr@FreeBSD.org
COMMENT= A fast, robust constructive solid geometry library
LIB_DEPENDS= boost_filesystem.4:${PORTSDIR}/devel/boost-libs
OPTIONS= GUI "Enable GUI" off
USE_CMAKE= yes
CMAKE_OUTSOURCE=yes
USE_GL= glut
USE_LDCONFIG= yes
LICENSE= GPLv2
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if defined(WITH_GUI)
LIB_DEPENDS+= glui:${PORTSDIR}/devel/glui
PLIST_SUB+= GUI=""
CMAKE_ARGS+= -DCARVE_WITH_GUI:BOOL=true
.else
CONFIGURE_ARGS+=--with-gui=no
PLIST_SUB+= GUI="@comment "
CMAKE_ARGS+= -DCARVE_WITH_GUI:BOOL=false
.endif
post-install:
${LN} -sf libcarve.so.${PORTVERSION} ${PREFIX}/lib/libcarve.so.${PORTVERSION:R:R}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/carve.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>