2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)232.zip
16 PKG_SOURCE_URL
:=@SF
/infozip
17 PKG_MD5SUM
:=da947ed356e5fdb30ff4bc3dc7698f33
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 PKG_UNPACK
:=unzip
-d
$(PKG_BUILD_DIR
)/ $(DL_DIR
)/$(PKG_SOURCE
)
23 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=Archiver for .zip files
30 URL
:=http
://infozip.sourceforge.net
/Zip.html
34 define Package
/zip
/description
35 This is InfoZIP
's zip program. It produces files that are fully
36 compatible with the popular PKZIP program; however, the command line
37 options are not identical. In other words, the end result is the same,
38 but the methods differ.
41 define Build/Configure
45 $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
46 $(TARGET_CONFIGURE_OPTS) \
47 prefix="$(PKG_INSTALL_DIR)/usr" \
48 CFLAGS="$(TARGET_CFLAGS)" \
49 CF="$(TARGET_CFLAGS) -O -I$(STAGING_DIR)/usr/include -I. -DUNIX" \
50 LD="$(TARGET_CC) -L$(STAGING_DIR)/usr/lib" \
54 define Package/zip/install
55 $(INSTALL_DIR) $(1)/usr/bin/
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
59 $(eval $(call BuildPackage,zip))