wok annotate mplayer-opt/receipt @ rev 17066
qtconfig: fix "broken", mplayer:fix osd menu, ln -s source
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Aug 22 13:41:54 2014 +0200 (2014-08-22) |
parents | 6dd4a6865e2e |
children | 6ac830804b1f |
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)" |
psychomaniak@17053 | 7 MAINTAINER="psychomaniak@xakep.ru" |
al@16703 | 8 LICENSE="GPL2" |
psychomaniak@17066 | 9 WANTED="mplayer" |
al@16703 | 10 WEB_SITE="http://www.mplayerhq.hu/design7/news.html" |
al@16703 | 11 HOST_ARCH="i486 arm" |
al@16703 | 12 |
psychomaniak@16994 | 13 DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \ |
psychomaniak@17053 | 14 enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss" |
psychomaniak@16994 | 15 BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \ |
psychomaniak@16959 | 16 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \ |
psychomaniak@16994 | 17 audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm" |
al@16703 | 18 |
psychomaniak@16994 | 19 # Handle arch package install. Less deps and no GTK gui |
al@16703 | 20 case "$SLITAZ_ARCH" in |
al@16703 | 21 arm*) |
al@16703 | 22 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ |
psychomaniak@16994 | 23 libvorbis libtheora libsdl" ;; |
al@16703 | 24 esac |
al@16703 | 25 |
al@16703 | 26 # Handle cross compilation. Host coreutils-file-* are used |
al@16703 | 27 case "$ARCH" in |
al@16703 | 28 i?86) |
psychomaniak@17066 | 29 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection" |
psychomaniak@17053 | 30 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev" ;; |
al@16703 | 31 arm*) |
al@16703 | 32 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" |
al@16703 | 33 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; |
al@16703 | 34 esac |
al@16703 | 35 |
al@16703 | 36 # Rules to configure and make the package. |
al@16703 | 37 compile_rules() |
al@16703 | 38 { |
psychomaniak@17066 | 39 rm -rf $WOK/$PACKAGE/source/ && mkdir -p $WOK/$PACKAGE/source/ |
psychomaniak@17066 | 40 ln -s $WOK/$WANTED/source/$WANTED-$VERSION \ |
psychomaniak@17066 | 41 $WOK/$PACKAGE/source/$PACKAGE-$VERSION && |
psychomaniak@17066 | 42 cd $src && |
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@17053 | 48 --enable-menu \ |
psychomaniak@16821 | 49 --disable-mencoder \ |
al@16703 | 50 --disable-gl \ |
al@16703 | 51 --disable-jack \ |
al@16703 | 52 --disable-liblzo \ |
al@16703 | 53 --disable-libdv \ |
al@16703 | 54 --disable-fribidi \ |
al@16703 | 55 --disable-ivtv \ |
al@16703 | 56 --disable-smb \ |
al@16703 | 57 --disable-ftp \ |
al@16703 | 58 --disable-openal \ |
al@16703 | 59 --disable-faac \ |
psychomaniak@16959 | 60 --disable-speex --disable-esd \ |
psychomaniak@16953 | 61 --disable-lirc --disable-lircc \ |
al@16703 | 62 ${ARCH_ARGS} && |
al@16703 | 63 make $MAKEFLAGS && |
al@16703 | 64 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
al@16703 | 65 } |
al@16703 | 66 |
al@16703 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16703 | 68 genpkg_rules() |
al@16703 | 69 { |
psychomaniak@16994 | 70 mkdir -p $fs/usr/share/mplayer |
al@16703 | 71 cp -a $install/usr/bin $fs/usr |
al@16703 | 72 cp -a $install/etc $fs |
al@16703 | 73 cp $src/etc/example.conf $fs/etc/mplayer |
psychomaniak@16959 | 74 # Add /etc/mplayer/input.conf |
psychomaniak@16959 | 75 cp $stuff/input.conf $fs/etc/mplayer |
psychomaniak@17053 | 76 # Config |
al@16703 | 77 cp $stuff/mplayer.conf $fs/etc/mplayer |
psychomaniak@17053 | 78 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) |
psychomaniak@17056 | 79 mkdir -p $fs/usr/share/applications |
psychomaniak@17056 | 80 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop |
psychomaniak@17066 | 81 cp $src/etc/*menu.conf $fs/etc/mplayer |
al@16703 | 82 # Font |
psychomaniak@16994 | 83 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
al@16703 | 84 } |