blob: da9626faf21bde445d369ca88697986ea2430822 (
plain) (
blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= k3d
PORTVERSION= 0.8.0.2
PORTREVISION= 1
DISTVERSIONPREFIX= source-
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/K-3D%20Source/K-3D%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= 3D modeling, animation, and rendering system
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/gmm/gmm.h:${PORTSDIR}/math/gmm++
LIB_DEPENDS= boost_python:${PORTSDIR}/devel/boost-python-libs \
execinfo:${PORTSDIR}/devel/libexecinfo \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
uuid:${PORTSDIR}/misc/e2fsprogs-libuuid \
expat:${PORTSDIR}/textproc/expat2 \
gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext \
gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
OPTIONS_DEFINE= 3DS COMPIZ GNOME PERFTOOLS GTS IMAGEMAGICK OPENEXR
3DS_DESC= 3ds_io plugin module
COMPIZ_DESC= Compiz plugin module
GNOME_DESC= GNOME integration plugin module
PERFTOOLS_DESC= Google Perftools profiling module
GTS_DESC= GNU Triangulated Surfaces plugin module
IMAGEMAGICK_DESC= ImageMagick file format module
OPENEXR_DESC= OpenEXR file format module
USE_BZIP2= yes
USE_GL= glu
USE_GNOME= gtksourceview2
USE_DOS2UNIX= *.hpp
USE_GCC= 4.6+
USE_PYTHON= yes
USE_GETTEXT= yes
USES= cmake:outsource
CMAKE_ARGS= -DK3D_INTL_INCLUDE_DIRS:STRING="-I${LOCALBASE}/include" \
-DK3D_INTL_LIBS:STRING="-L${LOCALBASE}/lib -lintl" \
-DK3D_BUILD_CARVE_MODULE:BOOL=OFF \
-DK3D_BUILD_CGAL_MODULE:BOOL=OFF \
-DK3D_BUILD_COLLADA_IO_MODULE:BOOL=OFF \
-DK3D_BUILD_INOTIFY_MODULE:BOOL=OFF \
-DK3D_BUILD_OPENCASCADE_MODULE:BOOL=OFF
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
MAN1= k3d.1 k3d-renderframe.1 k3d-renderjob.1 k3d-sl2xml.1 \
k3d-uuidgen.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:M3DS}
LIB_DEPENDS+= 3ds-1:${PORTSDIR}/graphics/lib3ds
PLIST_SUB+= 3DS=""
.else
CMAKE_ARGS+= -DK3D_BUILD_3DS_IO_MODULE:BOOL=OFF
PLIST_SUB+= 3DS="@comment "
.endif
.if ${PORT_OPTIONS:MCOMPIZ}
LIB_DEPENDS+= dbus-glib:${PORTSDIR}/devel/dbus-glib
PLIST_SUB+= COMPIZ=""
.else
CMAKE_ARGS+= -DK3D_BUILD_COMPIZ_MODULE:BOOL=OFF
PLIST_SUB+= COMPIZ="@comment "
.endif
.if ${PORT_OPTIONS:MGNOME}
USE_GNOME+= gnomevfs2
PLIST_SUB+= GNOME=""
.else
CMAKE_ARGS+= -DK3D_BUILD_GNOME_MODULE:BOOL=OFF
PLIST_SUB+= GNOME="@comment "
.endif
.if ${PORT_OPTIONS:MPERFTOOLS}
LIB_DEPENDS+= profiler:${PORTSDIR}/devel/google-perftools
PLIST_SUB+= PERFTOOLS=""
.else
CMAKE_ARGS+= -DK3D_BUILD_GOOGLE_PERFTOOLS_MODULE:BOOL=OFF
PLIST_SUB+= PERFTOOLS="@comment "
.endif
.if ${PORT_OPTIONS:MGTS}
LIB_DEPENDS+= gts:${PORTSDIR}/graphics/gts
PLIST_SUB+= GTS=""
.else
CMAKE_ARGS+= -DK3D_BUILD_GTS_MODULE:BOOL=OFF
PLIST_SUB+= GTS="@comment "
.endif
.if ${PORT_OPTIONS:MIMAGEMAGICK}
LIB_DEPENDS+= MagickCore:${PORTSDIR}/graphics/ImageMagick
PLIST_SUB+= IMAGEMAGICK=""
.else
CMAKE_ARGS+= -DK3D_BUILD_IMAGEMAGICK_IO_MODULE:BOOL=OFF
PLIST_SUB+= IMAGEMAGICK="@comment "
.endif
.if ${PORT_OPTIONS:MOPENEXR}
LIB_DEPENDS+= IlmImf:${PORTSDIR}/graphics/OpenEXR
PLIST_SUB+= OPENEXR=""
.else
CMAKE_ARGS+= -DK3D_BUILD_OPENEXR_IO_MODULE:BOOL=OFF
PLIST_SUB+= OPENEXR="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/modules/*.cmake
@${REINPLACE_CMD} -e \
's|share/man|man|' ${WRKSRC}/man/CMakeLists.txt
.include <bsd.port.mk>
|