mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
libopenmpt: added recipe (GCI 2016) (#1007)
This commit is contained in:
96
media-sound/libopenmpt/libopenmpt-0.2.7386~beta20.3.recipe
Normal file
96
media-sound/libopenmpt/libopenmpt-0.2.7386~beta20.3.recipe
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY="OpenMPT based module player library and command-line player"
|
||||
DESCRIPTION="libopenmpt is a cross platform C++ and C libary to decode tracked \
|
||||
music files (modules) int a raw PCM audio stream. openmpt123 is a \
|
||||
cross-platform command line or terminal based module file player."
|
||||
HOMEPAGE="https://lib.openmpt.org/libopenmpt/"
|
||||
COPYRIGHT="2004-2016 OpenMPT contributors"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${portVersion/\~/-}-autotools.tar.gz"
|
||||
CHECKSUM_SHA256="a6a7e6da1ae66e1cf46985ee92c182e50652d71b96135e9fa6048e132d844753"
|
||||
SOURCE_DIR="libopenmpt-${portVersion%~*}-autotools"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
libopenmpt$secondaryArchSuffix = $portVersion
|
||||
lib:libopenmpt$secondaryArchSuffix = 0.0.20 compat >= 0
|
||||
cmd:openmpt123 = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libltdl$secondaryArchSuffix
|
||||
lib:libmpg123$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libvorbisfile$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libopenmpt${secondaryArchSuffix}_devel
|
||||
devel:libopenmpt$secondaryArchSuffix = 0.0.20 compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libopenmpt$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libFLAC$secondaryArchSuffix
|
||||
devel:libltdl$secondaryArchSuffix
|
||||
devel:libmpg123$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libsndfile$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libvorbisfile$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoheader
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# portaudio and portaudiocpp disabled as they are untested on all arches
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--without-pulseaudio \
|
||||
--without-portaudio \
|
||||
--without-portaudiocpp \
|
||||
--disable-doxygen-doc
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm $libDir/libopenmpt.la
|
||||
|
||||
prepareInstalledDevelLib libopenmpt
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user