Ticket #9470: exfat.patch

File exfat.patch, 1.9 KB (added by obsy, 5 years ago)
  • feeds/packages/utils/exfat/files/Makefile

     
     1CFLAGS += -O2 -D_FILE_OFFSET_BITS=64 -I./libexfat -DFUSE_USE_VERSION=26 
     2LIBS=-lfuse 
     3 
     4all: mount.exfat 
     5 
     6%.o: %.c 
     7        $(CC) $(CFLAGS) -c -o $@ $^ 
     8 
     9mount.exfat: libexfat/cluster.o libexfat/io.o libexfat/log.o libexfat/lookup.o libexfat/mount.o libexfat/node.o libexfat/utf.o libexfat/utils.o fuse/main.o 
     10        $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) 
  • feeds/packages/utils/exfat/Makefile

     
     1# 
     2# Copyright (C) 2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=fuse-exfat 
     11PKG_RELEASE:=1 
     12 
     13PKG_VERSION:=0.9.5 
     14 
     15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     16PKG_SOURCE_URL:=http://exfat.googlecode.com/files 
     17 
     18include $(INCLUDE_DIR)/package.mk 
     19 
     20define Package/exfat 
     21  SECTION:=utils 
     22  CATEGORY:=Utilities 
     23  URL:=http://code.google.com/p/exfat/ 
     24  SUBMENU:=Filesystem 
     25  TITLE:=exFAT Driver 
     26  DEPENDS:=+libfuse 
     27endef 
     28 
     29define Package/exfat/description 
     30  Full-featured exFAT file system implementation for GNU/Linux other Unix-like systems as a FUSE module. 
     31endef 
     32 
     33define Build/Prepare 
     34        $(call Build/Prepare/Default) 
     35        $(CP) ./src/Makefile $(PKG_BUILD_DIR)/ 
     36endef 
     37 
     38define Package/exfat/install 
     39        $(INSTALL_DIR) $(1)/sbin 
     40        $(CP) $(PKG_BUILD_DIR)/mount.exfat $(1)/sbin/ 
     41endef 
     42 
     43define Package/exfat/postinst 
     44#!/bin/sh 
     45 
     46if [ -z "$$(grep ^\\exfat: $${IPKG_INSTROOT}/etc/filesystems)" ]; then 
     47        echo "exfat" >> $${IPKG_INSTROOT}/etc/filesystems 
     48fi 
     49endef 
     50 
     51$(eval $(call BuildPackage,exfat))