1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/math/carve/Makefile
Max Brazhnikov ffd97a0193 - convert USE_CMAKE to USES
- while here clean up some ports from CMAKE_VERBOSE, which is intended
  for users

Approved by:	portmgr (miwi)
2013-03-22 20:06:14 +00:00

47 lines
963 B
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= carve
PORTVERSION= 1.4.0
PORTREVISION= 2
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:${PORTSDIR}/devel/boost-libs
OPTIONS_DEFINE= GUI
USES= cmake:outsource
USE_GL= glut
USE_LDCONFIG= yes
LICENSE= GPLv2
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGUI}
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>