wok-next annotate mplayer/receipt @ rev 21195

updated scrollz (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 15:54:27 2019 +0100 (2019-10-03)
parents ea9e52516fb0
children 3024edbf8c9f
rev   line source
al@20456 1 # SliTaz package receipt v2.
pankso@913 2
pankso@913 3 PACKAGE="mplayer"
pankso@16123 4 VERSION="1.1.1"
pankso@913 5 CATEGORY="multimedia"
al@20456 6 SHORT_DESC="The Ultimate Movie Player For Linux"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
pankso@13017 9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
al@20456 10
al@20456 11 TARBALL="MPlayer-$VERSION.tar.xz"
pankso@13017 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
pankso@13017 13
al@21078 14 BUILD_DEPENDS="gtk2-dev libmad-dev libxv-dev libtheora-dev \
al@21078 15 alsa-lib-dev ncurses-dev lame-dev libxdamage-dev giflib-dev \
al@21078 16 libxxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
al@21078 17 xvidcore-dev zlib-dev xorgproto yasm cdparanoia-dev \
al@20456 18 x264-dev enca-dev libmng-dev lirc-dev"
al@20456 19 SPLIT="mencoder"
pankso@913 20
al@20456 21 compile_rules() {
al@20456 22 # Handle cross compilation. Host coreutils-file-* are used
al@20456 23 case "$ARCH" in
al@20456 24 i?86)
al@20456 25 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
al@20456 26 ;;
al@20456 27 esac
pankso@16123 28
pankso@913 29 ./configure \
pankso@913 30 --prefix=/usr \
pankso@913 31 --confdir=/etc/mplayer \
pankso@913 32 --libdir=/usr/lib/mplayer \
psychomaniak@16974 33 --enable-gui \
pankso@13017 34 --language="en de es fr it ru" \
pascal@1652 35 --disable-gl \
pascal@1652 36 --disable-jack \
pascal@1652 37 --disable-liblzo \
pascal@1652 38 --disable-libdv \
pascal@1652 39 --disable-fribidi \
pascal@4290 40 --disable-ivtv \
pankso@4458 41 --disable-smb \
pankso@4458 42 --disable-ftp \
pankso@4458 43 --disable-openal \
pankso@4458 44 --disable-faac \
pankso@4458 45 --disable-speex \
pankso@16123 46 ${ARCH_ARGS} &&
gokhlayeh@11574 47 make $MAKEFLAGS &&
al@21020 48 make DESTDIR=$install install
pankso@913 49 }
pankso@913 50
al@20456 51 genpkg_rules() {
al@20456 52 case $PACKAGE in
al@20456 53 mplayer)
al@20456 54 mkdir -p $fs/usr/share/mplayer/skins
al@20456 55 cp -a $install/usr/bin $fs/usr
al@20456 56 # Mencoder goes in a splited package.
al@20456 57 rm $fs/usr/bin/mencoder
al@21020 58 [ -d "$install/usr/share/mplayer" ] &&
al@20456 59 cp -a $install/usr/share/mplayer $fs/usr/share
al@20456 60 cp -a $install/etc $fs
al@20456 61 cp $src/etc/example.conf $fs/etc/mplayer
al@20456 62 # Config to use Xv by default.
al@20456 63 cp $stuff/mplayer.conf $fs/etc/mplayer
al@20456 64 # default skin
al@20456 65 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
al@20456 66 cd $fs/usr/share/mplayer/skins && ln -s productive default
al@20456 67 # Font
al@21017 68 cd ..
al@21017 69 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
al@21078 70 DEPENDS="gtk2 cdparanoia libmad libxv libtheora alsa-lib \
al@21078 71 ncurses lame libxdamage giflib enca lirc libxxf86vm \
al@20456 72 esound libmng audiofile libvorbis libogg zlib xvidcore x264 \
al@21078 73 libxscrnsaver"
al@20456 74 ;;
al@20456 75 mencoder)
al@20456 76 copy /usr/bin/mencoder
al@20456 77 CAT="multimedia|video and movie encoder"
al@21070 78 DEPENDS="libtheora alsa-lib cdparanoia expat libogg libvorbis \
al@20456 79 fontconfig freetype x264 xvidcore jpeg libmad ncurses zlib lame \
al@21078 80 libpng giflib enca lirc"
al@20456 81 ;;
pankso@16123 82 esac
al@20456 83 }