1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-23 16:17:36 +02:00
openwrt-packages/libs/minizip/Makefile
krant 838acc26db minizip: update to 4.0.4
- Don't set default cmake option
- Switch URL to the official one

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-02-07 13:54:20 -08:00

71 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:=4.0.4
PKG_RELEASE:=1
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:=955800fe39f9d830fcb84e60746952f6a48e41093ec7a233c63ad611b5fcfe9f
PKG_MAINTAINER:=David Woodhouse <dwmw2@infradead.org>
PKG_LICENSE:=Zlib
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:zlib-ng:minizip-ng
PKG_BUILD_FLAGS:=lto
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_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/zlib-ng/minizip-ng
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))