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