# # Chakra Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgbase=vlc pkgname=('vlc' 'vlc-plugin') pkgver=1.1.0 pkgrel=1 arch=('i686' 'x86_64') url="http://www.videolan.org/vlc/" license=('GPL') makedepends=('a52dec' 'fluidsynth' 'libmtp' 'libdvbpsi' 'lirc-utils' 'libdca' 'qt' 'libproxy' 'sdl_image' 'libdvdnav' 'mesa' 'lua' 'libv4l' 'libcddb' 'smbclient' 'libmatroska' 'zvbi' 'taglib' 'sysfsutils' 'libmpcdec' 'hal' 'ffmpeg' 'libshout' 'libmad' 'fribidi' 'libmpeg2' 'libmodplug' 'avahi' 'ttf-freefont' 'libxv' 'libass' 'xdg-utils' 'libxpm' 'xulrunner' 'pkgconfig' 'live-media' 'libnotify' 'libcdio') source=(http://download.videolan.org/pub/videolan/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2) md5sums=('e2142957137b183a5ad0a4827c39f655') build() { cd "${srcdir}/${pkgbase}-${pkgver}" sed -i -e 's:truetype/freefont:TTF:g' modules/misc/freetype.c [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --enable-live555 --with-live555-tree=/usr/lib/live" [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install --enable-live555 --with-live555-tree=/usr/lib/live" ./configure --prefix=/usr \ --enable-libass \ --enable-dvdread \ --enable-jack \ --enable-dvdnav \ --disable-rpath \ --enable-zvbi \ --enable-qt4 \ --enable-faad \ --enable-alsa \ --enable-skins2 \ --enable-dvb \ --enable-v4l \ --enable-theora \ --enable-flac \ --enable-snapshot \ --enable-dbus \ --enable-ogg \ --enable-dbus-control \ --enable-shared \ --enable-nls \ --enable-lirc \ --enable-shout \ --enable-pvr \ --enable-ncurses \ --enable-mozilla \ --program-suffix= \ --enable-realrtsp ${EXTRAFEATURES} || return 1 CFLAGS="-fPIC" make || return 1 } package_vlc() { pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player" depends=('a52dec' 'fluidsynth' 'libmtp' 'libdvbpsi' 'libcdio' 'libdca' 'qt' 'libproxy' 'sdl_image' 'libdvdnav' 'mesa' 'lua' 'libv4l' 'libcddb' 'smbclient' 'libmatroska' 'zvbi' 'taglib' 'sysfsutils' 'libmpcdec' 'hal' 'ffmpeg' 'libshout' 'libmad' 'fribidi' 'libmpeg2' 'libmodplug' 'avahi' 'ttf-freefont' 'libxv' 'libass' 'xdg-utils') optdepends=('libnotify: for notification plugin' 'ncurses: for ncurses interface support' 'libdvdcss: for decoding encrypted DVDs' 'lirc-utils: for lirc plugin') options=('!libtool') install=vlc.install cd "${srcdir}/${pkgbase}-${pkgver}" make DESTDIR=${pkgdir}/ install || return 1 rm -rf ${pkgdir}/usr/lib/mozilla } package_vlc-plugin() { pkgdesc="VLC mozilla browser plugin" depends=("${pkgbase}=${pkgver}" 'nspr' 'xulrunner') cd "${srcdir}/${pkgbase}-${pkgver}" install -Dm755 projects/mozilla/.libs/libvlcplugin.so ${pkgdir}/usr/lib/mozilla/plugins/libvlcplugin.so || return 1 }