wok-6.x annotate mplayer-cli/receipt @ rev 24721
updated libburn and libburn-dev (1.5.2 -> 1.5.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 09:33:23 2022 +0100 (2022-03-15) |
parents | b703fd200c5c |
children | 1866908654ff |
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 |
pascal@24453 | 35 # What is the latest version available today? |
pascal@24453 | 36 current_version() |
pascal@24453 | 37 { |
pascal@24453 | 38 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 39 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 40 } |
pascal@24453 | 41 |
psychomaniak@19558 | 42 # Rules to configure and make the package. |
psychomaniak@19558 | 43 compile_rules() |
psychomaniak@19558 | 44 { |
Hans-G?nter@23192 | 45 export CC=gcc-83 |
Hans-G?nter@23192 | 46 export CXX=g++-83 |
Hans-G?nter@23192 | 47 |
Hans-G?nter@23192 | 48 ./configure \ |
Hans-G?nter@23192 | 49 --prefix=/usr \ |
Hans-G?nter@23192 | 50 --confdir=/etc/mplayer \ |
Hans-G?nter@23192 | 51 --libdir=/usr/lib/mplayer \ |
Hans-G?nter@23192 | 52 --language="en de es fr it pl ru" \ |
Hans-G?nter@23192 | 53 --enable-menu \ |
Hans-G?nter@23192 | 54 --disable-mencoder \ |
Hans-G?nter@23192 | 55 --disable-gl \ |
Hans-G?nter@23192 | 56 --disable-jack \ |
Hans-G?nter@23192 | 57 --disable-liblzo \ |
Hans-G?nter@23192 | 58 --disable-libdv \ |
Hans-G?nter@23192 | 59 --disable-fribidi \ |
Hans-G?nter@23192 | 60 --disable-ivtv \ |
Hans-G?nter@23192 | 61 --disable-smb \ |
Hans-G?nter@23192 | 62 --disable-openal \ |
Hans-G?nter@23192 | 63 --disable-faac \ |
Hans-G?nter@23192 | 64 --disable-speex \ |
Hans-G?nter@23192 | 65 --disable-esd \ |
Hans-G?nter@23192 | 66 --disable-lirc \ |
Hans-G?nter@23192 | 67 --disable-lircc \ |
psychomaniak@19558 | 68 ${ARCH_ARGS} && |
psychomaniak@19558 | 69 make $MAKEFLAGS && |
psychomaniak@19558 | 70 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
psychomaniak@19558 | 71 } |
psychomaniak@19558 | 72 |
psychomaniak@19558 | 73 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19558 | 74 genpkg_rules() |
psychomaniak@19558 | 75 { |
psychomaniak@19558 | 76 mkdir -p $fs/usr/share/mplayer |
psychomaniak@19558 | 77 cp -a $install/usr/bin $fs/usr |
psychomaniak@19558 | 78 cp -a $install/etc $fs |
psychomaniak@19558 | 79 cp $src/etc/example.conf $fs/etc/mplayer |
psychomaniak@19558 | 80 # Add /etc/mplayer/input.conf |
psychomaniak@19558 | 81 cp $stuff/input.conf $fs/etc/mplayer |
psychomaniak@19558 | 82 # Config |
psychomaniak@19558 | 83 cp $stuff/mplayer.conf $fs/etc/mplayer |
psychomaniak@19558 | 84 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) |
psychomaniak@19558 | 85 mkdir -p $fs/usr/share/applications |
psychomaniak@19558 | 86 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop |
psychomaniak@19558 | 87 cp $src/etc/*menu.conf $fs/etc/mplayer |
psychomaniak@19558 | 88 # Font |
psychomaniak@19558 | 89 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
psychomaniak@19558 | 90 } |