blob: 9490d030cc30b87f2a4142f1c38a4b8ecd3e14b4 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: OpenImageIO
# Date created: 21 March 2012
# Whom: Shane Ambler
#
# $FreeBSD$
#
PORTNAME= openimageio
PORTVERSION= 1.0.3
PORTREVISION= 2
CATEGORIES= graphics multimedia
MASTER_SITES= https://github.com/OpenImageIO/oiio/tarball/
DISTNAME= Release-${PORTVERSION}
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT= OpenImageIO graphics library
LICENSE= BSD
LIB_DEPENDS= IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
boost_thread.4:${PORTSDIR}/devel/boost-libs \
hdf5:${PORTSDIR}/science/hdf5 \
opencv_legacy.2:${PORTSDIR}/graphics/opencv \
openjpeg:${PORTSDIR}/graphics/openjpeg \
tbb.4:${PORTSDIR}/devel/tbb \
webp.2:${PORTSDIR}/graphics/webp
FETCH_ARGS= -pRr
USE_CMAKE= yes
CMAKE_VERBOSE= yes
CMAKE_OUTSOURCE= yes
CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
-DLINKSTATIC:BOOL=OFF \
-DUSE_PYTHON:BOOL=OFF \
-DUSE_TBB:BOOL=ON
LDFLAGS+= -ltbb
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/OpenImageIO-oiio-2388ebf/src
MAKE_JOBS_SAFE= yes
OPTIONS= IMAGEVIEWER "Build image viewer" on \
NOTHREADS "Disable thread support" off
.include <bsd.port.options.mk>
.if defined(NOPORTDOCS)
CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=OFF
.endif
.if defined(WITH_IMAGEVIEWER)
USE_GL= glew
USE_QT_VER= 4
QT_COMPONENTS= corelib gui opengl qmake_build moc_build rcc_build uic_build
CMAKE_ARGS+= -DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON
CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
PLIST_SUB+= IMAGEVIEWER=""
.else
CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
PLIST_SUB+= IMAGEVIEWER="@comment "
.endif
.if defined(WITH_NOTHREADS)
CMAKE_ARGS+= -DNOTHREADS:BOOL=ON
.else
CMAKE_ARGS+= -DNOTHREADS:BOOL=OFF
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386" || ${OSVERSION} < 803000
USE_GCC= 4.6+
.endif
.if ${OSVERSION} < 800000
IGNORE= requires FreeBSD 8.0 or higher
.endif
post-install:
cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.0 libOpenImageIO.so.1
.include <bsd.port.post.mk>
|