mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 04:04:36 +08:00
105 lines
3.8 KiB
Bash
105 lines
3.8 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
# Contributions from ArchLinux: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/vlc
|
|
|
|
pkgname=vlc
|
|
pkgver=2.0.8
|
|
pkgrel=2
|
|
arch=('x86_64')
|
|
url="http://www.videolan.org/vlc/"
|
|
pkgdesc=('A multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols')
|
|
license=('GPL')
|
|
depends=('a52dec' 'fluidsynth' 'libdvbpsi' 'libxpm' 'libdca' 'qt' 'libproxy'
|
|
'sdl_image' 'libdvdnav' 'lua' 'libmatroska'
|
|
'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
|
|
'libshout' 'libmad' 'libmpeg2' 'xcb-util-keysyms')
|
|
makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'kdelibs'
|
|
'libdc1394' 'libavc1394' 'lirc-utils' 'libcaca' 'oss'
|
|
'librsvg' 'portaudio' 'oss' 'libgme' 'aalib' 'libmtp'
|
|
'vcdimager' 'opus' 'libssh2' 'mesa')
|
|
optdepends=('aalib: for ASCII art plugin'
|
|
'avahi: for service discovery using bonjour protocol'
|
|
'flac: for Free Lossless Audio Codec plugin'
|
|
'kdelibs: KDE Solid hardware integration'
|
|
'libavc1394: for devices using the 1394ta AV/C'
|
|
'libbluray: for Blu-Ray support'
|
|
'libcaca: for colored ASCII art video output'
|
|
'libcdio: for audio CD playback support'
|
|
'libdc1394: for IEEE 1394 plugin'
|
|
'libdvdcss: for decoding encrypted DVDs'
|
|
'libgme: for libgme plugin'
|
|
'libmtp: for MTP devices support'
|
|
'libnotify: for notification plugin'
|
|
'librsvg: for SVG plugin'
|
|
'libssh2: for sftp support'
|
|
'libva-intel-driver: back-end for intel cards'
|
|
'libva-vdpau-driver: vdpau back-end for nvidia'
|
|
'lirc-utils: for lirc plugin'
|
|
'ncurses: for ncurses interface support'
|
|
'opus: for opus support'
|
|
'oss: for OSS audio support'
|
|
'portaudio: for portaudio support'
|
|
'smbclient: for SMB access plugin'
|
|
'ttf-dejavu: for subtitle font'
|
|
'ttf-freefont: for subtitle font '
|
|
'vcdimager: navigate VCD with libvcdinfo')
|
|
conflicts=('vlc-plugin')
|
|
replaces=('vlc-plugin')
|
|
backup=('usr/share/vlc/lua/http/.hosts'
|
|
'usr/share/vlc/lua/http/dialogs/.hosts')
|
|
categories=('multimedia')
|
|
options=('!libtool' '!emptydirs')
|
|
install="vlc.install"
|
|
source=("http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"
|
|
"libva12.patch"
|
|
"fix-live555-breakage.patch")
|
|
sha1sums=('8937ed30412bef49db77d2187a9e4734866f8ab7'
|
|
'e67786202ef6b940c5d2690d4c5520a97401a611'
|
|
'9660ad86dbaf438c1dd9b7370463b04a947b619f')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
patch -p1 < "$srcdir"/libva12.patch
|
|
patch -Np1 -i ../fix-live555-breakage.patch
|
|
|
|
sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
|
|
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
|
|
}
|
|
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--disable-rpath \
|
|
--enable-faad \
|
|
--enable-oss \
|
|
--enable-dbus-control \
|
|
--enable-nls \
|
|
--enable-lirc \
|
|
--enable-pvr \
|
|
--enable-ncurses \
|
|
--enable-realrtsp \
|
|
--enable-aa \
|
|
--enable-vcdx \
|
|
--enable-upnp \
|
|
--enable-bluray \
|
|
--enable-opus \
|
|
--enable-sftp
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
for res in 16 32 48 128; do
|
|
install -D -m644 "${srcdir}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
|
|
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
|
|
done
|
|
|
|
}
|
|
|