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.

58 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libarchive
  9. PKG_VERSION:=3.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.libarchive.org/downloads
  13. PKG_MD5SUM:=efad5a503f66329bb9d2f4308b5de98a
  14. PKG_MAINTAINER:=Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
  15. PKG_LICENSE:=BSD-2-Clause
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libarchive
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libopenssl +zlib
  23. TITLE:=Multi-format archive and compression library
  24. URL:=http://www.libarchive.org/
  25. endef
  26. CONFIGURE_ARGS += \
  27. --disable-bsdcpio \
  28. --disable-bsdtar \
  29. --disable-acl \
  30. --disable-xattr \
  31. --without-bz2lib \
  32. --without-lzma \
  33. --without-lzmadec \
  34. --without-lzo2 \
  35. --without-nettle \
  36. --without-expat \
  37. --without-xml2
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  43. endef
  44. define Package/libarchive/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libarchive))