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