wok-next view moc/receipt @ rev 20079

Up emacs (2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 25 11:21:45 2017 +0200 (2017-10-25)
parents 4a8ed40e1cbf
children c4e53a39395a
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 libltdl ffmpeg ncurses 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 }