lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1512B)


      1 #
      2 # Copyright (C) 2007-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=zip
     11 PKG_REV:=30
     12 PKG_VERSION:=3.0
     13 PKG_RELEASE:=3
     14 
     15 PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
     16 PKG_SOURCE_URL:=@SF/infozip
     17 PKG_MD5SUM:=7b74551e63f8ee6aab6fbc86676c0d37
     18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
     19 
     20 PKG_LICENSE:=BSD-4-Clause
     21 PKG_LICENSE_FILES:=LICENSE
     22 
     23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
     24 PKG_CHECK_FORMAT_SECURITY:=0
     25 
     26 include $(INCLUDE_DIR)/package.mk
     27 
     28 define Package/zip
     29   SECTION:=utils
     30   CATEGORY:=Utilities
     31   DEPENDS:=
     32   TITLE:=Archiver for .zip files
     33   URL:=http://infozip.sourceforge.net/Zip.html
     34   SUBMENU:=Compression
     35 endef
     36 
     37 define Package/zip/description
     38 	This is InfoZIP's zip program. It produces files that are fully
     39 	compatible with the popular PKZIP program; however, the command line
     40 	options are not identical. In other words, the end result is the same,
     41 	but the methods differ.
     42 endef
     43 
     44 define Build/Configure
     45 endef
     46 
     47 define Build/Compile
     48 	$(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
     49 		prefix="$(PKG_INSTALL_DIR)/usr" \
     50 		CFLAGS="$(TARGET_CFLAGS)" \
     51 		CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX $(TARGET_LDFLAGS)" \
     52 		IZ_BZIP2="no" \
     53 		install
     54 endef
     55 
     56 define Package/zip/install
     57 	$(INSTALL_DIR) $(1)/usr/bin/
     58 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
     59 endef
     60 
     61 $(eval $(call BuildPackage,zip))