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
|
PORTNAME= appleseed
DISTVERSION= 2.1.0-beta
PORTREVISION= 13
CATEGORIES= graphics
MAINTAINER= danfe@FreeBSD.org
COMMENT= Modern, physically-based production renderer
WWW= https://appleseedhq.net/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
liblz4.so:archivers/liblz4 \
libpng.so:graphics/png \
libIlmThread.so:graphics/openexr \
libImath.so:math/Imath \
libOpenColorIO.so:graphics/opencolorio \
libOpenImageIO.so:graphics/openimageio \
libxerces-c.so:textproc/xerces-c3 \
liboslexec.so:graphics/openshadinglanguage
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}hq
BROKEN= cannot build with recent Boost and OCIO libs
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= not ported to it yet
USES= cmake compiler:c++11-lang shebangfix
SHEBANG_FILES= scripts/*.py
CFLAGS+= -I${LOCALBASE}/include/Imath
CFLAGS+= -I${LOCALBASE}/include/OpenEXR
CMAKE_ARGS= -DWITH_PYTHON2_BINDINGS:BOOL=OFF \
-DWITH_DOXYGEN:BOOL=OFF \
-DINSTALL_HEADERS:BOOL=OFF \
-DINSTALL_TESTS:BOOL=OFF \
-DINSTALL_API_EXAMPLES:BOOL=OFF \
-DWARNINGS_AS_ERRORS:BOOL=OFF
.for lib in BOOST EMBREE EXR OCIO OIIO OSL
CMAKE_ARGS+= -DUSE_STATIC_${lib}:BOOL=OFF
.endfor
# Not ready for hier(7)-conforming installation yet
CMAKE_INSTALL_PREFIX= ${PREFIX}/${PKGBASE}
PLIST_SUB= APPHOME=${CMAKE_INSTALL_PREFIX}
SUB_FILES= pkg-message
SUB_LIST:= ${PLIST_SUB}
OPTIONS_DEFINE= EMBREE PYTHON STUDIO
OPTIONS_DEFAULT= PYTHON STUDIO
OPTIONS_SUB= yes
EMBREE_DESC= Embree intersection backend support
EMBREE_LIB_DEPENDS= libembree3.so:graphics/embree
EMBREE_CMAKE_ON= -DWITH_EMBREE:BOOL=ON
PYTHON_USES= gl python:3.5+,build,run
PYTHON_USE= GL=gl
PYTHON_CMAKE_ON= -DWITH_PYTHON3_BINDINGS:BOOL=ON
STUDIO_DESC= Build appleseed.studio (Qt-based)
STUDIO_LIB_DEPENDS= ${PY_BOOST}
STUDIO_USES= qt:5
STUDIO_USE= QT=buildtools:build,qmake:build,concurrent,core,gui,opengl,widgets
STUDIO_CMAKE_OFF= -DWITH_STUDIO:BOOL=OFF
STUDIO_IMPLIES= PYTHON
post-patch:
@${RMDIR} ${WRKSRC}/sandbox/docs/api
@${RM} ${WRKSRC}/sandbox/share/cmake/Modules/FindOpenImageIO.cmake
${REINPLACE_CMD} 's,OpenEXR/Imath,Imath/Imath,' \
${WRKSRC}/sandbox/share/cmake/Modules/FindImath.cmake \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_quaternion.cpp \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_matrix.cpp \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_quaternion.cpp \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_vector.cpp \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_aabb.cpp \
${WRKSRC}/src/appleseed/foundation/meta/tests/test_color.cpp \
${WRKSRC}/src/appleseed/foundation/math/vector.h \
${WRKSRC}/src/appleseed/foundation/math/aabb.h \
${WRKSRC}/src/appleseed/foundation/math/matrix.h \
${WRKSRC}/src/appleseed/foundation/math/quaternion.h \
${WRKSRC}/src/appleseed/foundation/image/color.h
.include <bsd.port.mk>
PATCH_ARGS+= -l
|