wok view moc/receipt @ rev 16205

ARM: enna may by build on tank now
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 31 01:27:37 2014 +0200 (2014-03-31)
parents bb009a6ef036
children 2636f4457865
line source
1 # SliTaz package receipt.
3 PACKAGE="moc"
4 VERSION="2.4.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music on console."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://moc.daper.net/"
11 WGET_URL="ftp://ftp.daper.net/pub/soft/moc/stable/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="alsa-lib libvorbis libogg libmad libid3tag flac curl \
15 libsamplerate libsndfile libtool ffmpeg ncursesw"
16 BUILD_DEPENDS="libvorbis-dev libogg-dev libmad-dev libid3tag-dev flac-dev \
17 curl-dev libsamplerate-dev alsa-lib-dev ncurses-dev libsndfile-dev libsamplerate"
19 # Handle cross compilation
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LIBTOOL=${HOST_SYSTEM}-libtool
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/moc $fs/usr/share/doc $fs/usr/share/moc
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/moc/* $fs/usr/lib/moc
42 cp -a $install/usr/share/doc/* $fs/usr/share/doc
43 cp -a $install/usr/share/moc/* $fs/usr/share/moc
45 # strip unneeded libraries
46 rm $fs/usr/lib/moc/decoder_plugins/*.*a
47 }