wok-current annotate mpg123/receipt @ rev 25733

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