blob: 44296614add32cf10433b21ff0ca302d82e1fc52 (
plain)
1 # Description: An essential exemplary set of plugins for gstreamer.
2 # URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: alsa-lib graphene gl-headers gstreamer libgudev libjpeg-turbo libtheora libvisual mesa opus orc pango xorg-libx11
5 # Optional: cdparanoia libglvnd wayland-protocols
6
7 name=gst-plugins-base
8 version=1.20.5
9 release=1
10 source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)
11
12 build() {
13 # decide accordingly to what mesa builds with
14 [ -e /usr/lib/pkgconfig/egl.pc ] || prt-get isinst wayland-protocols && \
15 PKGMK_GST_PLATFORM+='egl' \
16 PKGMK_GST_GLAPI+='gles2' \
17 PKGMK_GST_WINDOW+='egl'
18 prt-get isinst xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm && \
19 PKGMK_GST_PLATFORM+=',glx' \
20 PKGMK_GST_GLAPI+=',opengl' \
21 PKGMK_GST_WINDOW+=',x11'
22
23 meson setup build $name-$version \
24 --prefix=/usr \
25 --libexecdir=/usr/lib \
26 --wrap-mode=nodownload \
27 -D buildtype=plain \
28 -D gl=enabled \
29 -D gl-graphene=enabled \
30 -D gl_platform=${PKGMK_GST_PLATFORM#,} \
31 -D gl_api=${PKGMK_GST_GLAPI#,} \
32 -D gl_winsys=${PKGMK_GST_WINDOW#,} \
33 -D nls=disabled \
34 -D package-name="GStreamer (CRUX Linux)" \
35 -D package-origin="https://crux.nu/"
36
37 meson compile -C build -j ${JOBS:-1}
38 DESTDIR=$PKG meson install -C build
39 }
|