mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
98 lines
2.5 KiB
Bash
98 lines
2.5 KiB
Bash
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="2"
|
|
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"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
libopenmpt$secondaryArchSuffix = $portVersion
|
|
lib:libopenmpt$secondaryArchSuffix = 0.0.20 compat >= 0
|
|
cmd:openmpt123$commandSuffix = $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
|
|
}
|