wok annotate alsaplayer/receipt @ rev 16285
libunique: add cflags
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 06 18:57:04 2014 +0000 (2014-04-06) |
parents | 2b9f96603415 |
children | a2f7f8eaeaa3 |
rev | line source |
---|---|
pankso@32 | 1 # SliTaz package receipt. |
pankso@32 | 2 |
pankso@32 | 3 PACKAGE="alsaplayer" |
slaxemulator@7189 | 4 VERSION="0.99.81" |
pankso@177 | 5 CATEGORY="multimedia" |
pankso@16248 | 6 SHORT_DESC="Alsa GTK+ PCM audio player." |
pankso@32 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@32 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@32 | 10 WEB_SITE="http://www.alsaplayer.org/" |
pankso@32 | 11 WGET_URL="http://www.alsaplayer.org/$TARBALL" |
pascal@13515 | 12 TAGS="music audio player mp3 ogg flac" |
pankso@16248 | 13 HOST_ARCH="i486 arm" |
pascal@13515 | 14 |
pankso@16248 | 15 SUGGESTED="alsaplayer-scopes libid3tag flac" |
pascal@13515 | 16 DEPENDS="gtk+ alsa-lib libmad libogg libvorbis xorg-libXdamage" |
pankso@16248 | 17 BUILD_DEPENDS="gtk+-dev alsa-lib-dev libmad-dev libogg-dev libvorbis-dev" |
pankso@16248 | 18 |
pankso@16248 | 19 # Handle cross compilation. |
pankso@16248 | 20 case "$ARCH" in |
pankso@16248 | 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;; |
pankso@16248 | 22 esac |
pankso@32 | 23 |
pankso@32 | 24 # Rules to configure and make the package. |
pankso@32 | 25 compile_rules() |
pankso@32 | 26 { |
pankso@32 | 27 ./configure \ |
pankso@4159 | 28 --enable-gtk2 \ |
pascal@13515 | 29 --enable-flac \ |
pankso@5119 | 30 --disable-jack \ |
pankso@5119 | 31 --disable-esd \ |
pascal@1524 | 32 $CONFIGURE_ARGS && |
pascal@1524 | 33 make && |
pankso@32 | 34 # Chmod install-sh to avoid install error. |
pascal@1524 | 35 chmod 755 install-sh && |
pascal@13515 | 36 make DESTDIR=$DESTDIR install |
pankso@32 | 37 } |
pankso@32 | 38 |
pankso@32 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@32 | 40 genpkg_rules() |
pankso@32 | 41 { |
pankso@574 | 42 mkdir -p $fs/usr/lib |
pankso@3816 | 43 |
pascal@13515 | 44 cp -a $install/usr/bin $fs/usr |
pascal@13515 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@13515 | 46 cp -a $install/usr/lib/alsaplayer $fs/usr/lib |
pankso@3816 | 47 |
pankso@579 | 48 # Remove devel files and scopes. |
pankso@32 | 49 rm $fs/usr/lib/alsaplayer/*/*.*a |
pankso@579 | 50 rm -rf $fs/usr/lib/alsaplayer/scopes2 |
pankso@32 | 51 } |
pankso@32 | 52 |