wok-next view alsaplayer/receipt @ rev 19742

Up alsaplayer and alsa-lib to v2.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 05 19:31:24 2017 +0000 (2017-06-05)
parents 11b5e93cb5f2
children 7387df590f12
line source
1 # SliTaz package receipt v2.
3 PACKAGE="alsaplayer"
4 VERSION="0.99.81"
5 CATEGORY="multimedia"
6 SHORT_DESC="Alsa GTK+ PCM audio player."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://alsaplayer.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 TAGS="music audio player mp3 ogg flac"
13 HOST_ARCH="i486 arm"
15 SUGGESTED="alsaplayer-scopes libid3tag flac"
17 BUILD_DEPENDS="gtk+-dev alsa-lib-dev libmad-dev libogg-dev libvorbis-dev"
18 SPLIT="alsaplayer-dev alsaplayer-scopes"
20 # Handle cross compilation.
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 i="$src/interface/gtk2/pixmaps"
29 cp -f $i/note.xpm $i/logo.xpm
30 sed -i 's/note/logo/' $i/logo.xpm
32 ./configure \
33 --enable-gtk2 \
34 --enable-flac \
35 --disable-jack \
36 --disable-esd \
37 $CONFIGURE_ARGS &&
38 make &&
39 # Chmod install-sh to avoid install error.
40 chmod 755 install-sh &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 alsaplayer)
49 copy @std
50 # Remove devel files and scopes.
51 rm $fs/usr/lib/alsaplayer/*/*.*a
52 rm -rf $fs/usr/lib/alsaplayer/scopes2
53 DEPENDS="gtk+ alsa-lib libmad libogg libvorbis xorg-libXdamage"
54 ;;
55 alsaplayer-dev)
56 copy @dev
57 ;;
58 alsaplayer-scopes)
59 mkdir -p $fs/usr/lib/alsaplayer
60 cp -a $install/usr/lib/alsaplayer/scopes2 \
61 $fs/usr/lib/alsaplayer
62 ;;
63 esac
64 }