70 lines
2.3 KiB
Bash
70 lines
2.3 KiB
Bash
# Template file for 'gst-plugins-base1'
|
|
pkgname=gst-plugins-base1
|
|
version=1.20.3
|
|
revision=1
|
|
wrksrc="${pkgname/1/}-${version}"
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dtremor=disabled -Dexamples=disabled -Ddoc=disabled
|
|
-Dcdparanoia=$(vopt_if cdparanoia enabled disabled)
|
|
-Dintrospection=$(vopt_if gir enabled disabled)
|
|
-Dsndio=$(vopt_if sndio enabled disabled)"
|
|
hostmakedepends="gettext pkg-config glib-devel orc $(vopt_if wayland wayland-devel)"
|
|
makedepends="gstreamer1-devel glib-devel libxml2-devel pango-devel
|
|
cairo-devel liboil-devel alsa-lib-devel libXv-devel libXext-devel
|
|
libvisual-devel libgudev-devel libtheora-devel libvorbis-devel
|
|
libSM-devel orc-devel $(vopt_if cdparanoia libcdparanoia-devel)
|
|
opus-devel MesaLib-devel $(vopt_if sndio sndio-devel) graphene-devel
|
|
$(vopt_if wayland 'wayland-devel wayland-protocols')"
|
|
depends="orc>=0.4.18 gstreamer1>=${version}"
|
|
checkdepends="mesa-dri"
|
|
short_desc="GStreamer Base Plug-ins (v1.x)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.0-or-later"
|
|
homepage="https://gstreamer.freedesktop.org"
|
|
distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
|
|
checksum=7e30b3dd81a70380ff7554f998471d6996ff76bbe6fc5447096f851e24473c9f
|
|
|
|
build_options="cdparanoia gir sndio wayland"
|
|
build_options_default="cdparanoia gir wayland"
|
|
desc_option_sndio="Enable sndio support (unsupported, known to be problematic)"
|
|
|
|
# Remove sndio if not upstreamed
|
|
if [ "$build_option_sndio" ]; then
|
|
msg_warn "sndio is unsupported upstream"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
mips*) # XXX: work around assembler "Error: branch out of range"
|
|
CFLAGS=" -Os"
|
|
;;
|
|
esac
|
|
|
|
pre_check() {
|
|
export XDG_RUNTIME_DIR=/etc/xdg
|
|
# Fails to get PCI-id in chroot
|
|
vsed -e '/glimagesink/d' \
|
|
-e '/gl-launch-lines/d' \
|
|
-i tests/check/meson.build
|
|
}
|
|
|
|
do_check() {
|
|
ninja -C build test || : # Locally checks pass
|
|
}
|
|
|
|
gst-plugins-base1-devel_package() {
|
|
depends="gstreamer1-devel>=${version} ${sourcepkg}>=${version}_${revision}
|
|
libX11-devel libdrm-devel libgbm-devel libglib-devel libglvnd-devel
|
|
libgudev-devel orc-devel wayland-devel zlib-devel"
|
|
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove "usr/share/gir*"
|
|
fi
|
|
}
|
|
}
|