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-base
24 COMPONENT_VERSION
= 1.24.10
25 COMPONENT_SUMMARY
= GNOME streaming media framework plugins
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
28 COMPONENT_ARCHIVE_HASH
= sha256
:ebd57b1be924c6e24f327dd55bab9d8fbaaebe5e1dc8fca784182ab2b12d23eb
29 COMPONENT_PROJECT_URL
= https
://gstreamer.freedesktop.org
/
30 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/src
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= library
/audio
/gstreamer1
/plugin
/base
32 COMPONENT_CLASSIFICATION
=System
/Multimedia Libraries
33 COMPONENT_LICENSE
= LGPL-2.1
-only
34 COMPONENT_LICENSE_FILE
= COPYING
36 include $(WS_MAKE_RULES
)/common.mk
38 CONFIGURE_OPTIONS
+= -Dalsa
=disabled
39 CONFIGURE_OPTIONS
+= -Dorc
=enabled
40 CONFIGURE_OPTIONS
+= -Dpango
=enabled
41 CONFIGURE_OPTIONS
+= -Dgl_api
=opengl
42 CONFIGURE_OPTIONS
+= -Dgl_platform
=glx
,egl
43 CONFIGURE_OPTIONS
+= -Dgl_winsys
=x11
,egl
44 CONFIGURE_OPTIONS
+= -Dgl-graphene
=disabled
45 CONFIGURE_OPTIONS
+= -Dintrospection
=enabled
46 # wglext is needed for Windows only
47 CONFIGURE_OPTIONS
+= -Dgl-headers
:wglext
=disabled
48 CONFIGURE_OPTIONS
+= -Dpackage-origin
="https://github.com/OpenIndiana/oi-userland"
50 # Dynamic library version number
51 SOVER
:= 0.
$(shell printf
'%02s%02s' $(wordlist
2,3,$(subst .
, ,$(COMPONENT_VERSION
)))).0
52 SOVER_RE
= $(subst .
,\.
,$(SOVER
))
54 # This is a workaround for the following meson bug:
55 # https://github.com/mesonbuild/meson/issues/6541#issuecomment-2122142024
56 COMPONENT_POST_INSTALL_ACTION
+= \
57 $(ELFEDIT
) -e
'dyn:runpath /usr/lib/xorg/amd64:$(GCC_LIBDIR)' \
58 $(PROTOUSRLIBDIR.
$(BITS
))/libgstallocators-1.0.so.
$(SOVER
) ;
60 # Replace library version number by SOVER
61 GENERATE_EXTRA_CMD
+= |
$(GSED
) -e
's/$(SOVER_RE)/$$(SOVER)/'
63 # SOVER is needed for manifest processing
64 PKG_MACROS
+= SOVER
=$(SOVER
)
67 REQUIRED_PACKAGES
+= x11
/library
/mesa
69 # gst-devtools is optional testing dependency. However, if it is available it
70 # must be at the same major version as the main gstreamer package to run tests
72 GST_DEVTOOLS_VERSION
= \
73 $(shell $(GMAKE
) -f
$(WS_COMPONENTS
)/encumbered
/gst-devtools1
/Makefile print-value-COMPONENT_VERSION
)
74 ifeq ($(basename $(GST_DEVTOOLS_VERSION
)),$(basename $(COMPONENT_VERSION
)))
75 TEST_REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
/devtools
77 TEST_CONFLICTING_PACKAGES
+= library
/audio
/gstreamer1
/devtools
80 # Auto-generated dependencies
81 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
82 REQUIRED_PACKAGES
+= codec
/libtheora
83 REQUIRED_PACKAGES
+= image
/library
/libpng16
84 REQUIRED_PACKAGES
+= library
/audio
/gstreamer1
85 REQUIRED_PACKAGES
+= library
/desktop
/cairo
86 REQUIRED_PACKAGES
+= library
/desktop
/libvisual
87 REQUIRED_PACKAGES
+= library
/desktop
/pango
88 REQUIRED_PACKAGES
+= library
/glib2
89 REQUIRED_PACKAGES
+= library
/libogg
90 REQUIRED_PACKAGES
+= library
/libvorbis
91 REQUIRED_PACKAGES
+= library
/opus
92 REQUIRED_PACKAGES
+= library
/orc
93 REQUIRED_PACKAGES
+= library
/zlib
94 REQUIRED_PACKAGES
+= system
/library
95 REQUIRED_PACKAGES
+= system
/library
/math
96 REQUIRED_PACKAGES
+= x11
/library
/libdrm
97 REQUIRED_PACKAGES
+= x11
/library
/libx11
98 REQUIRED_PACKAGES
+= x11
/library
/libxcb
99 REQUIRED_PACKAGES
+= x11
/library
/libxext
100 REQUIRED_PACKAGES
+= x11
/library
/libxi
101 REQUIRED_PACKAGES
+= x11
/library
/libxv