wok-current view mpg123/receipt @ rev 17247
Add gringotts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 19 11:40:30 2014 +0200 (2014-10-19) |
parents | cbb88e362894 |
children | 01c24abc9372 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpg123"
4 VERSION="1.19.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line audio player and streamer"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.mpg123.de/"
11 WGET_URL="http://www.mpg123.de/download/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="alsa-lib audiofile libltdl"
15 BUILD_DEPENDS="alsa-lib-dev audiofile-dev"
17 # Arch optimisation
18 case "$ARCH" in
19 i486) ARCH_ARGS="--with-cpu=i486" ;;
20 arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --with-default-audio=alsa \
28 $CONFIGURE_ARGS ${ARCH_ARGS} &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 # ARM
39 if [ -d "$install/usr/lib/mpg123" ]; then
40 cp -a $install/usr/lib/mpg123 $fs/usr/lib
41 #mpg123 need *.la file to work
42 #find $fs/usr/lib -name "*.la" -exec rm -f {} \;
43 fi
44 # Needed to work!!! Dont remove
45 cp $install/usr/lib/libmpg123.la $fs/usr/lib
46 }