2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_REV
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/infozip
17 PKG_HASH
:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
18 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
20 PKG_LICENSE
:=BSD-4-Clause
21 PKG_LICENSE_FILES
:=LICENSE
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)/zip
$(PKG_REV
)
24 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)-$(PKG_VERSION
)/zip
$(PKG_REV
)
25 PKG_CHECK_FORMAT_SECURITY
:=0
27 include $(INCLUDE_DIR
)/host-build.mk
28 include $(INCLUDE_DIR
)/package.mk
34 TITLE
:=Archiver for .zip files
35 URL
:=http
://infozip.sourceforge.net
/Zip.html
39 define Package
/zip
/description
40 This is InfoZIP
's zip program. It produces files that are fully
41 compatible with the popular PKZIP program; however, the command line
42 options are not identical. In other words, the end result is the same,
43 but the methods differ.
46 define Build/Configure
50 $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
51 prefix="$(PKG_INSTALL_DIR)/usr" \
52 CFLAGS="$(TARGET_CFLAGS)" \
53 CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX $(TARGET_LDFLAGS)" \
58 define Package/zip/install
59 $(INSTALL_DIR) $(1)/usr/bin/
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
64 +$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) -I. -f unix/Makefile generic
68 $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
69 $(INSTALL_BIN) $(HOST_BUILD_DIR)/zip $(STAGING_DIR_HOSTPKG)/bin/
72 $(eval $(call HostBuild))
73 $(eval $(call BuildPackage,zip))