blob: 1243e420b1710cbcdc1afa4578f5349062a66ea1 (
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
|
# $NetBSD: Makefile,v 1.152 2022/11/27 13:55:50 gdt Exp $
DISTNAME= osg-3.6.5
PKGREVISION= 28
CATEGORIES= graphics devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=openscenegraph/}
GITHUB_PROJECT= OpenSceneGraph
GITHUB_TAG= OpenSceneGraph-${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.openscenegraph.org/
COMMENT= High performance 3D graphics toolkit
LICENSE= gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE= packaging/pkgconfig/openscenegraph.pc.in
PKGCONFIG_OVERRIDE+= packaging/pkgconfig/openthreads.pc.in
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DDYNAMIC_OPENSCENEGRAPH=ON
CMAKE_ARGS+= -DBUILD_OSG_EXAMPLES=OFF
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Asio=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_SDL=TRUE # disable legacy SDL
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_GTA=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Inventor=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_LibVNCServer=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_GLIB=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_OpenCascade=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_DCMTK=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_NVTT=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_ZeroConf=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_DirectInput=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_DirectShow=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_FBX=TRUE
CMAKE_ARGS+= -DOSG_USE_LOCAL_LUA_SOURCE=OFF
PLIST_VARS+= quartz notdarwin
.include "../../mk/bsd.prefs.mk"
# jasper uses SIZE_MAX and friends in its headers.
CXXFLAGS+= -D__STDC_LIMIT_MACROS
.include "options.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../lang/lua52/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.if ${OPSYS} != "Darwin"
PLIST.notdarwin= yes
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.else
PLIST.quartz= yes
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|