wok-6.x annotate moc/receipt @ rev 9294

Down erlang (R12B-5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 17 11:20:04 2011 +0100 (2011-03-17)
parents 5b44af8c1257
children bb009a6ef036
rev   line source
paul@3900 1 # SliTaz package receipt.
paul@3900 2
paul@3900 3 PACKAGE="moc"
paul@3900 4 VERSION="2.4.4"
paul@3900 5 CATEGORY="multimedia"
paul@3900 6 SHORT_DESC="Music on console."
paul@3900 7 MAINTAINER="paul@slitaz.org"
paul@3901 8 DEPENDS="alsa-lib libvorbis libogg libmad libid3tag flac curl \
pascal@5030 9 libsamplerate libsndfile libtool ffmpeg ncursesw"
paul@3900 10 BUILD_DEPENDS="libvorbis-dev libogg-dev libmad-dev libid3tag-dev flac-dev \
paul@3901 11 curl-dev libsamplerate-dev alsa-lib-dev libcurl ncurses-dev \
paul@3901 12 libsndfile-dev libsndfile libid3tag pkg-config libsamplerate"
paul@3900 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@3900 14 WEB_SITE="http://moc.daper.net/"
paul@3900 15 WGET_URL="ftp://ftp.daper.net/pub/soft/moc/stable/$TARBALL"
paul@3900 16
paul@3900 17 # Rules to configure and make the package.
paul@3900 18 compile_rules()
paul@3900 19 {
paul@3900 20 cd $src
paul@3900 21 ./configure \
paul@3900 22 --prefix=/usr \
paul@3900 23 --infodir=/usr/share/info \
paul@3900 24 --mandir=/usr/share/man \
paul@3900 25 $CONFIGURE_ARGS &&
paul@3900 26 make && make DESTDIR=$PWD/_pkg install
paul@3900 27 }
paul@3900 28
paul@3900 29 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3900 30 genpkg_rules()
paul@3900 31 {
paul@3900 32 mkdir -p $fs/usr/lib/moc $fs/usr/share/doc $fs/usr/share/moc
paul@3900 33 cp -a $_pkg/usr/bin $fs/usr
paul@3900 34 cp -a $_pkg/usr/lib/moc/* $fs/usr/lib/moc
paul@3900 35 cp -a $_pkg/usr/share/doc/* $fs/usr/share/doc
paul@3900 36 cp -a $_pkg/usr/share/moc/* $fs/usr/share/moc
paul@3900 37
paul@3900 38 # strip unneeded libraries
paul@3900 39 rm $fs/usr/lib/moc/decoder_plugins/*.*a
paul@3900 40 }