2010-06-22 22:41:24 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgbase=vlc
|
|
|
|
pkgname=('vlc'
|
|
|
|
'vlc-plugin')
|
2010-06-22 22:41:24 +08:00
|
|
|
pkgver=1.1.0
|
|
|
|
pkgrel=1
|
2010-03-14 23:48:48 +08:00
|
|
|
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'
|
2010-05-17 15:50:50 +08:00
|
|
|
'xulrunner' 'pkgconfig' 'live-media' 'libnotify' 'libcdio')
|
2010-06-22 22:41:24 +08:00
|
|
|
source=(http://download.videolan.org/pub/videolan/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2)
|
|
|
|
md5sums=('e2142957137b183a5ad0a4827c39f655')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
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"
|
2010-05-17 15:50:50 +08:00
|
|
|
depends=("${pkgbase}=${pkgver}" 'nspr' 'xulrunner')
|
2010-03-14 23:48:48 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
install -Dm755 projects/mozilla/.libs/libvlcplugin.so ${pkgdir}/usr/lib/mozilla/plugins/libvlcplugin.so || return 1
|
|
|
|
}
|