# Maintainer : Daniel Bermond # Contributor: Eric BĂ©langer # ALARM: Kevin Mihelich # - disabled vdpau pkgname=xine-lib pkgver=1.2.11 pkgrel=7 pkgdesc='Multimedia playback engine' arch=('x86_64') url='https://www.xine-project.org' license=('GPL' 'LGPL') depends=('ffmpeg' 'libjpeg-turbo' 'libnsl' 'libpng' 'libx11' 'libxcb' 'libxext' 'libxinerama' 'libxv' 'libxvmc' 'zlib') optdepends=('libdvdnav: for dvd plugin' 'libdvdread: for spu and dxr3 plugins' 'vcdimager: for vcd plugin' 'glu: for opengl and vaapi plugins' 'sdl: for sdl plugin' 'wayland: for egl_wl plugin' 'aalib: for aalib plugin' 'a52dec: for a52 plugin' 'faad2: for faad plugin' 'flac: for flac plugin' 'libdca: for dts (dca) plugin' 'libmad: for mad (mp3) plugin' 'libmpcdec: for mpc (musepack) plugin' 'wavpack: for wavpack plugin' 'gdk-pixbuf2: for gdk_pixbuf plugin' 'imagemagick: for imagemagick plugin' 'libcaca: for caca plugin' 'libmng: for mng plugin' 'libnfs: for nfs plugin' 'smbclient: for samba plugin') makedepends=('mesa' 'libdvdnav' 'libdvdread' 'vcdimager' 'glu' 'sdl' 'wayland' 'aalib' 'a52dec' 'faad2' 'flac' 'libdca' 'libmad' 'libmpcdec' 'wavpack' 'gdk-pixbuf2' 'imagemagick' 'libcaca' 'libmng' 'libnfs' 'smbclient') source=("https://downloads.sourceforge.net/project/xine/xine-lib/${pkgver}/xine-lib-${pkgver}.tar.xz" '010-xine-lib-libcaca-0.99.beta20-fix.patch' '020-xine-lib-ffmpeg-5.0-fix.patch') sha256sums=('ef51b21d10dda1045fa7d711bd9171cfdaf0a5a2874233bcf16ffdf28ec07005' '30d4c5953f4b9c9c55d4bb24004fdd0444c2022d081818a55df2809665aadf47' '27d5f4aa4429c5442bdfca6f1d05463aa4ed395fe8f5cdba3ef0509e7e6ff2fa') prepare() { patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-xine-lib-libcaca-0.99.beta20-fix.patch" patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/020-xine-lib-ffmpeg-5.0-fix.patch" } build() { cd "${pkgname}-${pkgver}" ./configure \ --prefix='/usr' \ --enable-antialiasing \ --with-external-dvdnav \ --disable-vdpau \ --with-wavpack sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { make -C "${pkgname}-${pkgver}" DESTDIR="$pkgdir" install }