template 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Template file for 'gst-plugins-bad1'
  2. pkgname=gst-plugins-bad1
  3. version=1.16.2
  4. revision=10
  5. wrksrc="${pkgname/1/}-${version}"
  6. build_helper="gir"
  7. build_style=meson
  8. configure_args="-Dpackage-origin=https://ymirlinux.org -Dgtk_doc=false
  9. -Dopencv=disabled -Dmsdk=disabled -Dopensles=disabled -Dtinyalsa=disabled
  10. -Dwasapi=disabled -Dnvenc=disabled -Dnvdec=disabled -Ddc1394=disabled
  11. -Diqa=disabled -Dkate=disabled -Dlibde265=disabled -Dmpeg2enc=disabled
  12. -Dmplex=disabled -Dmusepack=disabled -Dofa=disabled -Dopenexr=disabled
  13. -Dopenh264=disabled -Dopenmpt=disabled -Dopenni2=disabled -Dsctp=disabled
  14. -Dsrt=disabled -Dteletext=disabled -Dvoaacenc=disabled -Dvoamrwbenc=disabled
  15. -Dwildmidi=disabled -Dwpe=disabled -Ddirectfb=disabled
  16. -Dgme=$(vopt_if gme enabled disabled)
  17. -Dintrospection=$(vopt_if gir enabled disabled) -Dneon=disabled"
  18. hostmakedepends="automake gettext libtool pkg-config python glib-devel
  19. orc wayland-devel"
  20. makedepends="alsa-lib-devel celt-devel libressl-devel exempi-devel
  21. gst-plugins-base1-devel libdca-devel orc-devel libmms-devel
  22. libexif-devel libmpcdec-devel SDL-devel libpng-devel
  23. faad2-devel libdvdread-devel libdvdnav-devel librsvg-devel libsndfile-devel
  24. xvidcore-devel jasper-devel libmodplug-devel libcurl-devel lcms2-devel
  25. libvdpau-devel libgsm-devel librtmp-devel libass-devel libvpx-devel
  26. soundtouch-devel opus-devel libwebp-devel wayland-devel x265-devel
  27. libsrtp-devel libopenal-devel gtk+3-devel libnice-devel libbluetooth-devel
  28. libgudev-devel libusb-devel libaom-devel libbs2b-devel chromaprint-devel
  29. flite-devel fluidsynth-devel liblrdf-devel ladspa-sdk
  30. lilv-devel lv2 libopenjpeg2-devel sbc-devel spandsp-devel vulkan-loader
  31. Vulkan-Headers webrtc-audio-processing-devel libzbar-devel ffmpeg-devel
  32. $(vopt_if gme libgme-devel)"
  33. depends="gst-plugins-base1>=${version}"
  34. short_desc="GStreamer plugins from the bad set (v1.x)"
  35. maintainer="Orphaned <orphan@ymirlinux.org>"
  36. license="GPL-2.0-or-later, LGPL-2.1-or-later"
  37. homepage="https://gstreamer.freedesktop.org"
  38. distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
  39. checksum=f1cb7aa2389569a5343661aae473f0a940a90b872001824bc47fa8072a041e74
  40. build_options="gir gme"
  41. build_options_default="gir"
  42. desc_option_gme="Build with Game Music Emulator support"
  43. CFLAGS="-fcommon"
  44. case "$XBPS_TARGET_MACHINE" in
  45. mips*) ;; # libgme cannot be built for mips*
  46. *) build_options_default+=" gme" ;;
  47. esac
  48. gst-plugins-bad1-devel_package() {
  49. depends="gst-plugins-base1-devel>=${version} ${sourcepkg}>=${version}_${revision}"
  50. short_desc+=" - development files"
  51. pkg_install() {
  52. vmove usr/include
  53. vmove usr/lib/pkgconfig
  54. vmove usr/lib/*.so
  55. if [ "$build_option_gir" ]; then
  56. vmove "usr/share/gir*"
  57. fi
  58. }
  59. }