2022-07-23 21:12:27 +00:00
|
|
|
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
|
|
|
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - configure with --without-dav1d, FTBFS
|
|
|
|
|
|
|
|
pkgname=xine-lib
|
2023-01-27 19:10:58 +00:00
|
|
|
pkgver=1.2.13
|
2024-11-08 01:39:41 +00:00
|
|
|
pkgrel=8
|
2022-07-23 21:12:27 +00:00
|
|
|
pkgdesc='Multimedia playback engine'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://www.xine-project.org'
|
2024-06-21 23:05:59 +00:00
|
|
|
license=('GPL-2.0-or-later' 'LGPL-2.0-or-later')
|
|
|
|
depends=('ffmpeg' 'libjpeg-turbo' 'libpng' 'libx11' 'libxcb' 'libxext'
|
|
|
|
'libxinerama' 'libxv' 'libxvmc' 'zlib')
|
2022-07-23 21:12:27 +00:00
|
|
|
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'
|
2023-03-09 19:08:37 +00:00
|
|
|
'libmodplug: for modplug plugin'
|
2022-07-23 21:12:27 +00:00
|
|
|
'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'
|
|
|
|
'libssh2: for ssh plugin'
|
|
|
|
'smbclient: for samba plugin')
|
2024-06-21 23:05:59 +00:00
|
|
|
makedepends=('mercurial' 'mesa' 'libdvdnav' 'libdvdread' 'vcdimager' 'glu' 'sdl'
|
2022-07-23 21:12:27 +00:00
|
|
|
'wayland' 'aalib' 'a52dec' 'faad2' 'flac' 'libdca' 'libmad'
|
2024-06-21 23:05:59 +00:00
|
|
|
'libmodplug' 'libmpcdec' 'wavpack' 'gdk-pixbuf2' 'imagemagick'
|
|
|
|
'libcaca' 'libmng' 'libnfs' 'libnsl' 'smbclient')
|
|
|
|
source=("hg+http://hg.code.sf.net/p/xine/xine-lib-${pkgver%.*}#tag=${pkgver}")
|
|
|
|
sha256sums=('9d1e3951d945507e960aae670079036e468ac766321dfa481bc106d19ac777d9')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
# ffmpeg 7.0 support
|
|
|
|
hg --cwd "xine-lib-${pkgver%.*}" graft --rev 771f4ae27e582123ff3500444718fc8f96186d74
|
|
|
|
hg --cwd "xine-lib-${pkgver%.*}" graft --rev 0a786d63bbdb2d780a9231f6772e84e743c72014
|
|
|
|
hg --cwd "xine-lib-${pkgver%.*}" graft --rev 6f1000084f6084f49c95c202d12593e49916f58b
|
|
|
|
hg --cwd "xine-lib-${pkgver%.*}" graft --rev 1e7b184008860c8be2289c3cefd9dee57f06193a
|
|
|
|
hg --cwd "xine-lib-${pkgver%.*}" graft --rev 73b833e7fe356cd2d9490dda4ebc9bfe16fce958
|
|
|
|
|
|
|
|
autoreconf -fi "xine-lib-${pkgver%.*}"
|
|
|
|
}
|
2022-07-23 21:12:27 +00:00
|
|
|
|
|
|
|
build() {
|
2024-06-21 23:05:59 +00:00
|
|
|
# workaround for detecting xvmc with gcc 14
|
|
|
|
export CFLAGS+=' -Wno-implicit-function-declaration'
|
|
|
|
|
|
|
|
cd "xine-lib-${pkgver%.*}"
|
2023-01-27 19:10:58 +00:00
|
|
|
./configure \
|
2022-07-23 21:12:27 +00:00
|
|
|
--prefix='/usr' \
|
|
|
|
--enable-antialiasing \
|
|
|
|
--with-external-dvdnav \
|
|
|
|
--with-wavpack \
|
|
|
|
--without-dav1d
|
|
|
|
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-06-21 23:05:59 +00:00
|
|
|
make -C "xine-lib-${pkgver%.*}" DESTDIR="$pkgdir" install
|
2022-07-23 21:12:27 +00:00
|
|
|
}
|