blob: 1e336e0923cf08a6e59df9a93edcc3ea41dee3ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: gahr
# $FreeBSD$
PORTNAME= carve
PORTVERSION= 1.4.0
PORTREVISION= 8
CATEGORIES= math
MASTER_SITES= GOOGLE_CODE
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast, robust constructive solid geometry library
LICENSE= GPLv2
BROKEN= Unfetchable (google code has gone away)
DEPRECATED= Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE= 2017-04-30
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs
OPTIONS_DEFINE= DOCS GUI
OPTIONS_SUB= yes
USES= cmake:outsource compiler:c++11-lib tar:tgz
USE_GL= glut
USE_LDCONFIG= yes
PORTDOCS= *
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -std=c++11
LDFLAGS+= -L${LOCALBASE}/lib
GUI_LIB_DEPENDS= libglui.so:devel/glui
GUI_CONFIGURE_OFF= --with-gui=no
GUI_CMAKE_BOOL= CARVE_WITH_GUI
post-patch:
${FIND} ${WRKSRC} -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | ${XARGS} \
${REINPLACE_CMD} -e 's|::tr1||g'
${REINPLACE_CMD} -e '/gtest/s|^|#|; /tests/s|^|#|' ${WRKSRC}/CMakeLists.txt
${REINPLACE_CMD} -e 's|__is_heap|is_heap|' ${WRKSRC}/lib/triangulator.cpp
post-install:
${LN} -sf libcarve.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcarve.so.${PORTVERSION:R:R}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/carve.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|