diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 206 |
1 files changed, 40 insertions, 166 deletions
@@ -1,186 +1,60 @@ -# Maintainer: Daniel Bermond < yahoo-com: danielbermond > +# Maintainer: Daniel Bermond <dbermond@archlinux.org> pkgname=xine-lib-hg -pkgver=1.2.9.r13885.1868bc14317c +pkgver=1.2.11.r6.09aa41e45228 pkgrel=1 -pkgdesc='A multimedia playback engine (Mercurial version with all possible libs)' -arch=('i686' 'x86_64') -url='https://www.xine-project.org/' -license=('GPL2' 'LGPL2.1') -depends=('fontconfig') -makedepends=( - # official repositories: - 'mercurial' 'a52dec' 'aalib' 'faad2' 'ffmpeg' 'gdk-pixbuf2' 'glu' - 'libmagick6' 'jack' 'libcaca' 'libcdio' 'libbluray' 'libdca' - 'libdvdnav' 'libmad' 'libmng' 'libmpcdec' 'libpulse' 'libvdpau' - 'libxinerama' 'libxvmc' 'sdl' 'smbclient' 'v4l-utils' 'vcdimager' - 'wavpack' - # AUR: - 'esound' 'gnome-vfs-nosmb' 'sndio' -) -optdepends=('a52dec: for using the a52 plugin' - 'aalib: for using the aalib plugin' - 'alsa-lib: for using the alsa plugin' - 'esound: for using the esound plugin' - 'faad2: for using the faad plugin' - 'ffmpeg: for using the ff/avformat/avutil plugin' - 'flac: for using the flac plugin' - 'gdk-pixbuf2: for using the gdk-pixbuf plugin' - 'glu: for using the opengl plugin' - 'gnome-vfs-nosmb: for using the gnome-vfs plugin' - 'imagemagick: for using the imagemagick plugin' - 'jack: for using the jack plugin' - 'libbluray: for using the bluray plugin' - 'libcaca: for using the caca plugin' - 'libcdio: for using the cd plugin' - 'libdca: for using the dts plugin' - 'libdvdnav: for using the dvd plugin' - 'libjpeg-turbo: for using the libjpeg plugin' - 'libmad: for using the mp3 plugin' - 'libmng: for using the mng plugin' - 'libmodplug: for using the modplug plugin' - 'libmpcdec: for using the musepack plugin' - 'libpulse: for using the pulseaudio plugin' - 'libtheora: for using the xiph plugin' - 'libva: for using the vaapi plugin' - 'libvdpau: for using the vdpau plugin' - 'libvorbis: for using the xiph plugin' - 'libvpx: for using the libvpx plugin' - 'libxcb: for using the xcb-shm and xcb-xv plugins' - 'libxinerama: for using the xv plugin' - 'sdl: for using the sdl plugin' - 'smbclient: for using the samba plugin' - 'sndio: for using the sndio plugin' - 'speex: for using the xiph plugin' - 'v4l-utils: for using the v4l2 plugin' - 'vcdimager: for using the vcd plugin' - 'wavpack: for using the wavpack plugin' -) +pkgdesc='Multimedia playback engine (mercurial version)' +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=('mercurial' 'mesa' 'libdvdnav' 'libdvdread' 'vcdimager' 'glu' 'sdl' + 'wayland' 'aalib' 'a52dec' 'faad2' 'flac' 'libdca' 'libmad' + 'libmpcdec' 'wavpack' 'gdk-pixbuf2' 'imagemagick' 'libcaca' + 'libmng' 'libnfs' 'smbclient') provides=('xine-lib') conflicts=('xine-lib') -source=("$pkgname"::'hg+http://hg.code.sf.net/p/xine/xine-lib-1.2') +source=('hg+http://hg.code.sf.net/p/xine/xine-lib-1.2') sha256sums=('SKIP') pkgver() { - cd "$pkgname" - - local _version_major="$(grep '^XINE_VERSION_MAJOR=' version.sh | sed 's/.*=//')" - local _version_minor="$(grep '^XINE_VERSION_MINOR=' version.sh | sed 's/.*=//')" - local _version_sub="$( grep '^XINE_VERSION_SUB=' version.sh | sed 's/.*=//')" - local _version_patch="$(grep '^XINE_VERSION_PATCH=' version.sh | sed 's/.*=//')" - - local _version="$_version_major" - - for _number in "$_version_minor" "$_version_sub" "$_version_patch" - do - [ -n "$_number" ] && _version+=".${_number}" - done - - printf '%s.r%s.%s' "$_version" "$(hg identify -n)" "$(hg identify -i)" + printf '%s.r%s.%s' "$(hg -R xine-lib-1.2 log -r. --template '{latesttag}')" \ + "$(hg -R xine-lib-1.2 log -r. --template '{latesttagdistance}')" \ + "$(hg -R xine-lib-1.2 log -r. --template '{node|short}')" } build() { - cd "$pkgname" - - export PKG_CONFIG_PATH="${PKG_CONFIG_PATH:+${PKG_CONFIG_PATH}:}/usr/lib/imagemagick6/pkgconfig" - - ./autogen.sh - - ./configure \ + cd xine-lib-1.2 + ./autogen.sh \ --prefix='/usr' \ - \ - --enable-ipv6 \ --enable-antialiasing \ - --enable-static='no' \ - --enable-shared='yes' \ - --enable-fast-install='yes' \ - --enable-optimizations \ - --enable-largefile \ - --enable-libxine-builtins \ - \ - --disable-coreaudio \ - --disable-irixal \ - --enable-oss \ - --disable-sunaudio \ - --enable-sndio \ - --enable-aalib \ - --disable-dha-kmod \ - --disable-directfb \ - --enable-dxr3 \ - --enable-fb \ - --disable-macosx-video \ - --enable-opengl \ - --enable-glu \ - --disable-vidix \ - --enable-xinerama \ - --disable-static-xv \ - --enable-xvmc \ - --enable-vdpau \ - --enable-vaapi \ - --enable-dvb \ - --enable-gnomevfs \ - --enable-samba \ - --enable-v4l2 \ - --enable-libv4l \ - --enable-vcd \ - --enable-vdr \ - --enable-bluray \ - --enable-avformat \ - --enable-a52dec \ - --enable-asf \ - --enable-nosefart \ - --enable-faad \ - --enable-ffmpeg \ - --enable-postproc \ - --enable-gdkpixbuf \ - --enable-libjpeg \ - --enable-dts \ - --enable-mad \ - --enable-modplug \ - --disable-libmpeg2new \ - --enable-musepack \ - --disable-mlib \ - --disable-mlib-lazyload \ - --enable-mng \ - --enable-real-codecs \ - --disable-w32dll \ - --enable-vpx \ - --disable-mmal \ - \ - --with-freetype \ - --with-fontconfig \ - --with-x \ - --with-alsa \ - --with-esound \ - --without-fusionsound \ - --with-jack \ - --with-pulseaudio \ - --with-caca \ - --without-linux-path \ - --without-libstk \ - --with-sdl \ - --with-xcb \ --with-external-dvdnav \ - --with-imagemagick \ - --with-libflac \ - --with-speex \ - --with-theora \ - --with-vorbis \ --with-wavpack - - # TODO: - # --enable-dha-kmod - # --enable-vidix - # --with-fusionsound - # --with-linux-path=/usr/lib/modules/$(uname -r)/build - # --with-libstk - # --with-openhevc - + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { - cd "$pkgname" - - make DESTDIR="$pkgdir" install + make -C xine-lib-1.2 DESTDIR="$pkgdir" install } |