# SliTaz package receipt. PACKAGE="mencoder" VERSION="1.1.1" CATEGORY="multimedia" SHORT_DESC="MPlayer video and movie encoder" MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" SOURCE="MPlayer" TARBALL="$SOURCE-$VERSION.tar.xz" WANTED="mplayer" WEB_SITE="http://www.mplayerhq.hu/design7/news.html" WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" HOST_ARCH="i486 arm" DEPENDS="libtheora alsa-lib expat libogg libvorbis \ fontconfig freetype x264 xvidcore jpeg libmad ncurses zlib lame \ libpng giflib enca lirc audiofile mplayer" BUILD_DEPENDS="libmad-dev xorg-libXv-dev libtheora-dev \ alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \ xorg-libXxf86vm-dev audiofile-dev libogg-dev libvorbis-dev \ xvidcore-dev zlib-dev xorg-xextproto pkg-config yasm" # 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 x264-dev enca-dev \ libmng-dev lirc-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 \ --disable-mplayer \ --disable-gl \ --disable-jack \ --disable-liblzo \ --disable-libdv \ --disable-fribidi \ --disable-ivtv \ --disable-smb \ --disable-ftp \ --disable-openal \ --disable-faac \ --disable-speex \ ${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/bin cp -a $install/usr/bin/mencoder $fs/usr/bin }