wok-current rev 16490

mpg123: needs libmpg123.la and add arch optimisation
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 14:28:29 2014 +0200 (2014-04-23)
parents 93e703206ff4
children 60be9a317fc6
files mpg123-dev/receipt mpg123/receipt
line diff
     1.1 --- a/mpg123-dev/receipt	Wed Apr 23 08:07:54 2014 +0000
     1.2 +++ b/mpg123-dev/receipt	Wed Apr 23 14:28:29 2014 +0200
     1.3 @@ -6,19 +6,18 @@
     1.4  SHORT_DESC="mpg123 development files"
     1.5  MAINTAINER="devl547@gmail.com"
     1.6  LICENSE="LGPL2.1"
     1.7 -WANTED="mpg123"
     1.8  WEB_SITE="http://www.mpg123.de"
     1.9  HOST_ARCH="i486 arm"
    1.10  
    1.11 +WANTED="mpg123"
    1.12  DEPENDS="mpg123 pkg-config"
    1.13  
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
    1.17 -	mkdir -p $fs/usr/lib
    1.18 +	mkdir -p $fs/usr/lib/mpg123
    1.19  	cp -a $install/usr/include $fs/usr
    1.20  	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.21 -	cp -a $install/usr/lib/*.la $fs/usr/lib
    1.22  	# ARM
    1.23  	if [ -d "$install/usr/lib/mpg123" ]; then
    1.24  		cp -a $install/usr/lib/mpg123 $fs/usr/lib
     2.1 --- a/mpg123/receipt	Wed Apr 23 08:07:54 2014 +0000
     2.2 +++ b/mpg123/receipt	Wed Apr 23 14:28:29 2014 +0200
     2.3 @@ -11,15 +11,22 @@
     2.4  WGET_URL="http://www.mpg123.de/download/$TARBALL"
     2.5  HOST_ARCH="i486 arm"
     2.6  
     2.7 -DEPENDS="alsa-lib"
     2.8 -BUILD_DEPENDS="alsa-lib-dev"
     2.9 +DEPENDS="alsa-lib audiofile"
    2.10 +BUILD_DEPENDS="alsa-lib-dev audiofile-dev"
    2.11 +
    2.12 +# Arch optimisation
    2.13 +case "$ARCH" in
    2.14 +	i486) ARCH_ARGS="--with-cpu=i486" ;;
    2.15 +	arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
    2.16 +esac
    2.17  
    2.18  # Rules to configure and make the package.
    2.19  compile_rules()
    2.20  {
    2.21  	./configure \
    2.22  		--with-default-audio=alsa \
    2.23 -		$CONFIGURE_ARGS &&
    2.24 +		--with-audio="alsa" \
    2.25 +		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    2.26  	make && make install
    2.27  }
    2.28  
    2.29 @@ -34,4 +41,6 @@
    2.30  		cp -a $install/usr/lib/mpg123 $fs/usr/lib
    2.31  		find $fs/usr/lib -name "*.la" -exec rm -f {} \;
    2.32  	fi
    2.33 +	# Needed to work!!! Dont remove
    2.34 +	cp $install/usr/lib/libmpg123.la $fs/usr/lib
    2.35  }