wok view mplayer/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | b65ca8c01464 |
children | 64c226b3cfb5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer"
4 VERSION="1.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="The Ultimate Movie Player For Linux."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="MPlayer"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
13 HOST_ARCH="i486 arm"
15 # Dont forget to update all related pkgs
16 RELATED="mplayer-codecs mencoder"
17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \
18 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
19 libvorbis libogg zlib xvidcore x264 xorg-libXss gcc83-lib-base libdvdnav libdvdread"
20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev \
21 alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \
22 xorg-libXxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
23 xvidcore-dev zlib-dev xorg-xextproto pkg-config yasm gcc83 libdvdnav-dev libdvdread-dev"
25 # Handle arch package install. Less deps and no GTK gui for ARM
26 case "$SLITAZ_ARCH" in
27 arm*)
28 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
29 libvorbis libtheora libsdl xvidcore lame esound gtk+" ;;
30 esac
32 # Handle cross compilation. Host coreutils-file-* are used
33 case "$ARCH" in
34 i?86)
35 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \
37 libmng-dev lirc-dev" ;;
38 arm*)
39 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
40 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
41 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
42 esac
44 # What is the latest version available today?
45 current_version()
46 {
47 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
48 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
49 }
51 # Rules to configure and make the package.
52 compile_rules()
53 {
54 export CC=gcc-83
55 export CXX=g++-83
56 ./configure \
57 --prefix=/usr \
58 --confdir=/etc/mplayer \
59 --libdir=/usr/lib/mplayer \
60 --enable-gui \
61 --language="en de es fr it ru" \
62 --disable-gl \
63 --disable-jack \
64 --disable-liblzo \
65 --disable-libdv \
66 --disable-fribidi \
67 --disable-ivtv \
68 --disable-smb \
69 --disable-ftp \
70 --disable-openal \
71 --disable-faac \
72 --disable-speex \
73 ${ARCH_ARGS} &&
74 make $MAKEFLAGS &&
75 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
76 }
78 # Rules to gen a SliTaz package suitable for Tazpkg.
79 genpkg_rules()
80 {
81 mkdir -p $fs/usr/share/mplayer/skins
82 cp -a $install/usr/bin $fs/usr
83 # Mencoder goes in a splited package.
84 rm $fs/usr/bin/mencoder
85 [ -d "$install/usr/share/mplayer" ] && \
86 cp -a $install/usr/share/mplayer $fs/usr/share
87 cp -a $install/etc $fs
88 cp $src/etc/example.conf $fs/etc/mplayer
89 # Config to use Xv by default.
90 cp $stuff/mplayer.conf $fs/etc/mplayer
91 # default skin
92 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
93 cd $fs/usr/share/mplayer/skins && ln -s productive default
94 # Font
95 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
96 # Xv support dont work for ARM and gmplayer symlink not created
97 case "$ARCH" in
98 arm*)
99 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
100 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
101 esac
102 }