summaryrefslogtreecommitdiff
path: root/multimedia/gstreamer1-plugins/files/patch-meson.build
blob: 1ad49685aa1f0aa6e0608ec9bf1b5b235b33aa7f (plain) (blame)
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
--- meson.build.orig	2025-03-11 20:14:44 UTC
+++ meson.build
@@ -17,6 +17,8 @@ gst_version_is_dev = gst_version_minor % 2 == 1 and gs
 gst_version_is_stable = gst_version_minor.is_even()
 gst_version_is_dev = gst_version_minor % 2 == 1 and gst_version_micro < 90
 
+build_gstgl = false
+
 host_system = host_machine.system()
 
 have_cxx = add_languages('cpp', native: false, required: false)
@@ -301,8 +303,10 @@ core_conf.set_quoted('DEFAULT_VIDEOSINK', 'autovideosi
 
 # FIXME: These should be configure options
 core_conf.set_quoted('DEFAULT_VIDEOSINK', 'autovideosink')
-core_conf.set_quoted('DEFAULT_AUDIOSINK', 'autoaudiosink')
 
+core_conf.set_quoted('DEFAULT_AUDIOSINK', get_option('defaultaudiosink'))
+core_conf.set_quoted('DEFAULT_AUDIOSRC', get_option('defaultaudiosrc'))
+
 # Set whether the audioresampling method should be detected at runtime
 core_conf.set('AUDIORESAMPLE_FORMAT_' + get_option('audioresample_format').to_upper(), true)
 
@@ -521,6 +525,7 @@ pkgconfig_plugins_base_libs_variables = [
   'libraries=' + ' '.join(base_libraries),
 ]
 
+if get_option('pkgconfig').enabled()
 pkgconfig.generate(
   libraries : [gst_dep],
   variables : pkgconfig_variables + pkgconfig_plugins_base_libs_variables,
@@ -534,6 +539,7 @@ run_command(meson_pkg_config_file_fixup_script,
 run_command(meson_pkg_config_file_fixup_script,
   'gstreamer-plugins-base-1.0', 'libraries',
   check: true)
+endif
 
 if have_orcc
   update_orc_dist_files = find_program('scripts/update-orc-dist-files.py')