wok-next annotate mplayer-cli/receipt @ rev 20957
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 05 15:26:05 2018 +0300 (2018-09-05) |
parents | 4e6503d7a19f |
children | d5aab818505e |
rev | line source |
---|---|
psychomaniak@19558 | 1 # SliTaz package receipt. |
psychomaniak@19558 | 2 |
psychomaniak@19558 | 3 PACKAGE="mplayer-cli" |
psychomaniak@19867 | 4 VERSION="1.3.0" |
psychomaniak@19558 | 5 CATEGORY="multimedia" |
psychomaniak@19558 | 6 SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)" |
psychomaniak@19558 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@19558 | 8 LICENSE="GPL2" |
al@20884 | 9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html" |
al@20884 | 10 REPOLOGY="mplayer" |
al@20884 | 11 |
psychomaniak@19558 | 12 SOURCE="MPlayer" |
psychomaniak@19558 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
psychomaniak@19558 | 14 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" |
psychomaniak@19558 | 15 |
psychomaniak@19558 | 16 # CONFIG_FILES="/etc/mplayer" # use ~/ instead |
psychomaniak@19558 | 17 |
al@20749 | 18 DEPENDS="alsa-lib bzlib fontconfig freetype giflib libgnutls libmad libpng16 \ |
al@20749 | 19 libsdl ncurses xorg-libX11 xorg-libXext xorg-libXv xorg-libXxf86vm zlib" |
psychomaniak@20421 | 20 BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev xorg-libXdamage-dev \ |
al@20935 | 21 giflib-dev xorg-libXxf86vm-dev xorg-xorgproto freetype-dev fontconfig-dev \ |
al@20513 | 22 zlib-dev yasm libmad-dev libsdl-dev gnutls-dev" |
psychomaniak@19558 | 23 PROVIDE="mplayer" |
psychomaniak@19558 | 24 |
psychomaniak@19558 | 25 # Handle cross compilation. Host coreutils-file-* are used |
psychomaniak@19558 | 26 case "$ARCH" in |
psychomaniak@19558 | 27 i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;; |
psychomaniak@19558 | 28 arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;; |
psychomaniak@19558 | 29 esac |
psychomaniak@19558 | 30 |
psychomaniak@19558 | 31 # Rules to configure and make the package. |
psychomaniak@19558 | 32 compile_rules() |
psychomaniak@19558 | 33 { |
psychomaniak@19558 | 34 ./configure \ |
psychomaniak@19558 | 35 --prefix=/usr \ |
psychomaniak@19558 | 36 --confdir=/etc/mplayer \ |
psychomaniak@19558 | 37 --libdir=/usr/lib/mplayer \ |
psychomaniak@19558 | 38 --language="en de es fr it pl ru" \ |
psychomaniak@19558 | 39 --enable-menu \ |
psychomaniak@19558 | 40 --disable-mencoder \ |
psychomaniak@19558 | 41 --disable-gl \ |
psychomaniak@19558 | 42 --disable-jack \ |
psychomaniak@19558 | 43 --disable-liblzo \ |
psychomaniak@19558 | 44 --disable-libdv \ |
psychomaniak@19558 | 45 --disable-fribidi \ |
psychomaniak@19558 | 46 --disable-ivtv \ |
psychomaniak@19558 | 47 --disable-smb \ |
psychomaniak@19558 | 48 --disable-openal \ |
psychomaniak@19558 | 49 --disable-faac \ |
psychomaniak@19558 | 50 --disable-speex --disable-esd \ |
psychomaniak@19558 | 51 --disable-lirc --disable-lircc \ |
psychomaniak@19558 | 52 ${ARCH_ARGS} && |
psychomaniak@19558 | 53 make $MAKEFLAGS && |
psychomaniak@19558 | 54 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
psychomaniak@19558 | 55 } |
psychomaniak@19558 | 56 |
psychomaniak@19558 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19558 | 58 genpkg_rules() |
psychomaniak@19558 | 59 { |
psychomaniak@19558 | 60 mkdir -p $fs/usr/share/mplayer |
psychomaniak@19558 | 61 cp -a $install/usr/bin $fs/usr |
psychomaniak@19558 | 62 cp -a $install/etc $fs |
psychomaniak@19558 | 63 cp $src/etc/example.conf $fs/etc/mplayer |
psychomaniak@19558 | 64 # Add /etc/mplayer/input.conf |
psychomaniak@19558 | 65 cp $stuff/input.conf $fs/etc/mplayer |
psychomaniak@19558 | 66 # Config |
psychomaniak@19558 | 67 cp $stuff/mplayer.conf $fs/etc/mplayer |
psychomaniak@19558 | 68 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) |
psychomaniak@19558 | 69 mkdir -p $fs/usr/share/applications |
psychomaniak@19558 | 70 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop |
psychomaniak@19558 | 71 cp $src/etc/*menu.conf $fs/etc/mplayer |
psychomaniak@19558 | 72 # Font |
psychomaniak@19558 | 73 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
psychomaniak@19558 | 74 } |