wok annotate mpg123/receipt @ rev 18201

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