blob: cea5a85d7d5195f4dba055642551b0834c626534 (
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
|
# $NetBSD: Makefile,v 1.77 2021/07/14 17:58:21 adam Exp $
DISTNAME= oiio-2.2.16.0
PKGNAME= ${DISTNAME:S/oiio/openimageio/}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenImageIO/}
GITHUB_PROJECT= oiio
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://sites.google.com/site/openimageio/
COMMENT= C++ library for reading and writing images
LICENSE= modified-bsd
UNLIMIT_RESOURCES= datasize virtualsize
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
TEST_TARGET= test
CMAKE_ARGS+= -DSTOP_ON_WARNING=OFF # Disable -Werror
CMAKE_ARGS+= -DBUILD_MISSING_FMT=OFF
CMAKE_ARGS+= -DBUILD_MISSING_ROBINMAP=OFF
CMAKE_ARGS+= -DUSE_EXTERNAL_PUGIXML=ON
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF
CMAKE_ARGS+= -DROBINMAP_INCLUDE_DIR=${BUILDLINK_PREFIX.robin-map}/include
CMAKE_ARGS+= -DOpenJpeg_ROOT=${BUILDLINK_PREFIX.openjpeg}
CMAKE_ARGS+= -DOpenEXR_ROOT=${BUILDLINK_PREFIX.openexr}
# none of these are available in pkgsrc yet
CMAKE_ARGS+= -DUSE_DCMTK=OFF
CMAKE_ARGS+= -DUSE_Libsquish=OFF
CMAKE_ARGS+= -DUSE_Nuke=OFF
CMAKE_ARGS+= -DUSE_OpenVDB=OFF
CMAKE_ARGS+= -DUSE_PTex=OFF
CMAKE_ARGS+= -DUSE_Field3D=OFF
# only used for the image viewer test application
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON
# disabled by default in arch linux, freebsd...
CMAKE_ARGS+= -DUSE_HDF5=OFF
CMAKE_ARGS+= -DUSE_FFmpeg=OFF
CMAKE_ARGS+= -DUSE_OpenCV=OFF
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CMAKE_ARG_PATH= ${WRKSRC}
# We're using cmake...
CHECK_PORTABILITY_SKIP+= Makefile
pre-configure:
${MKDIR} ${WRKDIR}/build
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/robin-map/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/libheif/buildlink3.mk"
.include "../../graphics/libraw/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/opencolorio/buildlink3.mk"
.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
.include "../../textproc/fmtlib/buildlink3.mk"
.include "../../textproc/pugixml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|