mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 05:47:13 +08:00
103 lines
3.8 KiB
Bash
103 lines
3.8 KiB
Bash
# $Id: PKGBUILD 80191 2010-05-13 15:41:15Z andrea $
|
|
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
|
|
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
|
|
|
|
pkgbase=vlc
|
|
pkgname=('vlc'
|
|
'vlc-plugin')
|
|
pkgver=1.0.6
|
|
pkgrel=3
|
|
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
|
|
libpng-1.4.patch
|
|
vlc-1.0.4-new-xulrunner.patch)
|
|
md5sums=('246a3865ec037f8f5757ef6b973a80fc'
|
|
'b1961688a9be282a126bfa1cad4b28fa'
|
|
'b1fc5e2527ecc863b3665238d82ac2db')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
patch -Np1 -i ${srcdir}/libpng-1.4.patch || return 1
|
|
#http://trac.videolan.org/vlc/ticket/3185
|
|
patch -Np1 -i ${srcdir}/vlc-1.0.4-new-xulrunner.patch || return 1
|
|
|
|
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-hal \
|
|
--enable-dbus \
|
|
--enable-ogg \
|
|
--enable-dbus-control \
|
|
--enable-shared \
|
|
--enable-nls \
|
|
--enable-lirc \
|
|
--enable-shout \
|
|
--enable-pvr \
|
|
--enable-ncurses \
|
|
--enable-mozilla \
|
|
--enable-release \
|
|
--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
|
|
|
|
for res in 16 32 48 128; do
|
|
install -D -m644 ${srcdir}/vlc-${pkgver}/share/vlc${res}x${res}.png \
|
|
${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
|
|
done
|
|
|
|
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
|
|
}
|