mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
88 lines
2.1 KiB
Bash
88 lines
2.1 KiB
Bash
SUMMARY="Audio module tracker formerly known as ModPlug Tracker"
|
|
DESCRIPTION="libopenmpt is a cross-platform C++ and C module playback \
|
|
library. It is based on the player code of the Open ModPlug Tracker project. \
|
|
It offers high-quality module playback on a variety of platforms."
|
|
HOMEPAGE="https://openmpt.org/"
|
|
COPYRIGHT="2004-2021 OpenMPT contributors
|
|
1997-2003 Olivier Lapicque"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-$portVersion+release.autotools.tar.gz"
|
|
CHECKSUM_SHA256="8d808ac6095aa8f19c11518c616d3b9039016acd7b49b309db28d56b2bba0641"
|
|
SOURCE_DIR="libopenmpt-$portVersion+release.autotools"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
libopenmptVersion=0.2.2
|
|
libopenmptVersionCompat="$libopenmptVersion compat >= ${libopenmptVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libopenmpt$secondaryArchSuffix = $portVersion
|
|
lib:libopenmpt$secondaryArchSuffix = $libopenmptVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libopenmpt${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libopenmpt$secondaryArchSuffix = $libopenmptVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libopenmpt$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage libopenmpt$secondaryArchSuffix \
|
|
$libDir/libopenmpt.so.$libopenmptVersion
|
|
|
|
BUILD()
|
|
{
|
|
# Build a minimal LIB for FFMPEG
|
|
runConfigure ./configure \
|
|
--disable-openmpt123 \
|
|
--disable-examples \
|
|
--without-mpg123 \
|
|
--without-ogg \
|
|
--without-vorbis \
|
|
--without-vorbisfile \
|
|
--without-portaudio \
|
|
--without-portaudiocpp \
|
|
--without-sndfile \
|
|
--without-flac \
|
|
--disable-static
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
prepareInstalledDevelLibs libopenmpt
|
|
rm $developLibDir/*.la
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir $docDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|