commit 1e2df6d

hovercats  ·  2024-04-30 22:58:39 +0000 UTC
parent 983434c
gstreamer: import
6 files changed,  +56, -0
+23, -0
 1@@ -0,0 +1,23 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+# Avoid the need for bison
 7+patch -p1 < byacc.patch
 8+sed '/^args/{s/yfile,//;s/cfile/cfile, yfile/;}' gst/parse/gen_grammar.py.in > _
 9+mv -f _ gst/parse/gen_grammar.py.in
10+
11+meson setup \
12+    -Dprefix=/usr \
13+    -Dlibexecdir=/usr/lib \
14+    -Dbuildtype=release \
15+    -Ddbghelp=disabled \
16+    -Dintrospection=disabled \
17+    -Dexamples=disabled \
18+    -Ddoc=disabled \
19+    -Db_colorout=never \
20+    -Dtests=disabled \
21+    output
22+
23+samu -C output
24+samu -C output install
+2, -0
1@@ -0,0 +1,2 @@
2+6c1e203fa5a17436e4118803bbe777f120a12cf891c8fe268366c5fef6e65fe697
3+d69378fcb6e40f43f7341e08d1bcb135ce5425eedf88e0bee6021b39de2e7955e3
+2, -0
1@@ -0,0 +1,2 @@
2+glib
3+meson make
+26, -0
 1@@ -0,0 +1,26 @@
 2+--- a/gst/parse/meson.build	Wed Oct 12 17:39:51 2022
 3++++ b/gst/parse/meson.build	Thu Oct 13 14:49:30 2022
 4+@@ -31,21 +31,9 @@
 5+ bison_cdata = configuration_data()
 6+ 
 7+ bison_min_version='2.4'
 8+-bison = find_program('bison', 'win_bison')
 9++bison = find_program('bison', 'win_bison', 'yacc')
10+ 
11+-bversion_res = run_command([bison, '--version'], check: true)
12+-bversion = bversion_res.stdout().split('\n')[0].split(' ')[-1].strip()
13+-if bversion.version_compare('<' + bison_min_version)
14+-  error('bison version @0@ >= @1@: NO'.format(bversion, bison_min_version))
15+-else
16+-  message('bison version @0@ >= @1@: YES'.format(bversion, bison_min_version))
17+-endif
18+-
19+-if bversion.version_compare('>' + '2.5')
20+-  bison_parser_cdata.set('BISON_PURE_PARSER', '%define api.pure full')
21+-else
22+-  bison_parser_cdata.set('BISON_PURE_PARSER', '%pure-parser')
23+-endif
24++bison_parser_cdata.set('BISON_PURE_PARSER', '%pure-parser')
25+ 
26+ gen_grammar_file = configure_file(input : 'grammar.y.in',
27+   output : 'grammar.y',
+2, -0
1@@ -0,0 +1,2 @@
2+https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.24.1.tar.xz
3+patches/byacc.patch
+1, -0
1@@ -0,0 +1 @@
2+1.24.1 1