opt/gst-plugins-base/Pkgfile

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-04-04 13:58:17 +02:00
# Description: An essential exemplary set of plugins for gstreamer.
2017-02-15 12:40:30 +01:00
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: alsa-lib graphene gl-headers gstreamer libgudev libjpeg-turbo libtheora libvisual mesa opus orc pango xorg-libx11
# Optional: cdparanoia libglvnd wayland-protocols
2013-04-04 13:58:17 +02:00
name=gst-plugins-base
2023-01-26 14:26:37 +01:00
version=1.22.0
2022-02-19 15:20:56 +01:00
release=1
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)
2013-04-04 13:58:17 +02:00
build() {
# 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'
meson setup build $name-$version \
2013-04-04 13:58:17 +02:00
--prefix=/usr \
2019-10-06 09:35:08 +02:00
--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#,} \
2019-10-06 09:35:08 +02:00
-D nls=disabled \
-D package-name="GStreamer (CRUX Linux)" \
-D package-origin="https://crux.nu/"
2013-04-04 13:58:17 +02:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2013-04-04 13:58:17 +02:00
}