wok-6.x annotate mplayer/receipt @ rev 24723
updated libcap, libcap-dev and libcap-pam (2.33 -> 2.63)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 10:34:20 2022 +0100 (2022-03-15) |
parents | b65ca8c01464 |
children | 64c226b3cfb5 |
rev | line source |
---|---|
pankso@913 | 1 # SliTaz package receipt. |
pankso@913 | 2 |
pankso@913 | 3 PACKAGE="mplayer" |
mojo@22333 | 4 VERSION="1.4" |
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@16276 | 15 # Dont forget to update all related pkgs |
pankso@16276 | 16 RELATED="mplayer-codecs mencoder" |
pascal@2519 | 17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \ |
mojo@22333 | 18 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \ |
mojo@22333 | 19 libvorbis libogg zlib xvidcore x264 xorg-libXss gcc83-lib-base libdvdnav libdvdread" |
pankso@16276 | 20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev \ |
pankso@16276 | 21 alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \ |
pankso@16276 | 22 xorg-libXxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \ |
mojo@22333 | 23 xvidcore-dev zlib-dev xorg-xextproto pkg-config yasm gcc83 libdvdnav-dev libdvdread-dev" |
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@16276 | 27 arm*) |
pankso@16276 | 28 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ |
pankso@16459 | 29 libvorbis libtheora libsdl xvidcore lame esound gtk+" ;; |
pankso@16123 | 30 esac |
pankso@16123 | 31 |
pankso@16123 | 32 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16123 | 33 case "$ARCH" in |
pankso@16123 | 34 i?86) |
psychomaniak@16974 | 35 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection" |
pankso@16276 | 36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \ |
pankso@16276 | 37 libmng-dev lirc-dev" ;; |
pankso@16123 | 38 arm*) |
pascal@19093 | 39 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH |
pankso@16276 | 40 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" |
pankso@16123 | 41 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; |
pankso@16123 | 42 esac |
pankso@16123 | 43 |
pascal@24453 | 44 # What is the latest version available today? |
pascal@24453 | 45 current_version() |
pascal@24453 | 46 { |
pascal@24453 | 47 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 48 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 49 } |
pascal@24453 | 50 |
pankso@913 | 51 # Rules to configure and make the package. |
pankso@913 | 52 compile_rules() |
pankso@913 | 53 { |
mojo@22333 | 54 export CC=gcc-83 |
mojo@22333 | 55 export CXX=g++-83 |
pankso@913 | 56 ./configure \ |
pankso@913 | 57 --prefix=/usr \ |
pankso@913 | 58 --confdir=/etc/mplayer \ |
pankso@913 | 59 --libdir=/usr/lib/mplayer \ |
psychomaniak@16974 | 60 --enable-gui \ |
pankso@13017 | 61 --language="en de es fr it ru" \ |
pascal@1652 | 62 --disable-gl \ |
pascal@1652 | 63 --disable-jack \ |
pascal@1652 | 64 --disable-liblzo \ |
pascal@1652 | 65 --disable-libdv \ |
pascal@1652 | 66 --disable-fribidi \ |
pascal@4290 | 67 --disable-ivtv \ |
pankso@4458 | 68 --disable-smb \ |
pankso@4458 | 69 --disable-ftp \ |
pankso@4458 | 70 --disable-openal \ |
pankso@4458 | 71 --disable-faac \ |
pankso@4458 | 72 --disable-speex \ |
pankso@16123 | 73 ${ARCH_ARGS} && |
gokhlayeh@11574 | 74 make $MAKEFLAGS && |
pankso@16123 | 75 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
pankso@913 | 76 } |
pankso@913 | 77 |
pankso@913 | 78 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@913 | 79 genpkg_rules() |
pankso@913 | 80 { |
pankso@16123 | 81 mkdir -p $fs/usr/share/mplayer/skins |
pankso@13017 | 82 cp -a $install/usr/bin $fs/usr |
pankso@913 | 83 # Mencoder goes in a splited package. |
pankso@913 | 84 rm $fs/usr/bin/mencoder |
pankso@16123 | 85 [ -d "$install/usr/share/mplayer" ] && \ |
pankso@16123 | 86 cp -a $install/usr/share/mplayer $fs/usr/share |
pankso@13017 | 87 cp -a $install/etc $fs |
pankso@913 | 88 cp $src/etc/example.conf $fs/etc/mplayer |
pankso@13017 | 89 # Config to use Xv by default. |
pankso@13017 | 90 cp $stuff/mplayer.conf $fs/etc/mplayer |
pankso@913 | 91 # default skin |
pankso@13017 | 92 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
pankso@978 | 93 cd $fs/usr/share/mplayer/skins && ln -s productive default |
pankso@913 | 94 # Font |
pankso@913 | 95 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
pankso@16459 | 96 # Xv support dont work for ARM and gmplayer symlink not created |
pankso@16123 | 97 case "$ARCH" in |
pankso@16459 | 98 arm*) |
pankso@16459 | 99 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf |
pankso@16459 | 100 cd $fs/usr/bin && ln -s mplayer gmplayer ;; |
pankso@16123 | 101 esac |
psychomaniak@18352 | 102 } |