wok-next annotate potamus/receipt @ rev 20441

linux, linux-dev: fix mess with i386|i486, update 32bit config
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 05:41:11 2018 +0200 (2018-02-24)
parents 036843d192f2
children c4e53a39395a
rev   line source
pankso@16562 1 # SliTaz package receipt.
pankso@16562 2
pankso@16562 3 PACKAGE="potamus"
pankso@16562 4 VERSION="15"
pankso@16562 5 CATEGORY="multimedia"
pankso@16562 6 SHORT_DESC="Unbloated and easy to use GTK+ Audio player."
pankso@16562 7 MAINTAINER="pankso@slitaz.org"
pankso@16562 8 LICENSE="GPL3"
pankso@16562 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16562 10 WEB_SITE="http://offog.org/code/potamus/"
pankso@16562 11 WGET_URL="http://offog.org/files/$TARBALL"
pankso@16562 12 TAGS="music audio player mp3 ogg flac"
pankso@16562 13 HOST_ARCH="i486 arm"
pankso@16562 14
pankso@16563 15 DEPENDS="gtk+ libglade alsa-lib libmad libogg libvorbis libsamplerate"
pankso@16562 16 BUILD_DEPENDS="gtk+-dev libglade-dev alsa-lib-dev libmad-dev \
pankso@16563 17 libogg-dev libvorbis-dev libsamplerate-dev"
pankso@16563 18
pankso@16563 19 # Handle arch install
pankso@16563 20 case "$SLTAZ_ARCH" in
pankso@16563 21 i?86) DEPENDS="$DEPENDS flac" ;;
pankso@16563 22 esac
pankso@16562 23
pankso@16562 24 # Handle cross compilation.
pankso@16562 25 case "$ARCH" in
pankso@16562 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
pankso@16562 27 arm*) ARCH_ARGS="--disable-input-flac" ;;
pankso@16562 28 esac
pankso@16562 29
pankso@16562 30 # Rules to configure and make the package.
pankso@16562 31 compile_rules()
pankso@16562 32 {
pascal@20021 33 export LDFLAGS="$LDFLAGS -lm"
pankso@16564 34 # libmad for MP3
pankso@16562 35 ./configure \
pankso@16562 36 --disable-input-modplug \
pankso@16564 37 --disable-input-audiofile \
pankso@16564 38 --disable-input-opus \
pankso@16564 39 --disable-output-ao \
pankso@16564 40 --disable-output-jack \
pankso@16562 41 $CONFIGURE_ARGS ${ARCH_ARGS} &&
pankso@16562 42 make && make install &&
pankso@16562 43 sed -i s'/Name=.*/Name=Potamus Audio Player/' \
pankso@16562 44 ${DESTDIR}/usr/share/applications/*.desktop
pankso@16562 45 }
pankso@16562 46
pankso@16562 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16562 48 genpkg_rules()
pankso@16562 49 {
pankso@16562 50 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
pankso@16562 51 cp -a $install/usr/bin $fs/usr
pankso@16562 52 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
pankso@16562 53 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
pankso@16562 54 $fs/usr/share/pixmaps
pankso@16562 55
pankso@16562 56 }
pankso@16562 57