wok view libplayer/receipt @ rev 24504

updated dwm (6.0 -> 6.3)
author Hans-G?nter Theisgen
date Sun Feb 20 11:26:24 2022 +0100 (2022-02-20)
parents 08c52f1e528e
children 72fb3028d8ce
line source
1 # SliTaz package receipt.
3 PACKAGE="libplayer"
4 VERSION="2.0.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="A multimedia A/V abstraction layer API."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://libplayer.geexbox.org/"
11 WGET_URL="https://libplayer.geexbox.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="xine-lib"
15 BUILD_DEPENDS="xine-lib-dev"
17 # Handle cross compilation
18 case "$ARCH" in
19 arm*) ARCH_ARGS="--cross-compile" ;;
20 esac
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure
33 ./configure \
34 --prefix=/usr\
35 --enable-mplayer \
36 --disable-gstreamer \
37 --disable-vlc ${ARCH_ARGS} &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 }