mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
app-arch/ancient: Version bump + added library (#7793)
This commit is contained in:
committed by
GitHub
parent
b56e148c66
commit
b85b9eadee
88
app-arch/ancient/ancient-2.0.0.recipe
Normal file
88
app-arch/ancient/ancient-2.0.0.recipe
Normal file
@@ -0,0 +1,88 @@
|
||||
SUMMARY="Modern decompressor for old data compression formats"
|
||||
DESCRIPTION="This is a collection of decompression routines for old formats \
|
||||
popular in the Amiga, Atari computers and some other systems from 80's \
|
||||
and 90's as well as some that are currently used which were used in a some \
|
||||
specific way in these old systems."
|
||||
HOMEPAGE="https://github.com/temisu/ancient"
|
||||
COPYRIGHT="2017-2022, Teemu Suutari and contributors"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/temisu/ancient/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="9c6b31e4d968ec3adb25596a0b30405d1080d3de0546f1485ecb0ac2eca6261d"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
ancient$secondaryArchSuffix = $portVersion
|
||||
cmd:ancient$commandSuffix = $portVersion
|
||||
lib:libancient$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ancient${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libancient$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ancient$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
autoconf_archive
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoreconf
|
||||
cmd:automake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage ancient$secondaryArchSuffix \
|
||||
"$libDir"/libancient.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--disable-static \
|
||||
--bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm -f "$libDir"/libancient.la
|
||||
|
||||
prepareInstalledDevelLib libancient
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user