| include $(TOPDIR)/rules.mk |
| |
| PKG_NAME:=zip |
| PKG_VERSION:=3.0 |
| PKG_RELEASE:=1 |
| |
| PKG_SOURCE:=zip-3.0.tar.gz |
| PKG_HASH:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369 |
| PKG_BUILD_DIR:=$(BUILD_DIR)/zip30 |
| |
| PKG_MAINTAINER:=lynq |
| PKG_LICENSE:=BSD-3-Clause |
| PKG_LICENSE_FILES:=LICENSE |
| |
| include $(INCLUDE_DIR)/package.mk |
| |
| define Package/zip |
| SECTION:=utils |
| CATEGORY:=Utilities |
| TITLE:=ZIP compression utility |
| URL:=http://infozip.sourceforge.net/ |
| DEPENDS:=+libbz2 +zlib |
| endef |
| |
| define Package/zip/description |
| ZIP is a compression and file packaging/archive utility. |
| endef |
| |
| define Build/Configure |
| $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ |
| CC="$(TARGET_CC)" \ |
| CPP="$(TARGET_CXX)" \ |
| CFLAGS="$(TARGET_CFLAGS)" \ |
| LFLAGS1="$(TARGET_LDFLAGS)" |
| endef |
| |
| define Build/Compile |
| $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ |
| prefix="$(PKG_INSTALL_DIR)/usr" \ |
| install |
| endef |
| |
| define Package/zip/install |
| $(INSTALL_DIR) $(1)/usr/bin |
| $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zip $(1)/usr/bin/ |
| endef |
| |
| $(eval $(call BuildPackage,zip)) |