wok-6.x annotate mpg123/receipt @ rev 23456
updated pure-ftpd and pure-ftpd-pam (1.0.48 -> 1.0.49)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 03 13:56:35 2020 +0100 (2020-04-03) |
parents | 01c24abc9372 |
children | 83b97236db32 |
rev | line source |
---|---|
pankso@32 | 1 # SliTaz package receipt. |
pankso@32 | 2 |
pankso@32 | 3 PACKAGE="mpg123" |
Hans-G?nter@23191 | 4 VERSION="1.25.13" |
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 |
Hans-G?nter@23191 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@23191 | 18 |
pankso@16490 | 19 # Arch optimisation |
pankso@16490 | 20 case "$ARCH" in |
pankso@16490 | 21 i486) ARCH_ARGS="--with-cpu=i486" ;; |
pankso@16490 | 22 arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;; |
pankso@16490 | 23 esac |
pascal@14996 | 24 |
pankso@32 | 25 # Rules to configure and make the package. |
pankso@32 | 26 compile_rules() |
pankso@32 | 27 { |
Hans-G?nter@23191 | 28 ./configure \ |
Hans-G?nter@23191 | 29 --with-default-audio=alsa \ |
Hans-G?nter@23191 | 30 $CONFIGURE_ARGS \ |
Hans-G?nter@23191 | 31 ${ARCH_ARGS} && |
Hans-G?nter@23191 | 32 make && |
Hans-G?nter@23191 | 33 make install |
pankso@32 | 34 } |
pankso@32 | 35 |
pankso@32 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@32 | 37 genpkg_rules() |
pankso@32 | 38 { |
pankso@3349 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@23191 | 40 |
Hans-G?nter@23191 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@23191 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23191 | 43 |
pankso@16111 | 44 # ARM |
Hans-G?nter@23191 | 45 if [ -d "$install/usr/lib/mpg123" ] |
Hans-G?nter@23191 | 46 then |
pankso@16111 | 47 cp -a $install/usr/lib/mpg123 $fs/usr/lib |
pankso@16531 | 48 #mpg123 need *.la file to work |
pankso@16531 | 49 #find $fs/usr/lib -name "*.la" -exec rm -f {} \; |
pankso@16111 | 50 fi |
Hans-G?nter@23191 | 51 |
pankso@16490 | 52 # Needed to work!!! Dont remove |
Hans-G?nter@23191 | 53 cp $install/usr/lib/libmpg123.la $fs/usr/lib |
pankso@32 | 54 } |