# SliTaz package receipt. PACKAGE="mplayer-opt" VERSION="1.1.1" CATEGORY="multimedia" SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)" MAINTAINER="psychomaniak@xakep.ru" LICENSE="GPL2" SOURCE="MPlayer" TARBALL="$SOURCE-$VERSION.tar.xz" WEB_SITE="http://www.mplayerhq.hu/design7/news.html" WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" HOST_ARCH="i486 arm" DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \ enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss" BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \ ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \ audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm" # Handle arch package install. Less deps and no GTK gui case "$SLITAZ_ARCH" in arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ libvorbis libtheora libsdl" ;; esac # Handle cross compilation. Host coreutils-file-* are used case "$ARCH" in i?86) ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection" BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev" ;; arm*) BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; esac # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --confdir=/etc/mplayer \ --libdir=/usr/lib/mplayer \ --language="en de es fr it pl ru" \ --enable-menu \ --disable-mencoder \ --disable-gl \ --disable-jack \ --disable-liblzo \ --disable-libdv \ --disable-fribidi \ --disable-ivtv \ --disable-smb \ --disable-ftp \ --disable-openal \ --disable-faac \ --disable-speex --disable-esd \ --disable-lirc --disable-lircc \ ${ARCH_ARGS} && make $MAKEFLAGS && make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/mplayer cp -a $install/usr/bin $fs/usr cp -a $install/etc $fs cp $src/etc/example.conf $fs/etc/mplayer # Add /etc/mplayer/input.conf cp $stuff/input.conf $fs/etc/mplayer # Config cp $stuff/mplayer.conf $fs/etc/mplayer # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename) mkdir -p $fs/usr/share/applications cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop cp $src/etc/*menu.conf $fs/etc/mplayer # Font cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf }