wok-6.x annotate libplayer/receipt @ rev 25558
Up libqcow (20221124)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 24 09:03:56 2023 +0000 (19 months ago) |
parents | 08c52f1e528e |
children |
rev | line source |
---|---|
pankso@4765 | 1 # SliTaz package receipt. |
pankso@4765 | 2 |
pankso@4765 | 3 PACKAGE="libplayer" |
gokhlayeh@9228 | 4 VERSION="2.0.1" |
jozee@4783 | 5 CATEGORY="multimedia" |
pankso@4765 | 6 SHORT_DESC="A multimedia A/V abstraction layer API." |
pankso@4765 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15482 | 8 LICENSE="LGPL2.1" |
pankso@4765 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@22668 | 10 WEB_SITE="https://libplayer.geexbox.org/" |
pascal@22668 | 11 WGET_URL="https://libplayer.geexbox.org/releases/$TARBALL" |
pankso@16168 | 12 HOST_ARCH="i486 arm" |
pankso@16168 | 13 |
pankso@16168 | 14 DEPENDS="xine-lib" |
pankso@16168 | 15 BUILD_DEPENDS="xine-lib-dev" |
pankso@16168 | 16 |
pankso@16168 | 17 # Handle cross compilation |
pankso@16168 | 18 case "$ARCH" in |
pankso@16168 | 19 arm*) ARCH_ARGS="--cross-compile" ;; |
pankso@16168 | 20 esac |
pankso@4765 | 21 |
pascal@24447 | 22 # What is the latest version available today? |
pascal@24447 | 23 current_version() |
pascal@24447 | 24 { |
pascal@24447 | 25 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24447 | 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 27 } |
pascal@24447 | 28 |
pankso@4765 | 29 # Rules to configure and make the package. |
pankso@4765 | 30 compile_rules() |
pankso@4765 | 31 { |
pascal@5162 | 32 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure |
pankso@16168 | 33 ./configure \ |
pankso@16168 | 34 --prefix=/usr\ |
pankso@4765 | 35 --enable-mplayer \ |
pankso@4765 | 36 --disable-gstreamer \ |
pankso@16168 | 37 --disable-vlc ${ARCH_ARGS} && |
gokhlayeh@9228 | 38 make && make install |
pankso@4765 | 39 } |
pankso@4765 | 40 |
pankso@4765 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4765 | 42 genpkg_rules() |
pankso@4765 | 43 { |
pankso@4765 | 44 mkdir -p $fs/usr/lib |
pascal@15482 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15482 | 46 cp -a $install/usr/bin $fs/usr |
pankso@4765 | 47 } |