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