0
0
Fork 0
haikuports/sys-devel/libuuid/libuuid-1.3.0.recipe

68 lines
1.8 KiB
Bash

SUMMARY="Portable uuid C library"
DESCRIPTION="A universally unique identifier (UUID) is an identifier standard \
used in software construction, standardized by the Open Software Foundation \
(OSF) as part of the Distributed Computing Environment (DCE).
The intent of UUIDs is to enable distributed systems to uniquely identify \
information without significant central coordination. In this context the word \
unique should be taken to mean \"practically unique\" rather than \"guaranteed \
unique\"."
HOMEPAGE="https://gitlab.com/kallisti5/libuuid"
COPYRIGHT="2013-2014 Ralph Böhme"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://gitlab.com/kallisti5/libuuid/-/archive/v${portVersion}/libuuid-v${portVersion}.tar.gz"
SOURCE_DIR="libuuid-v${portVersion}"
CHECKSUM_SHA256="e83f37022a895ebd55c7e1fe0c3c5dc2028a52ddcf157f9b5fdcd14e004c11f8"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libuuid$secondaryArchSuffix = $portVersion
lib:libuuid$secondaryArchSuffix = 1.3.0 compat >= 1.3
"
REQUIRES="
haiku$secondaryArchSuffix
"
CONFLICTS="
lib:libuuid$secondaryArchSuffix
"
PROVIDES_devel="
libuuid${secondaryArchSuffix}_devel = $portVersion
devel:libuuid$secondaryArchSuffix = 1.3.0 compat >= 1.3
"
REQUIRES_devel="
libuuid$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:scons
"
BUILD()
{
scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir --inc-dir=$includeDir --man-dir=$manDir $jobArgs
}
INSTALL()
{
scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir --inc-dir=$includeDir --man-dir=$manDir install
fixPkgconfig
prepareInstalledDevelLib libuuid
packageEntries devel $developDir
}
TEST()
{
scons
./src/test_uuid
}