wok view mpg123/receipt @ rev 23774
add firmware-amdgpu (20200515)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri May 15 23:04:30 2020 -0400 (2020-05-15) |
parents | 01c24abc9372 |
children | 83b97236db32 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpg123"
4 VERSION="1.25.13"
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"
19 # Arch optimisation
20 case "$ARCH" in
21 i486) ARCH_ARGS="--with-cpu=i486" ;;
22 arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --with-default-audio=alsa \
30 $CONFIGURE_ARGS \
31 ${ARCH_ARGS} &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
44 # ARM
45 if [ -d "$install/usr/lib/mpg123" ]
46 then
47 cp -a $install/usr/lib/mpg123 $fs/usr/lib
48 #mpg123 need *.la file to work
49 #find $fs/usr/lib -name "*.la" -exec rm -f {} \;
50 fi
52 # Needed to work!!! Dont remove
53 cp $install/usr/lib/libmpg123.la $fs/usr/lib
54 }