2013-04-04 22:58:17 +11: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
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-09-12 22:46:26 +10:00
|
|
|
# Depends on: alsa-lib graphene gl-headers gstreamer libgudev libjpeg-turbo libtheora libvisual mesa opus orc pango xorg-libx11
|
2019-04-20 21:27:29 +10:00
|
|
|
# Optional: cdparanoia
|
2013-04-04 22:58:17 +11:00
|
|
|
|
2014-07-27 23:28:57 +10:00
|
|
|
name=gst-plugins-base
|
2021-09-12 22:46:26 +10:00
|
|
|
version=1.18.5
|
2021-01-08 00:46:48 +11: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() {
|
2021-09-12 22:46:26 +10:00
|
|
|
# decide accordingly to what mesa builds with
|
|
|
|
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'
|
|
|
|
|
2020-11-03 14:25:51 +11:00
|
|
|
meson setup build $name-$version \
|
2013-04-04 22:58:17 +11:00
|
|
|
--prefix=/usr \
|
2019-10-06 18:35:08 +11:00
|
|
|
--libexecdir=/usr/lib \
|
2020-11-03 14:25:51 +11:00
|
|
|
--wrap-mode=nodownload \
|
|
|
|
-D buildtype=plain \
|
2021-09-12 22:46:26 +10:00
|
|
|
-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#,} \
|
2019-10-06 18:35:08 +11:00
|
|
|
-D nls=disabled \
|
|
|
|
-D package-name="GStreamer (CRUX Linux)" \
|
|
|
|
-D package-origin="https://crux.nu/"
|
2013-04-04 22:58:17 +11:00
|
|
|
|
2020-11-02 01:47:14 +11:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2013-04-04 22:58:17 +11:00
|
|
|
}
|