mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-18 05:13:56 +02:00
3b812f93d6
Switch to new upstream and switch package name. Further disable features to avoid extra dependencies. Build with PIC to avoid build failures with mips16. Remove no longer needed patch. Upstream fixed it differently. Use AUTORELEASE for simplicity. Signed-off-by: Rosen Penev <rosenp@gmail.com>
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
#
|
|
# 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
|
|
|
|
PKG_NAME:=minizip-ng
|
|
PKG_VERSION:=3.0.0
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/zlib-ng/minizip-ng/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=13b4afd96fbf2456f441a32dc9f5d3c983a5ece9e6a3903fc9322c8ad5518546
|
|
|
|
PKG_MAINTAINER:=David Woodhouse <dwmw2@infradead.org>
|
|
PKG_LICENSE:=Zlib
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
-DINSTALL_INC_DIR=/usr/include/minizip \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DMZ_BZIP2=OFF \
|
|
-DMZ_COMPAT=OFF \
|
|
-DMZ_ICONV=OFF \
|
|
-DMZ_LIBBSD=OFF \
|
|
-DMZ_LZMA=OFF \
|
|
-DMZ_OPENSSL=OFF \
|
|
-DMZ_PKCRYPT=OFF \
|
|
-DMZ_ZSTD=OFF
|
|
|
|
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
|
|
|
|
TARGET_CXXFLAGS += -flto
|
|
|
|
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))
|