2023-03-05 13:46:43 +01:00
|
|
|
# Description: An essential exemplary set of plugins for gstreamer
|
2017-02-15 22:40:30 +11:00
|
|
|
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
|
2023-03-05 13:46:43 +01:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-02-19 12:07:17 +01:00
|
|
|
# Depends on: gl-headers graphene gstreamer libgudev libjpeg-turbo libtheora libvisual-plugins opus orc pango
|
2021-09-24 21:00:25 +10:00
|
|
|
# Optional: cdparanoia libglvnd wayland-protocols
|
2013-04-04 22:58:17 +11:00
|
|
|
|
2014-07-27 23:28:57 +10:00
|
|
|
name=gst-plugins-base
|
2023-09-21 07:15:46 +02:00
|
|
|
version=1.22.6
|
2023-03-05 13:46:43 +01:00
|
|
|
release=1
|
2020-11-03 14:25:51 +11:00
|
|
|
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)
|
2013-04-04 22:58:17 +11:00
|
|
|
|
|
|
|
build() {
|
2023-03-05 13:46:43 +01:00
|
|
|
# decide accordingly to what mesa builds with
|
|
|
|
[ -e /usr/lib/pkgconfig/egl.pc ] || prt-get isinst wayland-protocols && \
|
|
|
|
PKGMK_GST_PLATFORM+='egl' \
|
|
|
|
PKGMK_GST_GLAPI+='gles2' \
|
|
|
|
PKGMK_GST_WINDOW+='egl'
|
|
|
|
prt-get isinst xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm && \
|
|
|
|
PKGMK_GST_PLATFORM+=',glx' \
|
|
|
|
PKGMK_GST_GLAPI+=',opengl' \
|
|
|
|
PKGMK_GST_WINDOW+=',x11'
|
2021-09-12 22:46:26 +10:00
|
|
|
|
2023-03-05 13:46:43 +01:00
|
|
|
meson setup build $name-$version \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--wrap-mode=nodownload \
|
|
|
|
-D buildtype=plain \
|
|
|
|
-D gl=enabled \
|
|
|
|
-D gl-graphene=enabled \
|
|
|
|
-D gl_platform=${PKGMK_GST_PLATFORM#,} \
|
|
|
|
-D gl_api=${PKGMK_GST_GLAPI#,} \
|
|
|
|
-D gl_winsys=${PKGMK_GST_WINDOW#,} \
|
|
|
|
-D nls=disabled \
|
|
|
|
-D package-name="GStreamer (CRUX Linux)" \
|
|
|
|
-D package-origin="https://crux.nu/"
|
2013-04-04 22:58:17 +11:00
|
|
|
|
2023-03-05 13:46:43 +01:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2013-04-04 22:58:17 +11:00
|
|
|
}
|