2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016-2018 Aurelien Larcher. All rights reserved.
14 # Copyright 2019 Michal Nowak
15 # Copyright 2022-2023 Niklas Poslovski
19 USE_DEFAULT_TEST_TRANSFORMS
= yes
21 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_NAME
= gst-plugins-base1
24 COMPONENT_VERSION
= 1.24.9
25 COMPONENT_SUMMARY
= GNOME streaming media framework plugins
26 COMPONENT_SRC_NAME
= gst-plugins-base
27 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
29 COMPONENT_ARCHIVE_HASH
= sha256
:5bb3b946907d3ce04dd842b610c8111c2b0611351b25a1fa22af5efa897857cb
30 COMPONENT_PROJECT_URL
= https
://gstreamer.freedesktop.org
/
31 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/src
/$(COMPONENT_SRC_NAME
)/$(COMPONENT_ARCHIVE
)
32 COMPONENT_FMRI
= library
/audio
/gstreamer1
/plugin
/base
33 COMPONENT_CLASSIFICATION
=System
/Multimedia Libraries
34 COMPONENT_LICENSE
= LGPL-2.1
-only
35 COMPONENT_LICENSE_FILE
= COPYING
37 include $(WS_MAKE_RULES
)/common.mk
39 CONFIGURE_OPTIONS
+= -Dalsa
=disabled
40 CONFIGURE_OPTIONS
+= -Dorc
=enabled
41 CONFIGURE_OPTIONS
+= -Dpango
=enabled
42 CONFIGURE_OPTIONS
+= -Dgl_api
=opengl
43 CONFIGURE_OPTIONS
+= -Dgl_platform
=glx
,egl
44 CONFIGURE_OPTIONS
+= -Dgl_winsys
=x11
,egl
45 CONFIGURE_OPTIONS
+= -Dgl-graphene
=disabled
46 CONFIGURE_OPTIONS
+= -Dintrospection
=enabled
47 # wglext is needed for Windows only
48 CONFIGURE_OPTIONS
+= -Dgl-headers
:wglext
=disabled
49 CONFIGURE_OPTIONS
+= -Dpackage-origin
="https://github.com/OpenIndiana/oi-userland"
51 # Dynamic library version number
52 SOVER
:= 0.
$(shell printf
'%02s%02s' $(wordlist
2,3,$(subst .
, ,$(COMPONENT_VERSION
)))).0
53 SOVER_RE
= $(subst .
,\.
,$(SOVER
))
55 # This is a workaround for the following meson bug:
56 # https://github.com/mesonbuild/meson/issues/6541#issuecomment-2122142024
57 COMPONENT_POST_INSTALL_ACTION
+= \
58 $(ELFEDIT
) -e
'dyn:runpath /usr/lib/xorg/amd64:$(GCC_LIBDIR)' \
59 $(PROTOUSRLIBDIR.
$(BITS
))/libgstallocators-1.0.so.
$(SOVER
) ;
61 # Replace library version number by SOVER
62 GENERATE_EXTRA_CMD
+= |
$(GSED
) -e
's/$(SOVER_RE)/$$(SOVER)/'
64 # SOVER is needed for manifest processing
65 PKG_MACROS
+= SOVER
=$(SOVER
)
68 REQUIRED_PACKAGES
+= x11
/library
/mesa
70 # gst-devtools is optional testing dependency. However, if it is available it
71 # must be at the same major version as the main gstreamer package to run tests
73 GST_DEVTOOLS_VERSION
= \
74 $(shell $(GMAKE
) -f
$(WS_COMPONENTS
)/encumbered
/gst-devtools1
/Makefile print-value-COMPONENT_VERSION
)
75 ifeq ($(basename $(GST_DEVTOOLS_VERSION
)),$(basename $(COMPONENT_VERSION
)))
76 TEST_REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
/devtools
78 TEST_CONFLICTING_PACKAGES
+= library
/audio
/gstreamer1
/devtools
81 # Auto-generated dependencies
82 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
83 REQUIRED_PACKAGES
+= codec
/libtheora
84 REQUIRED_PACKAGES
+= image
/library
/libpng16
85 REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
86 REQUIRED_PACKAGES
+= library
/desktop
/cairo
87 REQUIRED_PACKAGES
+= library
/desktop
/libvisual
88 REQUIRED_PACKAGES
+= library
/desktop
/pango
89 REQUIRED_PACKAGES
+= library
/glib2
90 REQUIRED_PACKAGES
+= library
/libogg
91 REQUIRED_PACKAGES
+= library
/libvorbis
92 REQUIRED_PACKAGES
+= library
/opus
93 REQUIRED_PACKAGES
+= library
/orc
94 REQUIRED_PACKAGES
+= library
/zlib
95 REQUIRED_PACKAGES
+= system
/library
96 REQUIRED_PACKAGES
+= system
/library
/math
97 REQUIRED_PACKAGES
+= x11
/library
/libdrm
98 REQUIRED_PACKAGES
+= x11
/library
/libx11
99 REQUIRED_PACKAGES
+= x11
/library
/libxcb
100 REQUIRED_PACKAGES
+= x11
/library
/libxext
101 REQUIRED_PACKAGES
+= x11
/library
/libxi
102 REQUIRED_PACKAGES
+= x11
/library
/libxv