wok-next view moc/receipt @ rev 20529
Up libblockdev (2.16), nspr (4.18), openssh (7.6p1), udisks2 (2.7.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 15:55:55 2018 +0200 (2018-03-24) |
parents | 6c12ac1293fc |
children | 0a5b410586a2 |
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"
13 DEPENDS="alsa-lib libvorbis libogg libmad libid3tag flac curl \
14 libsamplerate libsndfile libltdl ffmpeg ncurses db"
15 BUILD_DEPENDS="libvorbis-dev libogg-dev libmad-dev libid3tag-dev flac-dev db-dev \
16 curl-dev libsamplerate-dev alsa-lib-dev ncurses-dev libsndfile-dev libsamplerate \
17 libtool"
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 }