From 8501e779ffd1450fde5b48b8dcfd2789debb4b3a Mon Sep 17 00:00:00 2001 From: nys Date: Fri, 29 Dec 2017 18:51:13 +0800 Subject: [PATCH] libmcrypt: new recipe (#1988) --- dev-libs/libmcrypt/libmcrypt-2.5.8.recipe | 85 +++++++++++++++++++ .../libmcrypt.OptionalPackageDescription | 5 -- 2 files changed, 85 insertions(+), 5 deletions(-) create mode 100644 dev-libs/libmcrypt/libmcrypt-2.5.8.recipe delete mode 100644 dev-libs/libmcrypt/libmcrypt.OptionalPackageDescription diff --git a/dev-libs/libmcrypt/libmcrypt-2.5.8.recipe b/dev-libs/libmcrypt/libmcrypt-2.5.8.recipe new file mode 100644 index 000000000..d04478d82 --- /dev/null +++ b/dev-libs/libmcrypt/libmcrypt-2.5.8.recipe @@ -0,0 +1,85 @@ +SUMMARY="Replacements for the old Unix crypt" +DESCRIPTION="libmcrypt is the companion library used by Mcrypt, which is \ +itself an enhanced replacement for the old crypt command. +libmcrypt allows developers to use a wide range of encryption functions \ +without making drastic changes to their code. It contains the actual \ +encryption functions and provides a standardized mechanism for accessing \ +them." +HOMEPAGE="http://mcrypt.sourceforge.net/" +COPYRIGHT="1998-2002 Nikos Mavroyanopoulos" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/mcrypt/libmcrypt-$portVersion.tar.gz" +CHECKSUM_SHA256="e4eb6c074bbab168ac47b947c195ff8cef9d51a211cdd18ca9c9ef34d27a373e" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="4.4.8" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libmcrypt$secondaryArchSuffix = $portVersion + lib:libmcrypt$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + libmcrypt${secondaryArchSuffix}_devel = $portVersion + devel:libmcrypt$secondaryArchSuffix = $libVersion + cmd:libmcrypt_config$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + libmcrypt$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + " + +defineDebugInfoPackage libmcrypt$secondaryArchSuffix \ + $libDir/libmcrypt.so.$libVersion + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm -f $libDir/*.la + + prepareInstalledDevelLib libmcrypt + fixPkgconfig + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $manDir + maybe_manDir= + else + maybe_manDir=$manDir + fi + + packageEntries devel \ + $binDir \ + $dataDir \ + $developDir \ + $maybe_manDir +} + +TEST() +{ + make check +} diff --git a/dev-libs/libmcrypt/libmcrypt.OptionalPackageDescription b/dev-libs/libmcrypt/libmcrypt.OptionalPackageDescription deleted file mode 100644 index 3a1e27bfc..000000000 --- a/dev-libs/libmcrypt/libmcrypt.OptionalPackageDescription +++ /dev/null @@ -1,5 +0,0 @@ -Package: libmcrypt -Version: 2.5.8 -Copyright: 1998-2002 Nikos Mavroyanopoulos -License: GNU LGPL v2.1 -URL: http://mcrypt.sourceforge.net/