wok-current view mpg123/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | cf6b90afa0a2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpg123"
4 VERSION="1.29.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line audio player and streamer."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.mpg123.de/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 DEPENDS="alsa-lib audiofile libltdl"
15 BUILD_DEPENDS="alsa-lib-dev audiofile-dev"
17 HOST_ARCH="i486 arm x86_64"
19 # Arch optimisation
20 case "$ARCH" in
21 (i486) ARCH_ARGS="--with-cpu=i486" ;;
22 x86_64) ARCH_ARGS="--with-cpu=x86-64" ;;
23 (arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
24 esac
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - ${WGET_URL%/*} 2>/dev/null | \
30 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./configure \
37 --with-default-audio=alsa \
38 $CONFIGURE_ARGS \
39 ${ARCH_ARGS} &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cook_copy_folders bin
52 # ARM
53 if [ -d "$install/usr/lib/mpg123" ]
54 then
55 cp -a $install/usr/lib/mpg123 $fs/usr/lib
56 #mpg123 need *.la file to work
57 #find $fs/usr/lib -name "*.la" -exec rm -f {} \;
58 fi
60 # Needed to work!!! Dont remove
61 cp $install/usr/lib/libmpg123.la $fs/usr/lib
62 }