1SUMMARY="Portable uuid C library"
2DESCRIPTION="A universally unique identifier (UUID) is an identifier standard \
3used in software construction, standardized by the Open Software Foundation \
4(OSF) as part of the Distributed Computing Environment (DCE).
5
6The intent of UUIDs is to enable distributed systems to uniquely identify \
7information without significant central coordination. In this context the word \
8unique should be taken to mean \"practically unique\" rather than \"guaranteed \
9unique\"."
10HOMEPAGE="https://gitlab.com/kallisti5/libuuid"
11COPYRIGHT="2013-2014 Ralph B��hme"
12LICENSE="BSD (3-clause)"
13REVISION="5"
14SOURCE_URI="https://gitlab.com/kallisti5/libuuid/-/archive/v${portVersion}/libuuid-v${portVersion}.tar.gz"
15SOURCE_DIR="libuuid-v${portVersion}"
16CHECKSUM_SHA256="5c4985534b5a8a4c3100e298a6cbb30b6bbf1800a6bab39e214a3bcdb0cd5aed"
17PATCHES="libuuid-$portVersion.patchset"
18
19ARCHITECTURES="all"
20SECONDARY_ARCHITECTURES="x86_gcc2 x86"
21
22PROVIDES="
23	libuuid$secondaryArchSuffix = $portVersion
24	lib:libuuid$secondaryArchSuffix = $portVersion compat >= 1.3
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	"
29CONFLICTS="
30	util_linux${secondaryArchSuffix}_libuuid
31	"
32
33PROVIDES_devel="
34	libuuid${secondaryArchSuffix}_devel = $portVersion
35	devel:libuuid$secondaryArchSuffix = $portVersion compat >= 1.3
36	"
37REQUIRES_devel="
38	libuuid$secondaryArchSuffix == $portVersion base
39	"
40CONFLICTS_devel="
41	util_linux${secondaryArchSuffix}_devel
42	"
43
44BUILD_REQUIRES="
45	haiku${secondaryArchSuffix}_devel
46	"
47BUILD_PREREQUIRES="
48	cmd:gcc$secondaryArchSuffix
49	cmd:scons
50	"
51
52BUILD()
53{
54	export HAIKU_SECONDARY_ARCH="$effectiveTargetArchitecture"
55	scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir \
56		--inc-dir=$includeDir --man-dir=$manDir
57}
58
59INSTALL()
60{
61	export HAIKU_SECONDARY_ARCH="$effectiveTargetArchitecture"
62	scons --prefix=$prefix --lib-dir=$libDir --exec-prefix=$libExecDir \
63		--inc-dir=$includeDir --man-dir=$manDir install
64
65	fixPkgconfig
66
67	prepareInstalledDevelLib libuuid
68	packageEntries devel $developDir
69}
70
71TEST()
72{
73	scons
74	./src/test_uuid
75}
76