暂无描述

Makefile 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 2007-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:=zip
  9. PKG_REV:=30
  10. PKG_VERSION:=3.0
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
  13. PKG_SOURCE_URL:=@SF/infozip
  14. PKG_MD5SUM:=7b74551e63f8ee6aab6fbc86676c0d37
  15. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  16. PKG_LICENSE:=BSD-4-Clause
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
  19. PKG_CHECK_FORMAT_SECURITY:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/zip
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=
  25. TITLE:=Archiver for .zip files
  26. URL:=http://infozip.sourceforge.net/Zip.html
  27. SUBMENU:=Compression
  28. endef
  29. define Package/zip/description
  30. This is InfoZIP's zip program. It produces files that are fully
  31. compatible with the popular PKZIP program; however, the command line
  32. options are not identical. In other words, the end result is the same,
  33. but the methods differ.
  34. endef
  35. define Build/Configure
  36. endef
  37. define Build/Compile
  38. $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
  39. prefix="$(PKG_INSTALL_DIR)/usr" \
  40. CFLAGS="$(TARGET_CFLAGS)" \
  41. CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
  42. LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
  43. IZ_BZIP2="no" \
  44. install
  45. endef
  46. define Package/zip/install
  47. $(INSTALL_DIR) $(1)/usr/bin/
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,zip))