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