wok-6.x annotate mplayer-opt/receipt @ rev 16994
mplayer-opt: delete gui
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Aug 10 01:59:37 2014 +0200 (2014-08-10) |
parents | 7d92302eb790 |
children | 0cef0efb4df7 |
rev | line source |
---|---|
al@16703 | 1 # SliTaz package receipt. |
al@16703 | 2 |
al@16704 | 3 PACKAGE="mplayer-opt" |
al@16703 | 4 VERSION="1.1.1" |
al@16703 | 5 CATEGORY="multimedia" |
psychomaniak@16994 | 6 SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)" |
al@16703 | 7 MAINTAINER="pankso@slitaz.org" |
al@16703 | 8 LICENSE="GPL2" |
al@16703 | 9 SOURCE="MPlayer" |
al@16703 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@16703 | 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html" |
al@16703 | 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" |
al@16703 | 13 HOST_ARCH="i486 arm" |
al@16703 | 14 |
psychomaniak@16994 | 15 DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \ |
psychomaniak@16994 | 16 libmng enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss" |
psychomaniak@16994 | 17 BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \ |
psychomaniak@16959 | 18 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \ |
psychomaniak@16994 | 19 audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm" |
al@16703 | 20 |
psychomaniak@16994 | 21 GENERIC_MENUS="no" |
psychomaniak@16994 | 22 |
psychomaniak@16994 | 23 # Handle arch package install. Less deps and no GTK gui |
al@16703 | 24 case "$SLITAZ_ARCH" in |
al@16703 | 25 arm*) |
al@16703 | 26 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ |
psychomaniak@16994 | 27 libvorbis libtheora libsdl" ;; |
al@16703 | 28 esac |
al@16703 | 29 |
al@16703 | 30 # Handle cross compilation. Host coreutils-file-* are used |
al@16703 | 31 case "$ARCH" in |
al@16703 | 32 i?86) |
psychomaniak@16994 | 33 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection" |
psychomaniak@16994 | 34 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev libmng-dev" ;; |
al@16703 | 35 arm*) |
al@16703 | 36 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" |
al@16703 | 37 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; |
al@16703 | 38 esac |
al@16703 | 39 |
al@16703 | 40 # Rules to configure and make the package. |
al@16703 | 41 compile_rules() |
al@16703 | 42 { |
al@16703 | 43 ./configure \ |
al@16703 | 44 --prefix=/usr \ |
al@16703 | 45 --confdir=/etc/mplayer \ |
al@16703 | 46 --libdir=/usr/lib/mplayer \ |
al@16703 | 47 --language="en de es fr it pl ru" \ |
psychomaniak@16821 | 48 --disable-mencoder \ |
al@16703 | 49 --disable-gl \ |
al@16703 | 50 --disable-jack \ |
al@16703 | 51 --disable-liblzo \ |
al@16703 | 52 --disable-libdv \ |
al@16703 | 53 --disable-fribidi \ |
al@16703 | 54 --disable-ivtv \ |
al@16703 | 55 --disable-smb \ |
al@16703 | 56 --disable-ftp \ |
al@16703 | 57 --disable-openal \ |
al@16703 | 58 --disable-faac \ |
psychomaniak@16959 | 59 --disable-speex --disable-esd \ |
psychomaniak@16953 | 60 --disable-lirc --disable-lircc \ |
al@16703 | 61 ${ARCH_ARGS} && |
al@16703 | 62 make $MAKEFLAGS && |
al@16703 | 63 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
al@16703 | 64 } |
al@16703 | 65 |
al@16703 | 66 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16703 | 67 genpkg_rules() |
al@16703 | 68 { |
psychomaniak@16994 | 69 mkdir -p $fs/usr/share/mplayer |
al@16703 | 70 cp -a $install/usr/bin $fs/usr |
al@16703 | 71 cp -a $install/etc $fs |
al@16703 | 72 cp $src/etc/example.conf $fs/etc/mplayer |
psychomaniak@16959 | 73 # Add /etc/mplayer/input.conf |
psychomaniak@16959 | 74 cp $stuff/input.conf $fs/etc/mplayer |
al@16703 | 75 # Config to use Xv by default. |
al@16703 | 76 cp $stuff/mplayer.conf $fs/etc/mplayer |
psychomaniak@16994 | 77 # No-gui |
psychomaniak@16994 | 78 cp $stuff/mplayer.desktop $fs/usr/share/applications |
al@16703 | 79 # Font |
psychomaniak@16994 | 80 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
al@16703 | 81 # Xv support dont work for ARM and gmplayer symlink not created |
al@16703 | 82 case "$ARCH" in |
al@16703 | 83 arm*) |
al@16703 | 84 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf |
al@16703 | 85 cd $fs/usr/bin && ln -s mplayer gmplayer ;; |
al@16703 | 86 esac |
al@16703 | 87 } |