wok view mplayer/receipt @ rev 22333

Up mplayer (1.4)
author Richard Dunbar <mojo@slitaz.org>
date Fri Nov 15 08:58:24 2019 -0500 (2019-11-15)
parents 2282cb3628dd
children 241fb98cab1c
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 # Rules to configure and make the package.
45 compile_rules()
46 {
47 export CC=gcc-83
48 export CXX=g++-83
49 ./configure \
50 --prefix=/usr \
51 --confdir=/etc/mplayer \
52 --libdir=/usr/lib/mplayer \
53 --enable-gui \
54 --language="en de es fr it ru" \
55 --disable-gl \
56 --disable-jack \
57 --disable-liblzo \
58 --disable-libdv \
59 --disable-fribidi \
60 --disable-ivtv \
61 --disable-smb \
62 --disable-ftp \
63 --disable-openal \
64 --disable-faac \
65 --disable-speex \
66 ${ARCH_ARGS} &&
67 make $MAKEFLAGS &&
68 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/usr/share/mplayer/skins
75 cp -a $install/usr/bin $fs/usr
76 # Mencoder goes in a splited package.
77 rm $fs/usr/bin/mencoder
78 [ -d "$install/usr/share/mplayer" ] && \
79 cp -a $install/usr/share/mplayer $fs/usr/share
80 cp -a $install/etc $fs
81 cp $src/etc/example.conf $fs/etc/mplayer
82 # Config to use Xv by default.
83 cp $stuff/mplayer.conf $fs/etc/mplayer
84 # default skin
85 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
86 cd $fs/usr/share/mplayer/skins && ln -s productive default
87 # Font
88 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
89 # Xv support dont work for ARM and gmplayer symlink not created
90 case "$ARCH" in
91 arm*)
92 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
93 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
94 esac
95 }