wok view mplayer-cli/receipt @ rev 24050
updated i3 and i3-man (4.5.1 -> 4.19.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 13 14:58:33 2021 +0100 (2021-05-13) |
parents | 7027755306af |
children | 241fb98cab1c |
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 # Rules to configure and make the package.
36 compile_rules()
37 {
38 export CC=gcc-83
39 export CXX=g++-83
41 ./configure \
42 --prefix=/usr \
43 --confdir=/etc/mplayer \
44 --libdir=/usr/lib/mplayer \
45 --language="en de es fr it pl ru" \
46 --enable-menu \
47 --disable-mencoder \
48 --disable-gl \
49 --disable-jack \
50 --disable-liblzo \
51 --disable-libdv \
52 --disable-fribidi \
53 --disable-ivtv \
54 --disable-smb \
55 --disable-openal \
56 --disable-faac \
57 --disable-speex \
58 --disable-esd \
59 --disable-lirc \
60 --disable-lircc \
61 ${ARCH_ARGS} &&
62 make $MAKEFLAGS &&
63 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p $fs/usr/share/mplayer
70 cp -a $install/usr/bin $fs/usr
71 cp -a $install/etc $fs
72 cp $src/etc/example.conf $fs/etc/mplayer
73 # Add /etc/mplayer/input.conf
74 cp $stuff/input.conf $fs/etc/mplayer
75 # Config
76 cp $stuff/mplayer.conf $fs/etc/mplayer
77 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
78 mkdir -p $fs/usr/share/applications
79 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
80 cp $src/etc/*menu.conf $fs/etc/mplayer
81 # Font
82 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
83 }