wok annotate mplayer/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (7 days ago)
parents f5616184eba2
children
rev   line source
pankso@913 1 # SliTaz package receipt.
pankso@913 2
pankso@913 3 PACKAGE="mplayer"
mojo@22333 4 VERSION="1.4"
pankso@913 5 CATEGORY="multimedia"
pankso@913 6 SHORT_DESC="The Ultimate Movie Player For Linux."
pankso@913 7 MAINTAINER="pankso@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
Hans-G?nter@25183 9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
Hans-G?nter@25183 10
pankso@13017 11 SOURCE="MPlayer"
pankso@13017 12 TARBALL="$SOURCE-$VERSION.tar.xz"
pankso@13017 13 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
Hans-G?nter@25183 14
pankso@16123 15 HOST_ARCH="i486 arm"
pankso@13017 16
pankso@16276 17 # Dont forget to update all related pkgs
pankso@16276 18 RELATED="mplayer-codecs mencoder"
Hans-G?nter@25185 19 DEPENDS="alsa-lib audiofile enca esound ncurses cdparanoia-III ffmpeg gcc83-lib-base
Hans-G?nter@25185 20 giflib gtk+ lame libdvdnav libdvdread libmad libmng libogg libtheora libvorbis
Hans-G?nter@25185 21 lirc x264 xorg-libXdamage xorg-libXss xorg-libXv xorg-libXxf86vm xvidcore zlib"
Hans-G?nter@25185 22 BUILD_DEPENDS="alsa-lib-dev audiofile-dev esound-dev ffmpeg-dev gcc83 giflib-dev
Hans-G?nter@25185 23 gtk+-dev lame-dev libdvdnav-dev libdvdread-dev libmad-dev libogg-dev
Hans-G?nter@25185 24 libtheora-dev libvorbis-dev ncurses-dev pkg-config xorg-libXdamage-dev
Hans-G?nter@25185 25 xorg-libXv-dev xorg-libXxf86vm-dev xorg-xextproto xvidcore-dev yasm zlib-dev"
pankso@913 26
pankso@16123 27 # Handle arch package install. Less deps and no GTK gui for ARM
pankso@16123 28 case "$SLITAZ_ARCH" in
pankso@16276 29 arm*)
pankso@16276 30 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
pankso@16459 31 libvorbis libtheora libsdl xvidcore lame esound gtk+" ;;
pankso@16123 32 esac
pankso@16123 33
pankso@16123 34 # Handle cross compilation. Host coreutils-file-* are used
pankso@16123 35 case "$ARCH" in
pankso@16123 36 i?86)
psychomaniak@16974 37 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
pankso@16276 38 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \
pankso@16276 39 libmng-dev lirc-dev" ;;
pankso@16123 40 arm*)
pascal@19093 41 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
pankso@16276 42 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
pankso@16123 43 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
pankso@16123 44 esac
pankso@16123 45
pascal@24453 46 # What is the latest version available today?
pascal@24453 47 current_version()
pascal@24453 48 {
pascal@24453 49 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 50 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 51 }
pascal@24453 52
pankso@913 53 # Rules to configure and make the package.
pankso@913 54 compile_rules()
pankso@913 55 {
mojo@22333 56 export CC=gcc-83
mojo@22333 57 export CXX=g++-83
Hans-G?nter@25183 58 ./configure \
Hans-G?nter@25183 59 --prefix=/usr \
Hans-G?nter@25183 60 --confdir=/etc/mplayer \
Hans-G?nter@25183 61 --libdir=/usr/lib/mplayer \
Hans-G?nter@25183 62 --enable-gui \
Hans-G?nter@25183 63 --language="en de es fr it ru" \
Hans-G?nter@25184 64 --disable-ffmpeg_a \
Hans-G?nter@25183 65 --disable-gl \
Hans-G?nter@25183 66 --disable-jack \
Hans-G?nter@25183 67 --disable-liblzo \
Hans-G?nter@25183 68 --disable-libdv \
Hans-G?nter@25183 69 --disable-fribidi \
Hans-G?nter@25183 70 --disable-ivtv \
Hans-G?nter@25183 71 --disable-smb \
Hans-G?nter@25183 72 --disable-ftp \
Hans-G?nter@25183 73 --disable-openal \
Hans-G?nter@25183 74 --disable-faac \
Hans-G?nter@25183 75 --disable-speex \
pankso@16123 76 ${ARCH_ARGS} &&
gokhlayeh@11574 77 make $MAKEFLAGS &&
Hans-G?nter@25183 78 make install DESTDIR=$DESTDIR | sed '/install: strip: .*/'d
pankso@913 79 }
pankso@913 80
pankso@913 81 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@913 82 genpkg_rules()
pankso@913 83 {
pankso@16123 84 mkdir -p $fs/usr/share/mplayer/skins
Hans-G?nter@25183 85 cp -a $install/usr/bin $fs/usr
Hans-G?nter@25183 86 # Mencoder goes in a splitted package.
Hans-G?nter@25183 87 rm $fs/usr/bin/mencoder
Hans-G?nter@25183 88 [ -d "$install/usr/share/mplayer" ] &&
Hans-G?nter@25183 89 cp -a $install/usr/share/mplayer $fs/usr/share
Hans-G?nter@25183 90 cp -a $install/etc $fs
Hans-G?nter@25183 91 cp $src/etc/example.conf $fs/etc/mplayer
Hans-G?nter@25183 92 # Configuration to use Xv by default.
Hans-G?nter@25183 93 cp $stuff/mplayer.conf $fs/etc/mplayer
pankso@913 94 # default skin
pankso@13017 95 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
pankso@978 96 cd $fs/usr/share/mplayer/skins && ln -s productive default
pankso@913 97 # Font
pankso@913 98 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
pankso@16459 99 # Xv support dont work for ARM and gmplayer symlink not created
pankso@16123 100 case "$ARCH" in
pankso@16459 101 arm*)
pankso@16459 102 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
pankso@16459 103 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
pankso@16123 104 esac
Hans-G?nter@25183 105 }