lede-packages-rs

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

Makefile (2376B)


      1 #
      2 # Copyright (C) 2014 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:=f2fs-tools
     11 PKG_VERSION:=1.7.0
     12 PKG_RELEASE:=1
     13 
     14 PKG_LICENSE:=GPLv2
     15 
     16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     17 PKG_SOURCE_URL:=http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/
     18 PKG_MD5SUM:=9db22274264f0c88dbee012f257917b1
     19 
     20 PKG_FIXUP:=autoreconf
     21 PKG_BUILD_PARALLEL:=1
     22 PKG_INSTALL:=1
     23 
     24 PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
     25 
     26 include $(INCLUDE_DIR)/package.mk
     27 
     28 define Package/f2fs-tools/Default
     29   SECTION:=utils
     30   CATEGORY:=Utilities
     31   SUBMENU:=Filesystem
     32   DEPENDS:=+libf2fs
     33   URL:=http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
     34 endef
     35 
     36 define Package/mkf2fs
     37   $(Package/f2fs-tools/Default)
     38   TITLE:=Utility for creating a Flash-Friendly File System (F2FS)
     39 endef
     40 
     41 define Package/f2fsck
     42   $(Package/f2fs-tools/Default)
     43   TITLE:=Utility for checking/repairing a Flash-Friendly File System (F2FS)
     44 endef
     45 
     46 define Package/f2fs-tools
     47   $(Package/f2fs-tools/Default)
     48   TITLE:=Tools for Flash-Friendly File System (F2FS)
     49   DEPENDS += +mkf2fs +f2fsck
     50 endef
     51 
     52 define Package/libf2fs
     53   SECTION:=libs
     54   CATEGORY:=Libraries
     55   TITLE:=Library for Flash-Friendly File System (F2FS) tools
     56   DEPENDS:=+libuuid
     57 endef
     58 
     59 define Package/libf2fs/install
     60 	$(INSTALL_DIR) $(1)/usr/lib
     61 	$(CP) \
     62 		$(PKG_INSTALL_DIR)/usr/lib/libf2fs.so* $(1)/usr/lib/
     63 endef
     64 
     65 define Package/mkf2fs/install
     66 	$(INSTALL_DIR) $(1)/usr/sbin
     67 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.f2fs $(1)/usr/sbin
     68 endef
     69 
     70 define Package/f2fsck/install
     71 	$(INSTALL_DIR) $(1)/usr/sbin
     72 
     73 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fsck.f2fs $(1)/usr/sbin
     74 	ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/defrag.f2fs
     75 	ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/dump.f2fs
     76 	ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/sload.f2fs
     77 	ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/resize.f2fs
     78 endef
     79 
     80 define Package/f2fs-tools/install
     81 	$(INSTALL_DIR) $(1)/usr/sbin
     82 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/f2fstat $(1)/usr/sbin
     83 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fibmap.f2fs $(1)/usr/sbin
     84 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/parse.f2fs $(1)/usr/sbin
     85 endef
     86 
     87 $(eval $(call BuildPackage,libf2fs))
     88 $(eval $(call BuildPackage,mkf2fs))
     89 $(eval $(call BuildPackage,f2fsck))
     90 $(eval $(call BuildPackage,f2fs-tools))