72 lines
3.0 KiB
Bash
72 lines
3.0 KiB
Bash
# Template file for 'gst-plugins-bad1'
|
|
pkgname=gst-plugins-bad1
|
|
version=1.24.6
|
|
revision=2
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="-Dpackage-origin=https://voidlinux.org -Ddoc=disabled
|
|
-Dopencv=disabled -Dmsdk=disabled -Dopensles=disabled -Dtinyalsa=disabled
|
|
-Dwasapi=disabled -Dnvcodec=disabled -Ddc1394=disabled
|
|
-Diqa=disabled -Dlibde265=disabled -Dmpeg2enc=disabled
|
|
-Dmplex=disabled -Dmusepack=disabled -Dopenexr=disabled
|
|
-Dopenh264=disabled -Dopenmpt=disabled -Dopenni2=disabled -Dsctp=disabled
|
|
-Dsrt=disabled -Dteletext=disabled -Dvoaacenc=disabled -Dvoamrwbenc=disabled
|
|
-Dwildmidi=disabled -Dwpe=disabled -Ddirectfb=disabled
|
|
$(vopt_feature gme gme) $(vopt_feature gir introspection) -Dneon=disabled"
|
|
hostmakedepends="automake gettext libtool pkg-config python3 glib-devel
|
|
orc $(vopt_if wayland wayland-devel)"
|
|
makedepends="alsa-lib-devel celt-devel openssl-devel exempi-devel
|
|
gst-plugins-base1-devel libdca-devel orc-devel libmms-devel
|
|
libexif-devel libmpcdec-devel faac-devel SDL-devel libpng-devel
|
|
faad2-devel libdvdread-devel libdvdnav-devel librsvg-devel libsndfile-devel
|
|
xvidcore-devel jasper-devel libmodplug-devel libcurl-devel lcms2-devel
|
|
libvdpau-devel libgsm-devel librtmp-devel libass-devel libvpx-devel
|
|
soundtouch-devel opus-devel libwebp-devel $(vopt_if wayland wayland-devel) x265-devel
|
|
libsrtp-devel libopenal-devel gtk+3-devel libnice-devel libbluetooth-devel
|
|
libgudev-devel libusb-devel libaom-devel libbs2b-devel chromaprint-devel
|
|
fdk-aac-devel flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
|
|
lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader-devel
|
|
webrtc-audio-processing-devel libzbar-devel ffmpeg6-devel
|
|
srt-devel libva-devel $(vopt_if onevpl oneVPL-devel) $(vopt_if gme libgme-devel)"
|
|
depends="gst-plugins-base1>=${version}"
|
|
short_desc="GStreamer plugins from the bad set (v1.x)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://gstreamer.freedesktop.org"
|
|
changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
|
|
distfiles="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${version}.tar.xz"
|
|
checksum=8f4d965513e7827c1f547c1e749e4ef2812b371974fe64857fe5029a19c5b64c
|
|
|
|
build_options="gir gme onevpl wayland"
|
|
build_options_default="gir wayland"
|
|
desc_option_gme="Build with Game Music Emulator support"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
mips*) ;; # libgme cannot be built for mips*
|
|
x86_64*) build_options_default+=" gme onevpl" ;; # onevpl only supports 64bit
|
|
*) build_options_default+=" gme" ;;
|
|
esac
|
|
|
|
if [ -z "$CROSS_BUILD" ] && [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -Dtests=enabled"
|
|
else
|
|
configure_args+=" -Dtests=disabled"
|
|
fi
|
|
|
|
do_check() {
|
|
ninja check || msg_warn "Tests failed, but not unexpected\n"
|
|
}
|
|
|
|
gst-plugins-bad1-devel_package() {
|
|
depends="gst-plugins-base1-devel>=${version} ${sourcepkg}>=${version}_${revision}"
|
|
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
|
|
}
|
|
}
|