blob: 3d5187cad773c215917292686521d93f70436dbf (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$
PORTNAME= opencolorio
PORTVERSION= 1.0.8
PORTREVISION?= 1
CATEGORIES= graphics multimedia
MAINTAINER?= FreeBSD@Shaneware.biz
COMMENT?= Complete color management solution
LICENSE= BSD
USE_GITHUB= yes
GH_ACCOUNT= imageworks
GH_PROJECT= OpenColorIO
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= 8883824
OPTIONS_DEFINE= DOCS
LDFLAGS+= -L${LOCALBASE}/lib
PLIST= ${PKGDIR}/pkg-plist${PKGNAMESUFFIX}
USES= cmake:outsource pkgconfig
CMAKE_ARGS= -DOCIO_BUILD_JNIGLUE:BOOL=OFF \
-DOCIO_BUILD_NUKE:BOOL=OFF \
-DOCIO_BUILD_STATIC:BOOL=OFF \
-DUSE_EXTERNAL_TINYXML:BOOL=ON \
-DUSE_EXTERNAL_YAML:BOOL=ON
.if ${MACHINE_CPU:Msse2}
CMAKE_ARGS+= -DOCIO_USE_SSE:BOOL=ON
.else
CMAKE_ARGS+= -DOCIO_USE_SSE:BOOL=OFF
.endif
.include <bsd.port.options.mk>
.if ${SLAVE_PORT} == no
LIB_DEPENDS= libtinyxml.so:${PORTSDIR}/textproc/tinyxml \
libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp
USE_PYTHON= 2.6+
USE_LDCONFIG= yes
CMAKE_ARGS+= -DOCIO_BUILD_APPS:BOOL=OFF \
-DOCIO_BUILD_SHARED:BOOL=ON \
-DOCIO_BUILD_PYGLUE:BOOL=ON \
-DPYTHON:FILEPATH=${PYTHON_CMD}
.else
LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \
libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio
CMAKE_ARGS+= -DOCIO_BUILD_APPS:BOOL=ON \
-DOCIO_BUILD_SHARED:BOOL=OFF \
-DOCIO_BUILD_PYGLUE:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS+= -DOCIO_BUILD_DOCS:BOOL=ON
.else
CMAKE_ARGS+= -DOCIO_BUILD_DOCS:BOOL=OFF
.endif
.include <bsd.port.mk>
|