wok annotate mplayer-cli/receipt @ rev 23892

Fix coturn & grub4dos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 25 17:02:18 2020 +0000 (2020-07-25)
parents 7027755306af
children 241fb98cab1c
rev   line source
psychomaniak@19558 1 # SliTaz package receipt.
psychomaniak@19558 2
psychomaniak@19558 3 PACKAGE="mplayer-cli"
Hans-G?nter@23192 4 VERSION="1.4"
psychomaniak@19558 5 CATEGORY="multimedia"
Hans-G?nter@23192 6 SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)."
psychomaniak@19558 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@19558 8 LICENSE="GPL2"
Hans-G?nter@23192 9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
Hans-G?nter@23192 10
psychomaniak@19558 11 SOURCE="MPlayer"
psychomaniak@19558 12 TARBALL="$SOURCE-$VERSION.tar.xz"
psychomaniak@19558 13 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
Hans-G?nter@23192 14
Hans-G?nter@23192 15
Hans-G?nter@23192 16 PROVIDE="mplayer"
Hans-G?nter@23192 17 DEPENDS="alsa-lib fontconfig gcc83-lib-base giflib libgnutls libpng libmad
Hans-G?nter@23192 18 libsdl libxml2 ncurses pcre xorg-libXdamage xorg-libXss xorg-libXv
Hans-G?nter@23192 19 xorg-libXxf86vm zlib"
Hans-G?nter@23192 20 BUILD_DEPENDS="alsa-lib-dev fontconfig-dev freetype-dev gcc83 giflib-dev
Hans-G?nter@23192 21 gnutls-dev libmad-dev libsdl-dev ncurses-dev pkg-config
Hans-G?nter@23192 22 xorg-libXdamage-dev xorg-libXv-dev xorg-libXxf86vm-dev
Hans-G?nter@23192 23 xorg-xextproto yasm zlib-dev "
psychomaniak@19558 24
psychomaniak@19558 25 # CONFIG_FILES="/etc/mplayer" # use ~/ instead
psychomaniak@19558 26
Hans-G?nter@23192 27 HOST_ARCH="i486 arm"
psychomaniak@19558 28
psychomaniak@19558 29 # Handle cross compilation. Host coreutils-file-* are used
psychomaniak@19558 30 case "$ARCH" in
psychomaniak@19558 31 i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
psychomaniak@19558 32 arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
psychomaniak@19558 33 esac
psychomaniak@19558 34
psychomaniak@19558 35 # Rules to configure and make the package.
psychomaniak@19558 36 compile_rules()
psychomaniak@19558 37 {
Hans-G?nter@23192 38 export CC=gcc-83
Hans-G?nter@23192 39 export CXX=g++-83
Hans-G?nter@23192 40
Hans-G?nter@23192 41 ./configure \
Hans-G?nter@23192 42 --prefix=/usr \
Hans-G?nter@23192 43 --confdir=/etc/mplayer \
Hans-G?nter@23192 44 --libdir=/usr/lib/mplayer \
Hans-G?nter@23192 45 --language="en de es fr it pl ru" \
Hans-G?nter@23192 46 --enable-menu \
Hans-G?nter@23192 47 --disable-mencoder \
Hans-G?nter@23192 48 --disable-gl \
Hans-G?nter@23192 49 --disable-jack \
Hans-G?nter@23192 50 --disable-liblzo \
Hans-G?nter@23192 51 --disable-libdv \
Hans-G?nter@23192 52 --disable-fribidi \
Hans-G?nter@23192 53 --disable-ivtv \
Hans-G?nter@23192 54 --disable-smb \
Hans-G?nter@23192 55 --disable-openal \
Hans-G?nter@23192 56 --disable-faac \
Hans-G?nter@23192 57 --disable-speex \
Hans-G?nter@23192 58 --disable-esd \
Hans-G?nter@23192 59 --disable-lirc \
Hans-G?nter@23192 60 --disable-lircc \
psychomaniak@19558 61 ${ARCH_ARGS} &&
psychomaniak@19558 62 make $MAKEFLAGS &&
psychomaniak@19558 63 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
psychomaniak@19558 64 }
psychomaniak@19558 65
psychomaniak@19558 66 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@19558 67 genpkg_rules()
psychomaniak@19558 68 {
psychomaniak@19558 69 mkdir -p $fs/usr/share/mplayer
psychomaniak@19558 70 cp -a $install/usr/bin $fs/usr
psychomaniak@19558 71 cp -a $install/etc $fs
psychomaniak@19558 72 cp $src/etc/example.conf $fs/etc/mplayer
psychomaniak@19558 73 # Add /etc/mplayer/input.conf
psychomaniak@19558 74 cp $stuff/input.conf $fs/etc/mplayer
psychomaniak@19558 75 # Config
psychomaniak@19558 76 cp $stuff/mplayer.conf $fs/etc/mplayer
psychomaniak@19558 77 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
psychomaniak@19558 78 mkdir -p $fs/usr/share/applications
psychomaniak@19558 79 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
psychomaniak@19558 80 cp $src/etc/*menu.conf $fs/etc/mplayer
psychomaniak@19558 81 # Font
psychomaniak@19558 82 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
psychomaniak@19558 83 }