wok annotate TiMidity++/receipt @ rev 25633

wbar: remove imlib2-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 10:30:04 2023 +0000 (6 months ago)
parents 2d4208bebf51
children
rev   line source
mojo@13217 1 # SliTaz package receipt.
mojo@13217 2
mojo@13217 3 PACKAGE="TiMidity++"
Hans-G?nter@22463 4 VERSION="2.15.0"
mojo@13217 5 CATEGORY="multimedia"
Hans-G?nter@22463 6 SHORT_DESC="An open source MIDI to WAVE converter and player."
mojo@13217 7 MAINTAINER="paul@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@25509 9 WEB_SITE="https://sourceforge.net/projects/timidity/"
mojo@13217 10
Hans-G?nter@22463 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@22463 12 WGET_URL="$SF_MIRROR/timidity/$TARBALL"
Hans-G?nter@22463 13
Hans-G?nter@22463 14 DEPENDS="alsa-lib flac gtk+ jack-audio-connection-kit libao libdb libogg \
Hans-G?nter@22463 15 libvorbis portaudio xorg-libXaw3d"
Hans-G?nter@22463 16 BUILD_DEPENDS="alsa-lib-dev flac-dev gtk+-dev jack-audio-connection-kit-dev \
Hans-G?nter@22463 17 libao-dev libogg-dev libvorbis-dev portaudio-dev xorg-libXaw3d-dev"
mojo@13217 18
pascal@25457 19 # What is the latest version available today?
pascal@24093 20 current_version()
pascal@24093 21 {
pascal@25610 22 wget -O - $WEB_SITE/files/ 2>/dev/null | sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | \
pascal@24093 23 xargs wget -O - 2>/dev/null | sed "/${PACKAGE}-/!d;s|.*${PACKAGE}-\\([0-9\\.]*\\)*\".*|\\1|" | sed '/^[0-9]/!d;q'
pascal@24093 24 }
pascal@24093 25
mojo@13217 26 # Rules to configure and make the package.
mojo@13217 27 compile_rules()
mojo@13217 28 {
Hans-G?nter@22463 29 ./configure \
Hans-G?nter@22463 30 --prefix=/usr \
Hans-G?nter@22463 31 --enable-audio=alsa,portaudio,jack,ao,vorbis,flac \
Hans-G?nter@22463 32 --enable-interface=gtk,xaw \
al@19264 33 --enable-alsaseq
mojo@13217 34 make &&
mojo@13217 35 make DESTDIR=$DESTDIR install
mojo@13217 36 }
mojo@13217 37
al@19264 38 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19264 39 genpkg_rules()
mojo@13217 40 {
mojo@13217 41 mkdir -p $fs/usr
Hans-G?nter@22463 42 cp -a $install/usr/bin $fs/usr
mojo@13217 43 }
mojo@13217 44
mojo@13217 45 post_install()
mojo@13217 46 {
Hans-G?nter@22463 47 # create configuration file
pascal@18730 48 mkdir "$1/usr/share/timidity"
pascal@18730 49 touch "$1/usr/share/timidity/timidity.cfg"
mojo@13217 50 }
mojo@13217 51
mojo@13217 52 post_remove()
mojo@13217 53 {
pascal@18730 54 rm -rf "$1/usr/share/timidity"
mojo@13217 55 }