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