1# 2# Copyright (C) 2007-2009 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7 8include $(TOPDIR)/rules.mk 9 10PKG_NAME:=zip 11PKG_VERSION:=2.32 12PKG_RELEASE:=1 13 14PKG_SOURCE:=$(PKG_NAME)232.zip 15PKG_SOURCE_URL:=@SF/infozip 16PKG_MD5SUM:=da947ed356e5fdb30ff4bc3dc7698f33 17 18include $(INCLUDE_DIR)/package.mk 19 20PKG_UNPACK=unzip -d $(PKG_BUILD_DIR)/ $(DL_DIR)/$(PKG_SOURCE) 21 22define Package/zip 23 SECTION:=utils 24 CATEGORY:=Utilities 25 DEPENDS:= 26 TITLE:=Archiver for .zip files 27 URL:=http://infozip.sourceforge.net/Zip.html 28 SUBMENU:=compression 29endef 30 31define Package/zip/description 32 This is InfoZIP's zip program. It produces files that are fully 33 compatible with the popular PKZIP program; however, the command line 34 options are not identical. In other words, the end result is the same, 35 but the methods differ. 36endef 37 38define Build/Configure 39endef 40 41define Build/Compile 42 $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ 43 $(TARGET_CONFIGURE_OPTS) \ 44 prefix="$(PKG_INSTALL_DIR)/usr" \ 45 CFLAGS="$(TARGET_CFLAGS)" \ 46 CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \ 47 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \ 48 install 49endef 50 51define Package/zip/install 52 $(INSTALL_DIR) $(1)/usr/bin/ 53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 54endef 55 56$(eval $(call BuildPackage,zip)) 57