mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
libmd, bump version, add libVersion(Compat), defineDebugInfoPackage (#3031)
This commit is contained in:
committed by
waddlesplash
parent
1e7e03ae1a
commit
428efdb37d
100
app-crypt/libmd/libmd-1.0.0.recipe
Normal file
100
app-crypt/libmd/libmd-1.0.0.recipe
Normal file
@@ -0,0 +1,100 @@
|
||||
SUMMARY="Message Digest functions from BSD systems"
|
||||
DESCRIPTION="This library provides message digest functions found on BSD \
|
||||
systems either on their libc libraries and lacking on others like GNU systems.
|
||||
|
||||
The currently provided message digest algorithms are:
|
||||
- MD2
|
||||
- MD4
|
||||
- MD5
|
||||
- RIPEMD-160
|
||||
- SHA-1
|
||||
- SHA-2 (SHA-256, SHA-384 and SHA-512)"
|
||||
HOMEPAGE="https://www.hadrons.org/software/libmd/"
|
||||
COPYRIGHT="2009, 2011, 2018 Guillem Jover
|
||||
2000-2001 Aaron D. Gifford
|
||||
2001 Markus Friedl
|
||||
2001 The NetBSD Foundation
|
||||
1997, 2003, 2004 Todd C. Miller
|
||||
Poul-Henning Kamp
|
||||
Colin Plumb
|
||||
Steve Reid "
|
||||
LICENSE="BSD (3-clause)
|
||||
Beerware
|
||||
BSD (2-clause)
|
||||
BSD (2-clause) NetBSD
|
||||
ISC
|
||||
Public Domain"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://libbsd.freedesktop.org/releases/libmd-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="f21aea69f6411cb4307cda1f6378c7ed07830202b5f4cb9e64f681fdaf2d64c7"
|
||||
PATCHES="libmd-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion="0.0.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libmd$secondaryArchSuffix = $portVersion
|
||||
lib:libmd$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libmd${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmd$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmd$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:grep
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libmd$secondaryArchSuffix \
|
||||
"$libDir"/libmd.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/libmd.la
|
||||
|
||||
prepareInstalledDevelLib libmd
|
||||
fixPkgconfig
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $manDir
|
||||
maybe_manDir=
|
||||
else
|
||||
maybe_manDir=$manDir
|
||||
fi
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$maybe_manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
20
app-crypt/libmd/licenses/BSD (2-clause) NetBSD
Normal file
20
app-crypt/libmd/licenses/BSD (2-clause) NetBSD
Normal file
@@ -0,0 +1,20 @@
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
3
app-crypt/libmd/licenses/Beerware
Normal file
3
app-crypt/libmd/licenses/Beerware
Normal file
@@ -0,0 +1,3 @@
|
||||
As long as you retain this notice you
|
||||
can do whatever you want with this stuff. If we meet some day, and you think
|
||||
this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
27
app-crypt/libmd/patches/libmd-1.0.0.patchset
Normal file
27
app-crypt/libmd/patches/libmd-1.0.0.patchset
Normal file
@@ -0,0 +1,27 @@
|
||||
From 5b8465a3d576188312c83e111039e7d1a1182161 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Thu, 2 Mar 2017 11:00:39 +0100
|
||||
Subject: [PATCH] Endiannes support on Haiku
|
||||
|
||||
---
|
||||
src/sha2.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/sha2.c b/src/sha2.c
|
||||
index 029d0d4..5cbbe2b 100644
|
||||
--- a/src/sha2.c
|
||||
+++ b/src/sha2.c
|
||||
@@ -36,6 +36,10 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <endian.h>
|
||||
+#endif
|
||||
+
|
||||
#include <string.h>
|
||||
#include <sha2.h>
|
||||
|
||||
--
|
||||
2.11.0
|
||||
|
||||
Reference in New Issue
Block a user