2020-06-03 14:37:56 +00:00
|
|
|
#
|
|
|
|
# Copyright © 2020 David Woodhouse <dwmw2@infradead.org>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2021-02-21 05:48:55 +00:00
|
|
|
PKG_NAME:=minizip-ng
|
2021-12-16 06:25:34 +00:00
|
|
|
PKG_VERSION:=3.0.4
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=2
|
2020-06-03 14:37:56 +00:00
|
|
|
|
2020-06-11 08:27:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-02-21 05:48:55 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/zlib-ng/minizip-ng/tar.gz/$(PKG_VERSION)?
|
2021-12-16 06:25:34 +00:00
|
|
|
PKG_HASH:=2ab219f651901a337a7d3c268128711b80330a99ea36bdc528c76b591a624c3c
|
2020-06-03 14:37:56 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=David Woodhouse <dwmw2@infradead.org>
|
|
|
|
PKG_LICENSE:=Zlib
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
2023-03-23 08:27:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
|
2020-06-03 14:37:56 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2020-06-03 14:37:56 +00:00
|
|
|
|
2020-06-11 08:27:31 +00:00
|
|
|
CMAKE_OPTIONS += \
|
2021-02-21 05:48:55 +00:00
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
2020-06-11 08:27:31 +00:00
|
|
|
-DINSTALL_INC_DIR=/usr/include/minizip \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DMZ_BZIP2=OFF \
|
2021-06-15 00:09:49 +00:00
|
|
|
-DMZ_COMPAT=ON \
|
2021-02-21 05:48:55 +00:00
|
|
|
-DMZ_ICONV=OFF \
|
|
|
|
-DMZ_LIBBSD=OFF \
|
|
|
|
-DMZ_LZMA=OFF \
|
|
|
|
-DMZ_OPENSSL=OFF \
|
|
|
|
-DMZ_PKCRYPT=OFF \
|
|
|
|
-DMZ_ZSTD=OFF
|
2020-06-11 08:27:31 +00:00
|
|
|
|
2020-06-03 14:37:56 +00:00
|
|
|
define Package/minizip
|
|
|
|
TITLE:=Fork of the popular zip manipulation library found in the zlib distribution
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+zlib
|
|
|
|
URL:=https://github.com/nmoinvaz/minizip
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minizip-dev
|
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
|
|
|
SUBMENU:=Libraries
|
|
|
|
DEPENDS:=minizip
|
|
|
|
TITLE:=Development files for the minizip library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minizip/description
|
|
|
|
minizip is a zip manipulation library written in C that is supported on Windows, macOS, and Linux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minizip/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libminizip.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/minizip.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/minizip.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,minizip))
|