From 0fc4cb94948c73cae8dc3aad0a296076466cf8c8 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Sun, 8 Nov 2015 15:04:03 +0000 Subject: [PATCH] Add Sortix libz --- dev-libs/libz/libz-1.2.8.2015.08.23.recipe | 64 ++++++++++++++++++++++ dev-libs/libz/licenses/Zlib | 21 +++++++ 2 files changed, 85 insertions(+) create mode 100644 dev-libs/libz/libz-1.2.8.2015.08.23.recipe create mode 100644 dev-libs/libz/licenses/Zlib diff --git a/dev-libs/libz/libz-1.2.8.2015.08.23.recipe b/dev-libs/libz/libz-1.2.8.2015.08.23.recipe new file mode 100644 index 000000000..56bb44ce3 --- /dev/null +++ b/dev-libs/libz/libz-1.2.8.2015.08.23.recipe @@ -0,0 +1,64 @@ +SUMMARY="A general purpose deflate compression library" +DESCRIPTION="Sortix libz is a general purpose deflate compression library. +It is a modernized and compatible fork of zlib with focus on correctness, +proper portability, auditability, simplification and opportunities to optimize." +HOMEPAGE="https://sortix.org/libz" +COPYRIGHT=" + 1995-2013 Jean-loup Gailly and Mark Adler + 2015 Jonas 'Sortie' Termansen +" +LICENSE="Zlib" +SOURCE_URI="https://sortix.org/libz/release/libz-1.2.8.2015.08.23.tar.gz +https://users-cs.au.dk/sortie/sortix/libz/release/libz-1.2.8.2015.08.23.tar.gz" +CHECKSUM_SHA256="31d6d00862e655e2eb615e538eb879c1fb7ae8c91b75a1f5ce9fdc9cbd78cc80" +SOURCE_DIR="libz-1.2.8.2015.08.23" +REVISION="1" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libz$secondaryArchSuffix = $portVersion compat >= 1 + lib:libz$secondaryArchSuffix = $portVersion compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +CONFLICTS=" + zlib$secondaryArchSuffix + " + +PROVIDES_devel=" + libz${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libz$secondaryArchSuffix = $portVersion compat >= 1 + " +REQUIRES_devel=" + haiku${secondaryArchSuffix}_devel + libz$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:which + cmd:gcc$secondaryArchSuffix + " + +BUILD() +{ + runConfigure ./configure --includeexecdir=$includeDir + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs \ + libz + packageEntries devel \ + $developDir +} diff --git a/dev-libs/libz/licenses/Zlib b/dev-libs/libz/licenses/Zlib new file mode 100644 index 000000000..8df88676f --- /dev/null +++ b/dev-libs/libz/licenses/Zlib @@ -0,0 +1,21 @@ +Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + +Jean-loup Gailly Mark Adler +jloup@gzip.org madler@alumni.caltech.edu +