libgcrypt: added a recipe for version 1.6.2

This commit is contained in:
Jerome Duval
2014-08-28 20:04:06 +00:00
parent 8488c3f57f
commit bc6237c0db
2 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
SUMMARY="GNU's basic cryptographic library."
DESCRIPTION="
Libgcrypt is a general purpose crypto library based on the code \
used in GnuPG.
"
LICENSE="GNU LGPL v3"
COPYRIGHT="2000-2013 Free Software Foundation, Inc."
HOMEPAGE="http://directory.fsf.org/project/libgcrypt/"
SRC_URI="ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$portVersion.tar.bz2"
CHECKSUM_SHA256="de084492a6b38cdb27b67eaf749ceba76bf7029f63a9c0c3c1b05c88c9885c4c"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="libgcrypt-$portVersion.patchset"
PROVIDES="
libgcrypt${secondaryArchSuffix} = $portVersion compat >= 1.6
lib:libgcrypt${secondaryArchSuffix} = 20.0.2 compat >= 20
"
REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
lib:libgpg_error${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libgpg_error${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:make
cmd:gcc${secondaryArchSuffix}
"
BUILD()
{
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libgcrypt
packageEntries devel \
$developDir $binDir
}
PROVIDES_devel="
libgcrypt${secondaryArchSuffix}_devel = $portVersion compat >= 1.6
devel:libgcrypt$secondaryArchSuffix = 20.0.2 compat >= 20
cmd:dumpsexp$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:libgcrypt_config$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:hmac256$secondaryArchSuffix = $portVersion compat >= 1.6
cmd:mpicalc$secondaryArchSuffix = $portVersion compat >= 1.6
"
REQUIRES_devel="
libgcrypt${secondaryArchSuffix} == $portVersion base
haiku${secondaryArchSuffix} >= $haikuVersion
libgpg_error${secondaryArchSuffix}
"

View File

@@ -0,0 +1,66 @@
From cf99e9108a7921ed1650415cb96e1060f169eebd Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 5 Aug 2014 16:50:29 +0000
Subject: haiku patch
diff --git a/configure b/configure
index a3d1e23..131d512 100755
--- a/configure
+++ b/configure
@@ -18252,7 +18252,7 @@ esac
#
# Provide information about the build.
#
-BUILD_REVISION="b3936b6"
+BUILD_REVISION=""
cat >>confdefs.h <<_ACEOF
@@ -18261,7 +18261,7 @@ _ACEOF
BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
-BUILD_FILEVERSION="${BUILD_FILEVERSION}45971"
+BUILD_FILEVERSION="${BUILD_FILEVERSION}0"
BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
diff --git a/configure.ac b/configure.ac
index b08c181..a4d443e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -744,6 +744,7 @@ fi
AC_SEARCH_LIBS(setsockopt, [socket], ,
[AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])])
AC_SEARCH_LIBS(setsockopt, [nsl])
+AC_SEARCH_LIBS(socket, [network])
##################################
#### Checks for header files. ####
--
1.8.3.4
From dda47050a951b5746e7b7aaff75654d342abeb94 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 6 Aug 2014 22:08:04 +0000
Subject: gcc2 patch
diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index 0591b4f..7521080 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -102,7 +102,7 @@ get_xgetbv(void)
unsigned int t_eax;
asm volatile
- ("xgetbv\n\t"
+ (".byte 0x0f, 0x01, 0xd0\n\t"
: "=a" (t_eax)
: "c" (0)
);
--
1.8.3.4