void-packages/srcpkgs/vlc/template

59 lines
2.2 KiB
Plaintext

# Template file for 'vlc'
pkgname=vlc
version=1.0.4
distfiles="http://download.videolan.org/pub/videolan/vlc/$version/vlc-$version.tar.bz2"
build_style=gnu_configure
configure_args="--disable-hal --disable-mtp --disable-gme
--disable-telepathy --disable-lua --disable-live555 --disable-pulse
--enable-dvdread --disable-smb --disable-vcdinfo --enable-cddax
--disable-libtar --enable-flac --enable-xvmc --enable-snapshot"
short_desc="VideoLan Client"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=dbff0ba0cd60a4323f85fd8b918f2a4477a11c5a8f628d1b868fb5947e8e9896
long_desc="
VLC media player is a highly portable multimedia player supporting most
audio and video formats (H.264, Ogg, DivX, MKV, TS, MPEG-2, mp3, MPEG-4,
aac, ...) from files, physical media (DVDs, VCD, Audio-CD), TV capture
cards and many network streaming protocols.
It can also convert media files, transcode and act as a streaming server
over unicast or multicast and IPv4 or IPv6. It doesn't need any external
codec, program or codec pack to work."
Add_dependency build pkg-config
# XXX Add missing deps: libmtp, gme, telepathy, lua, live555, pulse
# smbclient, libtar (for skins2).
_vlc_deps="zlib dbus udev pcre libxml2 libgcrypt gnutls taglib freetype"
_vlc_deps="${_vlc_deps} fribidi liba52 libcddb libmpcdec libproxy libebml"
_vlc_deps="${_vlc_deps} libnotify libogg libtheora libflac libmad libmatroska"
_vlc_deps="${_vlc_deps} libcdio libdvdread libdvdnav libdvbpsi libdca"
_vlc_deps="${_vlc_deps} libXv libXvMC libXxf86vm libXdamage libXinerama"
_vlc_deps="${_vlc_deps} libmpeg2 ffmpeg x264 MesaLib SDL SDL_image qt"
_vlc_deps="${_vlc_deps} avahi-libs"
for _dep_ in ${_vlc_deps}; do
Add_dependency run ${_dep_}
Add_dependency build ${_dep_}-devel
done
pre_configure()
{
# hostname -s is not valid, at least in coreutils!
sed -i "s|hostname -s|hostname|g" ${wrksrc}/configure || return 1
}
post_install()
{
# Remove unused stuff
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/pkgconfig
rm -f ${DESTDIR}/usr/bin/vlc-config
rm -f ${DESTDIR}/usr/share/man/man1/vlc-config.1
mkdir -p ${DESTDIR}/usr/share/pixmaps
cd ${DESTDIR}/usr/share/pixmaps && \
ln -sf ../vlc/vlc48x48.png vlc.png || return 1
}