mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
82 lines
1.9 KiB
Bash
82 lines
1.9 KiB
Bash
SUMMARY="A library that renders module files to PCM data"
|
|
DESCRIPTION="Libxmp is a library that renders module files to PCM data. It \
|
|
supports over 90 mainstream and obscure module formats including Protracker \
|
|
(MOD), Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).
|
|
|
|
Many compressed module formats are supported, including popular Unix, DOS,
|
|
and Amiga file packers including gzip, bzip2, SQSH, Powerpack, etc."
|
|
HOMEPAGE="http://xmp.sourceforge.net/"
|
|
COPYRIGHT="1996-2016 Claudio Matsuoka and Hipolito Carraro Jr"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/cmatsuoka/libxmp/archive/libxmp-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="032ed31e9a334078e59dc5e2ca7a14b950712fef8e838328b727570ddbd3dc12"
|
|
SOURCE_DIR="libxmp-libxmp-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libxmp$secondaryArchSuffix = $portVersion
|
|
lib:libxmp$secondaryArchSuffix =$libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libxmp${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libxmp$secondaryArchSuffix = $libVersionCompat
|
|
|
|
"
|
|
REQUIRES_devel="
|
|
libxmp$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# devel:libSDL2_2.0$secondaryArchSuffix # for the sample player
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:rst2html
|
|
cmd:rst2man
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DBUILD_STATIC=OFF \
|
|
-DWITH_UNIT_TESTS=ON
|
|
# -DXMP_DEMO_WITH_SDL2=ON
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
mkdir -p $docDir
|
|
cp build/docs/libxmp.html $docDir
|
|
|
|
prepareInstalledDevelLib libxmp
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir \
|
|
$documentationDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|