mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 08:10:07 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
SUMMARY="A library for encoding/decoding base58"
|
|
DESCRIPTION="libbase58 provides encoding and decoding for the base58 format, \
|
|
used in Bitcoin addresses."
|
|
HOMEPAGE="https://github.com/bitcoin/libbase58"
|
|
COPYRIGHT="2014-2017 Luke Dashjr"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/bitcoin/libbase58/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="97e8c3387fd4ed90208a8101e658743efbb6e21714e594f0828e6414f92c0b1d"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.0.2"
|
|
libVersionCompat="$libVersion compat >= 0"
|
|
|
|
PROVIDES="
|
|
libbase58$secondaryArchSuffix = $portVersion
|
|
lib:libbase58$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libbase58${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libbase58$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
libbase58$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage libbase58$secondaryArchSuffix \
|
|
$libDir/libbase58.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm -f $libDir/libbase58.la
|
|
prepareInstalledDevelLib libbase58
|
|
fixPkgconfig
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# Test suite is present but currently has no tests.
|
|
make check
|
|
}
|