diff options
Diffstat (limited to 'extra/vlc/PKGBUILD')
-rw-r--r-- | extra/vlc/PKGBUILD | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/extra/vlc/PKGBUILD b/extra/vlc/PKGBUILD index 76cba4ca8..b82ecab07 100644 --- a/extra/vlc/PKGBUILD +++ b/extra/vlc/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 150664 2012-02-19 17:21:32Z giovanni $ +# $Id: PKGBUILD 150788 2012-02-22 11:22:08Z ibiru $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> # Contributor: Martin Sandsmark <martin.sandsmark@kde.org> pkgname=vlc pkgver=2.0.0 -pkgrel=3 +pkgrel=4 pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player" arch=('i686' 'x86_64' 'mips64el') url="http://www.videolan.org/vlc/" @@ -18,66 +18,42 @@ depends=('a52dec' 'fluidsynth' 'libmtp' 'libdvbpsi' 'libxpm' 'libcdio' 'ttf-freefont' 'libxv' 'libass' 'xdg-utils' 'desktop-file-utils') makedepends=('avahi' 'pkg-config' 'live-media' 'libnotify' 'libbluray' 'flac' 'libtheora' 'alsa-lib' 'jack' 'kdelibs' 'udev' - 'libraw1394' 'libdc1394' 'libavc1394' 'libva' 'libpulse' - 'lirc-utils' 'gnutls' 'libcaca' 'oss') -optdepends=('avahi: for service discovery using bonjour protocol' - 'libnotify: for notification plugin' - 'ncurses: for ncurses interface support' - 'libdvdcss: for decoding encrypted DVDs' - 'lirc-utils: for lirc plugin' - 'libavc1394: for devices using the 1394ta AV/C' - 'libdc1394: for IEEE 1394 plugin' - 'kdelibs: KDE Solid hardware integration' - 'libpulse: PulseAudio support' - 'libva-driver-intel: back-end for intel cards' - 'libbluray: for Blu-Ray disks' - 'oss: for OSS audio') -[ "$CARCH" = "mips64el" ] && { -makedepends=('avahi' 'pkg-config' 'live-media' 'libnotify' 'libbluray' - 'flac' 'libtheora' 'alsa-lib' 'jack' 'kdelibs' 'udev' - 'libraw1394' 'libdc1394' 'libavc1394' 'libva' 'libpulse' + 'libraw1394' 'libdc1394' 'libavc1394' 'libpulse' 'gnutls' 'libcaca' 'oss') +[ "$CARCH" = "mips64el" ] || makedepends+=('libva' 'lirc-utils') optdepends=('avahi: for service discovery using bonjour protocol' 'libnotify: for notification plugin' 'ncurses: for ncurses interface support' - 'libdvdcss: for decoding encrypted DVDs' - 'libavc1394: for devices using the 1394ta AV/C' + 'libdvdcss: for decoding encrypted DVDs') +[ "$CARCH" = "mips64el" ] || optdepends+=('lirc-utils: for lirc plugin') +optdepends+=('libavc1394: for devices using the 1394ta AV/C' 'libdc1394: for IEEE 1394 plugin' 'kdelibs: KDE Solid hardware integration' - 'libpulse: PulseAudio support' - 'libva-driver-intel: back-end for intel cards' - 'libbluray: for Blu-Ray disks' + 'libpulse: PulseAudio support') +[ "$CARCH" = "mips64el" ] || optdepends+=('libva-driver-intel: back-end for intel cards') +optdepends+=('libbluray: for Blu-Ray disks' 'oss: for OSS audio') -} conflicts=('vlc-plugin') replaces=('vlc-plugin') backup=('usr/share/vlc/lua/http/.hosts' 'usr/share/vlc/lua/http/dialogs/.hosts') options=('!libtool') install=vlc.install -source=("http://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz") -md5sums=('8806bff2ea9c76791123d444a92f708c') +source=("http://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz" + access_smb_link_to_smbclient.patch) +md5sums=('8806bff2ea9c76791123d444a92f708c' + '5f510fdea99cdb7941423eb40045968a') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c - if [ "$CARCH" = "mips64el" ]; then - ./configure --prefix=/usr \ - --disable-rpath \ - --enable-faad \ - --enable-dbus-control \ - --enable-nls \ - --disable-lirc \ - --enable-pvr \ - --enable-ncurses \ - --enable-upnp \ - --enable-oss \ - --enable-bluray \ - --enable-live555 \ - --enable-realrtsp - else + patch -Np1 -i "${srcdir}/access_smb_link_to_smbclient.patch" + autoreconf -fi + + [ "$CARCH" = "mips64el" ] && extraconf="--disable-lirc" + ./configure --prefix=/usr \ --disable-rpath \ --enable-faad \ @@ -90,8 +66,8 @@ build() { --enable-oss \ --enable-bluray \ --enable-live555 \ - --enable-realrtsp - fi + --enable-realrtsp \ + $extraconf make } |