You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. #
  2. # Copyright © 2020 David Woodhouse <dwmw2@infradead.org>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=minizip
  8. PKG_VERSION:=2.9.3
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://github.com/nmoinvaz/minizip/archive/
  12. PKG_HASH:=f64b2d228a03673a8ec36a53402e2108437226fd9170d49b7f0c0bca94708b93
  13. PKG_MAINTAINER:=David Woodhouse <dwmw2@infradead.org>
  14. PKG_LICENSE:=Zlib
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_BUILD_PARALLEL:=1
  17. CMAKE_OPTIONS:=-DINSTALL_INC_DIR=/usr/include/minizip -DMZ_BZIP2=OFF -DBUILD_SHARED_LIBS=ON
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/minizip
  21. TITLE:=Fork of the popular zip manipulation library found in the zlib distribution
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+zlib
  25. URL:=https://github.com/nmoinvaz/minizip
  26. endef
  27. define Package/minizip-dev
  28. SECTION:=devel
  29. CATEGORY:=Development
  30. SUBMENU:=Libraries
  31. DEPENDS:=minizip
  32. TITLE:=Development files for the minizip library
  33. endef
  34. define Package/minizip/description
  35. minizip is a zip manipulation library written in C that is supported on Windows, macOS, and Linux
  36. endef
  37. define Package/minizip/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libminizip.so.* $(1)/usr/lib/
  40. endef
  41. TARGET_CXXFLAGS += -flto
  42. define Build/InstallDev
  43. $(call Build/InstallDev/cmake,$(1))
  44. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/minizip.pc
  45. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/minizip.pc
  46. endef
  47. $(eval $(call BuildPackage,minizip))