mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
mhash: new recipe (#1987)
This commit is contained in:
78
app-crypt/mhash/mhash-0.9.9.9.recipe
Normal file
78
app-crypt/mhash/mhash-0.9.9.9.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="A uniform interface to hash algorithms"
|
||||
DESCRIPTION="Libmhash is a library that provides a uniform interface to \
|
||||
several hash algorithms. It supports the basics for message authentication \
|
||||
by following rfc2104 (HMAC). It also includes some key generation algorithms \
|
||||
which are based on hash algorithms."
|
||||
HOMEPAGE="http://mhash.sourceforge.net/"
|
||||
COPYRIGHT="1998 Nikos Mavroyanopoulos
|
||||
1999, 2000 Sascha Schumman, Nikos Mavroyanopoulos"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/mhash/mhash-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3dcad09a63b6f1f634e64168dd398e9feb9925560f9b671ce52283a79604d13e"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.0.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
mhash$secondaryArchSuffix = $portVersion
|
||||
lib:libmhash$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
PROVIDES_devel="
|
||||
mhash${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmhash$secondaryArchSuffix = $libVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mhash$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# libtool
|
||||
rm -f $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib libmhash
|
||||
fixPkgconfig
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $manDir
|
||||
maybe_manDir=
|
||||
else
|
||||
maybe_manDir=$manDir
|
||||
fi
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$maybe_manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
Package: mhash
|
||||
Version: 0.9.9.9
|
||||
Copyright: 1998 Nikos Mavroyanopoulos
|
||||
Copyright: 1999,2000 Sascha Schumman, Nikos Mavroyanopoulos
|
||||
License: GNU LGPL v2
|
||||
URL: http://mhash.sourceforge.net/
|
||||
Reference in New Issue
Block a user