wok-current view mplayer-cli/receipt @ rev 25376
updated tzdata (2019c -> 2022a)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 10:43:02 2022 +0100 (2022-07-30) |
parents | 241fb98cab1c |
children |
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 ffmpeg fontconfig gcc83-lib-base giflib libgnutls libpng
18 libmad libsdl libxml2 ncurses pcre xorg-libXdamage xorg-libXss
19 xorg-libXv xorg-libXxf86vm zlib"
20 BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev fontconfig-dev freetype-dev gcc83
21 giflib-dev 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-ffmpeg_a \
56 --disable-gl \
57 --disable-jack \
58 --disable-liblzo \
59 --disable-libdv \
60 --disable-fribidi \
61 --disable-ivtv \
62 --disable-smb \
63 --disable-openal \
64 --disable-faac \
65 --disable-speex \
66 --disable-esd \
67 --disable-lirc \
68 --disable-lircc \
69 ${ARCH_ARGS} &&
70 make $MAKEFLAGS &&
71 make install DESTDIR=$DESTDIR | sed '/install: strip: .*/'d
72 }
74 # Rules to gen a SliTaz package suitable for Tazpkg.
75 genpkg_rules()
76 {
77 mkdir -p $fs/usr/share/mplayer
79 cp -a $install/usr/bin $fs/usr
80 cp -a $install/etc $fs
81 cp $src/etc/example.conf $fs/etc/mplayer
83 # Add /etc/mplayer/input.conf
84 cp $stuff/input.conf $fs/etc/mplayer
86 # Configuration
87 cp $stuff/mplayer.conf $fs/etc/mplayer
89 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
90 mkdir -p $fs/usr/share/applications
91 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
92 cp $src/etc/*menu.conf $fs/etc/mplayer
94 # Font
95 cd $fs/usr/share/mplayer &&
96 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
97 }