wok-next annotate mplayer/receipt @ rev 16146
Move kompozer to undigest (not compiling for a long time and not realy maintained)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 21:49:28 2014 +0100 (2014-03-26) |
parents | bb009a6ef036 |
children | 8139105f9285 |
rev | line source |
---|---|
pankso@913 | 1 # SliTaz package receipt. |
pankso@913 | 2 |
pankso@913 | 3 PACKAGE="mplayer" |
pankso@16123 | 4 VERSION="1.1.1" |
pankso@913 | 5 CATEGORY="multimedia" |
pankso@913 | 6 SHORT_DESC="The Ultimate Movie Player For Linux." |
pankso@913 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15583 | 8 LICENSE="GPL2" |
pankso@13017 | 9 SOURCE="MPlayer" |
pankso@13017 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
pankso@13017 | 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html" |
pankso@13017 | 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" |
pankso@16123 | 13 HOST_ARCH="i486 arm" |
pankso@13017 | 14 |
pankso@16123 | 15 RELATED="mplayer-codecs mencoder" # Dont forget to update them |
pascal@2519 | 16 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \ |
slaxemulator@6704 | 17 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \ |
slaxemulator@7113 | 18 libvorbis libogg xvidcore x264 zlib xorg-libXss" |
pankso@13017 | 19 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev \ |
pankso@13017 | 20 libtheora-dev alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev \ |
pankso@13017 | 21 giflib-dev enca-dev lirc-dev xorg-libXxf86vm-dev esound-dev libmng-dev \ |
pankso@13017 | 22 audiofile-dev x264-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \ |
pankso@13017 | 23 xorg-xextproto pkg-config yasm" |
pankso@913 | 24 |
pankso@16123 | 25 # Handle arch package install. Less deps and no GTK gui for ARM |
pankso@16123 | 26 case "$SLITAZ_ARCH" in |
pankso@16123 | 27 arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ |
pankso@16123 | 28 libvorbis libtheora libsdl xvidcore lame esound" ;; |
pankso@16123 | 29 esac |
pankso@16123 | 30 |
pankso@16123 | 31 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16123 | 32 case "$ARCH" in |
pankso@16123 | 33 i?86) |
pankso@16123 | 34 ARCH_ARGS="--target=i386-linux --enable-gui --disable-sdl" ;; |
pankso@16123 | 35 arm*) |
pankso@16123 | 36 BUILD_DEPENDS="alsa-lib-dev zlib-dev libmad-dev xorg-libXv-dev \ |
pankso@16123 | 37 xorg-libXxf86vm-dev libogg-dev libvorbis-dev libsdl-dev xvidcore-dev lame-dev \ |
pankso@16123 | 38 libtheora-dev esound-dev" |
pankso@16123 | 39 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; |
pankso@16123 | 40 esac |
pankso@16123 | 41 |
pankso@913 | 42 # Rules to configure and make the package. |
pankso@913 | 43 compile_rules() |
pankso@913 | 44 { |
pankso@913 | 45 ./configure \ |
pankso@913 | 46 --prefix=/usr \ |
pankso@913 | 47 --confdir=/etc/mplayer \ |
pankso@913 | 48 --libdir=/usr/lib/mplayer \ |
pankso@13017 | 49 --language="en de es fr it ru" \ |
pankso@4458 | 50 --disable-mmx \ |
pankso@4458 | 51 --disable-mmxext \ |
pankso@4458 | 52 --disable-3dnow \ |
pankso@4458 | 53 --disable-3dnowext \ |
pankso@4458 | 54 --disable-sse \ |
pankso@4458 | 55 --disable-sse2 \ |
pankso@4458 | 56 --disable-ssse3 \ |
pascal@1652 | 57 --disable-fastmemcpy \ |
pascal@1652 | 58 --disable-gl \ |
pascal@1652 | 59 --disable-jack \ |
pascal@1652 | 60 --disable-liblzo \ |
pascal@1652 | 61 --disable-libdv \ |
pascal@1652 | 62 --disable-fribidi \ |
pascal@4290 | 63 --disable-ivtv \ |
pankso@4458 | 64 --disable-smb \ |
pankso@4458 | 65 --disable-ftp \ |
pankso@4458 | 66 --disable-openal \ |
pankso@4458 | 67 --disable-faac \ |
pankso@4458 | 68 --disable-speex \ |
pankso@16123 | 69 ${ARCH_ARGS} && |
gokhlayeh@11574 | 70 make $MAKEFLAGS && |
pankso@16123 | 71 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
pankso@913 | 72 } |
pankso@913 | 73 |
pankso@913 | 74 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@913 | 75 genpkg_rules() |
pankso@913 | 76 { |
pankso@16123 | 77 mkdir -p $fs/usr/share/mplayer/skins |
pankso@13017 | 78 cp -a $install/usr/bin $fs/usr |
pankso@913 | 79 # Mencoder goes in a splited package. |
pankso@913 | 80 rm $fs/usr/bin/mencoder |
pankso@16123 | 81 [ -d "$install/usr/share/mplayer" ] && \ |
pankso@16123 | 82 cp -a $install/usr/share/mplayer $fs/usr/share |
pankso@13017 | 83 cp -a $install/etc $fs |
pankso@913 | 84 cp $src/etc/example.conf $fs/etc/mplayer |
pankso@13017 | 85 # Config to use Xv by default. |
pankso@13017 | 86 cp $stuff/mplayer.conf $fs/etc/mplayer |
pankso@913 | 87 # default skin |
pankso@13017 | 88 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
pankso@978 | 89 cd $fs/usr/share/mplayer/skins && ln -s productive default |
pankso@913 | 90 # Font |
pankso@913 | 91 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
pankso@16123 | 92 # Xv support dont work for ARM |
pankso@16123 | 93 case "$ARCH" in |
pankso@16123 | 94 arm*) cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf ;; |
pankso@16123 | 95 esac |
pankso@913 | 96 } |