Files
haikuports/media-libs/libtimidity/libtimidity-0.1.0.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

76 lines
1.9 KiB
Bash

SUMMARY="MIDI to WAVE converter library"
DESCRIPTION="
This library is based on the TiMidity decoder from SDL_sound library. \
Purpose to create this library is to avoid unnecessary dependences. \
SDL_sound requires SDL and some other libraries, that not needed to \
process MIDI files. In addition libTiMidity provides more suitable \
API to work with MIDI songs, it enables to specify full path to the \
timidity configuration file, and have function to retrieve meta data \
from MIDI song.
"
HOMEPAGE="http://libtimidity.sourceforge.net"
COPYRIGHT="
1995 Tuukka Toivonen
2004 Konstantin Korikov
"
LICENSE="GNU LGPL v2.1"
SOURCE_URI="http://downloads.sourceforge.net/project/libtimidity/libtimidity/$portVersion/libtimidity-$portVersion.tar.bz2"
CHECKSUM_SHA256="52c6de6608ba640b4678041c01320290790a1f18c901ef03575fbf47807350bf"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libtimidity$secondaryArchSuffix = $portVersion compat >= 0
lib:libtimidity_0.1$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libao$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libao$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libtimidity.la
prepareInstalledDevelLibs libtimidity
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libtimidity${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libtimidity$secondaryArchSuffix = 0.1.0 compat >= 0
devel:libtimidity_0.1$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
libtimidity$secondaryArchSuffix == $portVersion base
"