Add recipe for libuuid.

This commit is contained in:
Adrien Destugues
2014-10-22 21:19:47 +02:00
parent 40e46ca547
commit a256daa824
2 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
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="http://sourceforge.net/projects/libuuid/"
REVISION="1"
LICENSE="GNU GPL v2"
ARCHITECTURES="x86_gcc2"
COPYRIGHT="2013-2014 Ralph Böhme"
SRC_URI="http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz"
PATCHES="libuuid-1.0.3.patchset"
PROVIDES="
libuuid = $portVersion
lib:libuuid = 1.0.0 compat >= 1
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:awk
cmd:gcc
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libuuid
packageEntries devel $developDir
}
TEST()
{
make check
./test_uuid
}
PROVIDES_devel="
libuuid_devel = $portVersion
devel:libuuid
"
REQUIRES_devel="
libuuid == $portVersion base
"

View File

@@ -0,0 +1,24 @@
From dccd4cbf2192dd45611fc121b9e70178e616212a Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Wed, 22 Oct 2014 21:18:47 +0200
Subject: Fix build on Haiku.
It sems this include is useless.
diff --git a/randutils.c b/randutils.c
index 80893d3..e7fa7c3 100644
--- a/randutils.c
+++ b/randutils.c
@@ -13,7 +13,9 @@
#include <string.h>
#include <sys/time.h>
+#ifndef __HAIKU__
#include <sys/syscall.h>
+#endif
#include "randutils.h"
--
1.8.3.4