mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
96 lines
2.6 KiB
Bash
96 lines
2.6 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-2019 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="fa8f2ff5d9b74c00b3fed5edad2aefdfb79a6cd370bf5ec9894b2121f49fb67e"
|
|
SOURCE_DIR="libopenmpt-$portVersion+release.autotools"
|
|
PATCHES="libopenmpt-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
|
|
|
|
libopenmpt_modplugVersion=1.0.0
|
|
libopenmptVersion=0.1.1
|
|
libopenmpt_modplugVersionCompat="$libopenmpt_modplugVersion compat >= ${libopenmpt_modplugVersion%%.*}"
|
|
libopenmptVersionCompat="$libopenmptVersion compat >= ${libopenmptVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libopenmpt$secondaryArchSuffix = $portVersion
|
|
lib:libopenmpt_modplug$secondaryArchSuffix = $libopenmpt_modplugVersionCompat
|
|
lib:libopenmpt$secondaryArchSuffix = $libopenmptVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libopenmpt${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libopenmpt_modplug$secondaryArchSuffix = $libopenmpt_modplugVersionCompat
|
|
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_modplug.so.$libopenmpt_modplugVersion \
|
|
$libDir/libopenmpt.so.$libopenmptVersion
|
|
|
|
BUILD()
|
|
{
|
|
# Build a minimal LIB for FFMPEG
|
|
runConfigure ./configure \
|
|
--disable-openmpt123 \
|
|
--disable-examples \
|
|
--enable-libopenmpt_modplug \
|
|
--disable-libmodplug \
|
|
--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_modplug libopenmpt
|
|
rm $developLibDir/*.la
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir $docDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|