Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/gstreamer/PKGBUILD
blob: e37c1a44e14e3d5a5b2a645bf94f9024e5544384 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# change URLs
eval "$(
 declare -f build | \
    sed '
      s|https://www.archlinux.org/|https://www.archlinux32.org/|g
    '
)"

# svt-hevc is blacklisted
makedepends=(${makedepends[@]//svt-hevc/})

# onnxruntime won't build currently (and probably ever but who knows)
makedepends=(${makedepends[@]//onnxruntime/})
pkgname=(${pkgname[@]//gst-plugin-onnx/})

eval "$(
 declare -f build | \
    sed '
      /local meson_options.*/ a \
        meson_options+=(-Dgst-plugins-bad:onnx=disabled)
    '
)"

eval "$(
 declare -f build | \
    sed '
      /local meson_options.*/ a \
        meson_options+=(-D gst-plugins-bad:svthevcenc=disabled)
    '
  declare -f package_gst-plugins-bad | \
    sed '
      /local files/ a \
        files=(${files[@]/usr\\/lib\\/gstreamer-1.0\\/libgstsvthevcenc.so/})
      /depends/ a \
        depends=(${depends[@]//svt-hevc/})
    '
)"

# libgstaes.so is not built?
eval "$(
  declare -f package_gst-plugins-bad | \
    sed '
      /local files/ a \
        files=(${files[@]/usr\\/lib\\/gstreamer-1.0\\/libgstaes.so/})
    '
  declare -f package_gstreamer-docs | \
    sed '
      /rmdir/ i \
        rm root/usr/lib/gstreamer-1.0/libgstaes.so
    '
)"

#gstreamer/subprojects/gst-plugins-bad/sys/msdk/meson.build:86:4: ERROR: Problem encountered: msdk plugin enabled but the Intel Media SDK or the oneVPL SDK not found: consider setting PKG_CONFIG_PATH, INTELMEDIASDKROOT or MFX_HOME
eval "$(
  declare -f build | \
    sed '
      /local meson_options.*/ a \
         meson_options+=(-D gst-plugins-bad:msdk=disabled)
    '
  declare -f package_gst-plugin-msdk | \
    sed '
      /local files/ a \
        files=(${files[@]/usr\\/lib\\/gstreamer-1.0\\/libgstmsdk.so/})
    '
)"

# disabled testing for now, takes to long (the developers think)
# 99%: Checks: 105, Failures: 0, Errors: 1
# ../gst-plugins-base/tests/check/elements/appsrc.c:443:E:general:test_appsrc_blocked_on_caps:0: (after this point) Test timeout expired
unset check

# ignoring one check here:
# ../gstreamer/libs/gst/check/gstcheck.c:286:F:general:test_qtdemux_pad_names:0: Unexpected critical/warning: can't peek value table for type '(null)' which is not currently referenced
# Check suite qtdemux ran in 0.061s (tests failed: 1)
eval "$(
  declare -f check | \
    sed '
      s/\(meson test.*\)/\1 || true/
    '
)"

# FS32#245: cannot rebuild opencv on i486 currently due to python issues
if [ "$CARCH" == 'i486' ]; then
  makedepends=(${makedepends[@]//opencv/})

  eval "$(
   declare -f build | \
      sed '
        /local meson_options.*/ a \
          meson_options+=(-D gst-plugins-bad:opencv=disabled)
      '
    declare -f package_gst-plugin-opencv | \
      sed '
        /local files/ a \
          files=()
        /depends/ a \
          depends=(${depends[@]//opencv/})
      '
  )"
fi

# break dependency cycle with wpewebkit
if [ "$CARCH" == 'i486' ]; then
  makedepends=(${makedepends[@]//wpewebkit/})
  eval "$(
   declare -f build | \
      sed '
        /local meson_options.*/ a \
          meson_options+=(-D gst-plugins-bad:wpe=disabled)
      '
    declare -f package_gst-plugin-wpe | \
      sed '
        /local files/ a \
          files=()
        /depends/ a \
          depends=(${depends[@]//wpewebkit/})
      '
  )"
fi

# we have libdc1394, but it's not recognized on i486, it's not installed
# (maybe it's only a transitive dependency and we removed something..)
# gst-plugins-bad| Run-time dependency libdc1394-2 found: NO (tried pkgconfig)
if [ "$CARCH" == 'i486' ]; then
  makedepends+=(libdc1394)
  eval "$(
    declare -f package_gst-plugins-bad | \
      sed '
        /depends/ a \
          depends=(${depends[@]//libdc1394/})
      '
  )"
fi

# gstreamer/subprojects/gst-plugins-bad/ext/openexr/meson.build:1:0: ERROR: Dependency "OpenEXR" not found, tried pkgconfig
if [ "$CARCH" == 'i486' ]; then
  makedepends+=(openexr)
  eval "$(
    declare -f package_gst-plugins-bad | \
      sed '
        /depends/ a \
          depends=(${depends[@]//openexr/})
      '
  )"
fi