python/cmd2: update to 2.5.6
[oi-userland.git] / components / encumbered / openscenegraph / Makefile
blobdd9b06b7f59fae31fe9ddec1bd02fd8b73b3a827
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2022 Jake Goerzen
14 BUILD_STYLE= cmake
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= OpenSceneGraph
18 COMPONENT_VERSION= 3.6.5
19 COMPONENT_REVISION= 8
20 COMPONENT_PROJECT_URL= https://www.openscenegraph.com
21 COMPONENT_SUMMARY= OpenSceneGraph - High performance 3D graphics toolkit.
22 COMPONENT_SRC= OpenSceneGraph-$(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).zip
24 COMPONENT_ARCHIVE_HASH= sha256:0e9e3e4cc6f463f21a901934a95e9264b231a1d5db90f72dcb4b8cc94b0d1b3b
25 COMPONENT_ARCHIVE_URL= https://github.com/openscenegraph/OpenSceneGraph/archive/refs/tags/$(COMPONENT_ARCHIVE)
26 COMPONENT_FMRI= library/openscenegraph
27 COMPONENT_CLASSIFICATION= System/Libraries
28 COMPONENT_LICENSE= OSGPL
29 COMPONENT_LICENSE_FILE= LICENSE.txt
31 include $(WS_MAKE_RULES)/encumbered.mk
32 include $(WS_MAKE_RULES)/common.mk
34 CMAKE_CXX_FLAGS += -std=c++11
36 # build with the distribution preferred libjpeg implementation
37 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
38 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
39 LDFLAGS += $(JPEG_LDFLAGS)
41 # This is to get libraries to install into /usr/lib/$(MACH64)
42 CMAKE_OPTIONS += -DLIB_POSTFIX=/$(MACH64)
43 #CMAKE_OPTIONS += -DJPEG_LIBRARY=$(JPEG_LIBDIR)/libjpeg.so
45 # OpenSceneGraph doesn't yet support FFmpeg 5 or higher, we have FFmpeg 6, so disable it for now
46 # https://github.com/openscenegraph/OpenSceneGraph/issues/1111
47 CMAKE_OPTIONS += -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=1
49 # Auto-generated dependencies
50 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
51 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
52 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
53 REQUIRED_PACKAGES += codec/jasper
54 REQUIRED_PACKAGES += image/library/libpng16
55 REQUIRED_PACKAGES += image/library/librsvg
56 REQUIRED_PACKAGES += image/library/libtiff
57 REQUIRED_PACKAGES += library/audio/gstreamer1
58 REQUIRED_PACKAGES += library/audio/gstreamer1/plugin/base
59 REQUIRED_PACKAGES += library/desktop/cairo
60 REQUIRED_PACKAGES += library/giflib
61 REQUIRED_PACKAGES += library/glib2
62 REQUIRED_PACKAGES += library/libpoppler
63 REQUIRED_PACKAGES += library/libvncserver
64 REQUIRED_PACKAGES += library/sdl
65 REQUIRED_PACKAGES += library/zlib
66 REQUIRED_PACKAGES += system/library
67 REQUIRED_PACKAGES += system/library/fontconfig
68 REQUIRED_PACKAGES += system/library/freetype-2
69 REQUIRED_PACKAGES += system/library/math
70 REQUIRED_PACKAGES += web/curl
71 REQUIRED_PACKAGES += x11/library/libx11
72 REQUIRED_PACKAGES += x11/library/libxinerama
73 REQUIRED_PACKAGES += x11/library/libxrandr