hong.liu | f241688 | 2025-05-23 20:41:06 -0700 | [diff] [blame] | 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=zip |
| 4 | PKG_VERSION:=3.0 |
| 5 | PKG_RELEASE:=1 |
| 6 | |
| 7 | PKG_SOURCE:=zip-3.0.tar.gz |
| 8 | PKG_HASH:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369 |
| 9 | PKG_BUILD_DIR:=$(BUILD_DIR)/zip30 |
| 10 | |
| 11 | PKG_MAINTAINER:=lynq |
| 12 | PKG_LICENSE:=BSD-3-Clause |
| 13 | PKG_LICENSE_FILES:=LICENSE |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define Package/zip |
| 18 | SECTION:=utils |
| 19 | CATEGORY:=Utilities |
| 20 | TITLE:=ZIP compression utility |
| 21 | URL:=http://infozip.sourceforge.net/ |
| 22 | DEPENDS:=+libbz2 +zlib |
| 23 | endef |
| 24 | |
| 25 | define Package/zip/description |
| 26 | ZIP is a compression and file packaging/archive utility. |
| 27 | endef |
| 28 | |
| 29 | define Build/Configure |
| 30 | $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ |
| 31 | CC="$(TARGET_CC)" \ |
| 32 | CPP="$(TARGET_CXX)" \ |
| 33 | CFLAGS="$(TARGET_CFLAGS)" \ |
| 34 | LFLAGS1="$(TARGET_LDFLAGS)" |
| 35 | endef |
| 36 | |
| 37 | define Build/Compile |
| 38 | $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ |
| 39 | prefix="$(PKG_INSTALL_DIR)/usr" \ |
| 40 | install |
| 41 | endef |
| 42 | |
| 43 | define Package/zip/install |
| 44 | $(INSTALL_DIR) $(1)/usr/bin |
| 45 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zip $(1)/usr/bin/ |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call BuildPackage,zip)) |