# SliTaz package receipt. PACKAGE="libsmpeg" VERSION="0.4.5" CATEGORY="development" SHORT_DESC="Mpeg decoding library" MAINTAINER="claudinei@slitaz.org" LICENSE="LGPL2" WEB_SITE="http://icculus.org/smpeg/" TARBALL="smpeg-$VERSION.tar.xz" WGET_URL="http://ravenports.elderlinux.org/distcache/$TARBALL" DEPENDS="libsdl gcc-lib-base" BUILD_DEPENDS="libsdl libsdl-dev gtk+-dev autoconf automake m4 subversion tar" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/smpeg-[0-9]/!d;/tar/!d;s|.*smpeg-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { chmod +x install-sh ./autogen.sh ./configure --prefix=/usr --disable-gtk-player $CONFIGURE_ARGS && make LDFLAGS+=-lstdc++ && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }