2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2010.1.16
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://www.tuxera.com
/opensource
/
16 PKG_MD5SUM
:=e104c914e8d7d29ee83e63d46afbba25
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/ntfs-3g
/common
25 URL
:=http
://www.ntfs-3g.org
27 TITLE
:=Stable Read
/Write NTFS Driver
(build options
)
30 define Package
/ntfs-3g
/description
31 ntfs-3g is an NTFS driver
, which can create
, remove
, rename
,
32 move files
, directories
, hard links
, and streams
; it can read
33 and write files
, including streams and sparse files
; it can
34 handle special files like symbolic links
, devices
, and FIFOs
;
35 moreover it can also read transparently compressed files.
38 define Package
/ntfs-3g
39 $(call Package
/ntfs-3g
/common
)
40 DEPENDS
+= +LINUX_2_4
:kmod-fuse24
+libpthread
+LINUX_2_6
:kmod-fuse
44 define Package
/externalFUSE
45 $(call Package
/ntfs-3g
/common
)
46 TITLE
:=use external FUSE library
(package libfuse
)
48 DEPENDS
+=ntfs-3g
+libfuse
51 define Package
/externalFUSE
/description
52 Ntfs-3g by default uses a lite version of FUSE for the ease
53 of use and some special features. If you
'd rather like to use
54 the systemwide standard FUSE library activate this option [M|*].
61 # insert config with external libfuse
62 ifdef CONFIG_PACKAGE_externalFUSE
63 CONFIGURE_ARGS += --with-fuse=external \
64 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
65 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
66 PKG_RELEASE:=$(PKG_RELEASE)-fuseext
68 CONFIGURE_ARGS += --with-fuse=internal
69 PKG_RELEASE:=$(PKG_RELEASE)-fuseint
73 CFLAGS="$(TARGET_CFLAGS)" \
74 $(TARGET_CONFIGURE_OPTS) CPPFLAGS='' LDFLAGS=''
77 define Build/Configure
78 (cd $(PKG_BUILD_DIR) ; \
79 $(TARGET_CONFIGURE_OPTS) \
80 CFLAGS="$(TARGET_CFLAGS)" \
86 MAKE_ARGS += ARCH="$(LINUX_KARCH)" \
87 CROSS_COMPILE="$(TARGET_CROSS)"
89 define Build/InstallDev
90 $(INSTALL_DIR) $(1)/usr/include
91 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
92 $(INSTALL_DIR) $(1)/usr/lib
93 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(1)/usr/lib/
96 define Package/ntfs-3g/install
97 $(INSTALL_DIR) $(1)/usr/bin
98 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
99 $(INSTALL_DIR) $(1)/usr/lib
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
103 # order matters!!! else a probably missing fuse lib might not be build beforehand
104 $(eval $(call BuildPackage,externalFUSE))
105 $(eval $(call BuildPackage,ntfs-3g))