2008-04-13 10:16:45 +00:00
|
|
|
#
|
2010-02-12 15:16:10 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-09-20 11:05:14 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ntfs-3g
|
2010-02-12 15:16:10 +00:00
|
|
|
PKG_VERSION:=2010.1.16
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-09-20 11:05:14 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2010-02-12 15:16:10 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.tuxera.com/opensource/
|
|
|
|
PKG_MD5SUM:=e104c914e8d7d29ee83e63d46afbba25
|
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-12 15:16:10 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-09-20 11:05:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-06-11 02:12:53 +00:00
|
|
|
define Package/ntfs-3g/common
|
2007-09-20 11:05:14 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
URL:=http://www.ntfs-3g.org
|
2009-07-05 13:57:59 +00:00
|
|
|
SUBMENU:=Filesystem
|
2009-06-11 02:12:53 +00:00
|
|
|
TITLE:=Stable Read/Write NTFS Driver (build options)
|
2007-09-20 11:05:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/description
|
2009-06-11 02:12:53 +00:00
|
|
|
ntfs-3g is an NTFS driver, which can create, remove, rename,
|
|
|
|
move files, directories, hard links, and streams; it can read
|
|
|
|
and write files, including streams and sparse files; it can
|
|
|
|
handle special files like symbolic links, devices, and FIFOs;
|
|
|
|
moreover it can also read transparently compressed files.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g
|
|
|
|
$(call Package/ntfs-3g/common)
|
|
|
|
DEPENDS+= +LINUX_2_4:kmod-fuse24 +libpthread +LINUX_2_6:kmod-fuse
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/externalFUSE
|
|
|
|
$(call Package/ntfs-3g/common)
|
|
|
|
TITLE:=use external FUSE library (package libfuse)
|
|
|
|
DEFAULT:=n
|
|
|
|
DEPENDS+=ntfs-3g +libfuse
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/externalFUSE/description
|
|
|
|
Ntfs-3g by default uses a lite version of FUSE for the ease
|
|
|
|
of use and some special features. If you'd rather like to use
|
|
|
|
the systemwide standard FUSE library activate this option [M|*].
|
2007-09-20 11:05:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2009-06-11 02:12:53 +00:00
|
|
|
|
|
|
|
# insert config with external libfuse
|
|
|
|
ifdef CONFIG_PACKAGE_externalFUSE
|
|
|
|
CONFIGURE_ARGS += --with-fuse=external \
|
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
|
|
|
|
PKG_RELEASE:=$(PKG_RELEASE)-fuseext
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS += --with-fuse=internal
|
|
|
|
PKG_RELEASE:=$(PKG_RELEASE)-fuseint
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) CPPFLAGS='' LDFLAGS=''
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR) ; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
./configure \
|
|
|
|
$(CONFIGURE_ARGS) \
|
|
|
|
)
|
|
|
|
endef
|
2007-09-20 11:05:14 +00:00
|
|
|
|
2010-02-12 15:16:10 +00:00
|
|
|
MAKE_ARGS += ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)"
|
2007-09-20 11:05:14 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(1)/usr/lib/
|
2007-09-20 11:05:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ntfs-3g/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
|
2007-09-20 11:05:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2009-06-11 02:12:53 +00:00
|
|
|
# order matters!!! else a probably missing fuse lib might not be build beforehand
|
|
|
|
$(eval $(call BuildPackage,externalFUSE))
|
2007-09-20 11:05:14 +00:00
|
|
|
$(eval $(call BuildPackage,ntfs-3g))
|
2009-06-11 02:12:53 +00:00
|
|
|
|