wok-next view mplayer-svn/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents 5669e8b3be70
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="32666"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
11 BRANCH="$VERSION"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="subversion|svn://svn.mplayerhq.hu/mplayer/trunk"
15 BUILD_DEPENDS="alsa-lib-dev gtk2-dev cdparanoia-dev libmad-dev libxv-dev \
16 libtheora-dev subversion yasm"
18 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
19 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
20 # mplayer versions (use: svn info), very likely to succeed.
21 #
22 # To compile with in-built ffmpeg (and double the size of pkg), remove from
23 # compile options:
24 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
25 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
27 compile_rules() {
28 sed -i -e 's/info->color_type/png_get_color_type(png, info)/' \
29 -e 's/pngstr->io_ptr/png_get_io_ptr(pngstr)/' libmpcodecs/vd_mpng.c
30 # KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
31 # sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
32 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
33 # disable video outputs, audio outputs, some advanced options
34 ./configure \
35 --extra-cflags=-DHAVE_MMAP \
36 --prefix=/usr \
37 --confdir=/etc/mplayer \
38 --libdir=/usr/lib/mplayer \
39 --enable-gui \
40 --enable-freetype \
41 --language="en de es fr" \
42 --target=i386-linux \
43 --disable-largefiles \
44 --disable-dvdnav \
45 --disable-pvr \
46 --disable-enca \
47 --disable-fribidi \
48 --disable-maemo \
49 --disable-lirc \
50 --disable-lircc \
51 --disable-nemesi \
52 --disable-vstream \
53 --disable-smb \
54 --disable-live \
55 --disable-speex \
56 --disable-mng \
57 --disable-liblzo \
58 --disable-faad \
59 --disable-faad-internal \
60 --disable-libdv \
61 --disable-faac \
62 --disable-faac-lavc \
63 --disable-ladspa \
64 --disable-libbs2b \
65 --disable-libdca \
66 --disable-musepack \
67 --disable-gl \
68 --disable-vdpau \
69 --disable-directfb \
70 --disable-sdl \
71 --disable-mga \
72 --disable-jack \
73 --disable-pulse \
74 --disable-ossaudio \
75 --disable-openal \
76 --disable-nas \
77 --disable-esd \
78 --disable-mmx \
79 --disable-mmxext \
80 --disable-3dnow \
81 --disable-3dnowext \
82 --disable-sse \
83 --disable-sse2 \
84 --disable-ssse3 \
85 --disable-fastmemcpy \
86 &&
87 make $MAKEFLAGS &&
88 make DESTDIR=$install install
89 }
91 genpkg_rules() {
92 mkdir -p $fs/usr/share/applications
93 cp -a $stuff/mplayer.desktop $fs/usr/share/applications
94 cp -a $install/usr/bin $fs/usr
95 # Mencoder goes in a splited package.
96 rm $fs/usr/bin/mencoder
97 cp -a $install/usr/share/mplayer $fs/usr/share
98 cp -a $install/usr/share/pixmaps $fs/usr/share
99 cp -a $install/etc $fs
100 cp $src/etc/example.conf $fs/etc/mplayer
101 # Config to use Xv by default.
102 cp $stuff/mplayer.conf $fs/etc/mplayer
103 # default skin
104 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
105 cd $fs/usr/share/mplayer/skins
106 ln -s productive default
107 # Font
108 cd ..
109 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
110 DEPENDS="gtk2 cdparanoia libmad libxv libtheora lame giflib \
111 libxscrnsaver libxxf86vm alsa-lib libbzip2 x264 libass"
112 PROVIDE="mplayer"
113 SUGGESTED="v4l-utils"
114 TAGS="player movie audio video"
115 }