wok view moc/receipt @ rev 18611
Up slitaz-tools(959)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 17 16:13:43 2015 +0200 (2015-11-17) |
parents | 2636f4457865 |
children | 61baea11d722 |
line source
1 # SliTaz package receipt.
3 PACKAGE="moc"
4 VERSION="2.5.0"
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="http://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 db"
16 BUILD_DEPENDS="libvorbis-dev libogg-dev libmad-dev libid3tag-dev flac-dev db-dev \
17 curl-dev libsamplerate-dev alsa-lib-dev ncurses-dev libsndfile-dev libsamplerate \
18 libtool"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LIBTOOL=${HOST_SYSTEM}-libtool
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/moc $fs/usr/share/doc $fs/usr/share/moc
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/moc/* $fs/usr/lib/moc
43 cp -a $install/usr/share/doc/* $fs/usr/share/doc
44 cp -a $install/usr/share/moc/* $fs/usr/share/moc
46 # strip unneeded libraries
47 rm $fs/usr/lib/moc/decoder_plugins/*.*a
48 }