mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Added cln .bep and .patch files from cipri, this fixes #600.
This commit is contained in:
25
sci-libs/cln/cln-1.3.2.bep
Normal file
25
sci-libs/cln/cln-1.3.2.bep
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision."
|
||||||
|
HOMEPAGE="http://www.ginac.de/CLN/"
|
||||||
|
SRC_URI="http://www.ginac.de/CLN/cln-1.3.2.tar.bz2"
|
||||||
|
CHECKSUM_MD5="d897cce94d9c34d106575ed4ec865d71"
|
||||||
|
REVISION="1"
|
||||||
|
STATUS_HAIKU="stable"
|
||||||
|
DEPEND=""
|
||||||
|
MESSAGE="This port only builds with gcc4."
|
||||||
|
BUILD {
|
||||||
|
cd cln-1.3.2
|
||||||
|
autoreconf -i
|
||||||
|
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||||
|
--datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL {
|
||||||
|
cd cln-1.3.2
|
||||||
|
make install
|
||||||
|
}
|
||||||
|
|
||||||
|
LICENSE="GNU GPL v2"
|
||||||
|
COPYRIGHT="Bruno Haible 1988-2008
|
||||||
|
Alexei Sheplyakov 2008
|
||||||
|
Richard Kreckel 2000-2009"
|
||||||
21
sci-libs/cln/patches/cln-1.3.2.patch
Normal file
21
sci-libs/cln/patches/cln-1.3.2.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
diff -Naur cln-1.3.2/src/base/random/cl_random_from.cc cln-1.3.2-haiku/src/base/random/cl_random_from.cc
|
||||||
|
--- cln-1.3.2/src/base/random/cl_random_from.cc 2009-05-10 22:32:30.056360960 +0200
|
||||||
|
+++ cln-1.3.2-haiku/src/base/random/cl_random_from.cc 2012-06-14 20:16:49.920387584 +0200
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
#include "base/cl_low.h"
|
||||||
|
#include <cstdlib> // declares rand()
|
||||||
|
|
||||||
|
-#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__)
|
||||||
|
+#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) || defined(__HAIKU__)
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h> // declares getpid()
|
||||||
|
@@ -86,7 +86,7 @@
|
||||||
|
{
|
||||||
|
var uint32 seed_hi;
|
||||||
|
var uint32 seed_lo;
|
||||||
|
-#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__)
|
||||||
|
+#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) || defined(__HAIKU__)
|
||||||
|
seed_lo = get_seed();
|
||||||
|
seed_hi = (rand() // zufällige 31 Bit (bei UNIX_BSD) bzw. 16 Bit (bei UNIX_SYSV)
|
||||||
|
<< 8) ^ (uintL)(getpid()); // ca. 8 Bit von der Process ID
|
||||||
Reference in New Issue
Block a user