mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
minizip-ng, new recipe (#10611)
This commit is contained in:
17
sys-libs/minizip-ng/licenses/Zlib
Normal file
17
sys-libs/minizip-ng/licenses/Zlib
Normal file
@@ -0,0 +1,17 @@
|
||||
Condition of use and distribution are the same as zlib:
|
||||
|
||||
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 acknowledgement 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.
|
||||
82
sys-libs/minizip-ng/minizip_ng-4.0.7.recipe
Normal file
82
sys-libs/minizip-ng/minizip_ng-4.0.7.recipe
Normal file
@@ -0,0 +1,82 @@
|
||||
SUMMARY="Fork of the popular zip manipulation library found in the zlib distribution"
|
||||
DESCRIPTION="minizip-ng is a zip manipulation library written in C that is supported on Windows, \
|
||||
macOS, and Linux."
|
||||
HOMEPAGE="https://github.com/zlib-ng/minizip-ng"
|
||||
COPYRIGHT="1995-2013 Jean-loup Gailly and Mark Adler"
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zlib-ng/minizip-ng/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc"
|
||||
SOURCE_FILENAME="minizip-ng-$portVersion.tar.gz"
|
||||
SOURCE_DIR="minizip-ng-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
minizip_ng$secondaryArchSuffix = $portVersion
|
||||
lib:libminizip_ng$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:liblzma$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libzstd$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
minizip_ng${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libminizip_ng$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
minizip_ng$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:liblzma$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libzstd$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage minizip_ng$secondaryArchSuffix \
|
||||
$libDir/libminizip-ng.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs -GNinja \
|
||||
-DMZ_LIB_SUFFIX="-ng" \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
ninja -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libminizip-ng
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user