2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
17 PKG_SOURCE_URL
:=http
://www.ntfs-3g.org
/
18 PKG_MD5SUM
:=873a8de662849d129fc7c475ad3f5447
20 PKG_BUILD_DEPENDS
:=libfuse
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ntfs-3g
26 DEPENDS
:=+libfuse
+fuse-utils
30 Third generation Read
/Write NTFS driver
31 URL
:=http
://www.ntfs-3g.org
34 define Build
/Configure
35 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
36 touch configure.in
; \
39 touch
include/config.h.in
; \
41 $(TARGET_CONFIGURE_OPTS
) \
42 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
43 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig" \
44 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
45 CFLAGS
="$(TARGET_CFLAGS)" \
46 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
48 --target
=$(GNU_TARGET_NAME
) \
49 --host
=$(GNU_TARGET_NAME
) \
50 --build
=$(GNU_HOST_NAME
) \
56 --datadir=/usr
/share \
57 --includedir=/usr
/include \
58 --infodir=/usr
/share
/info \
60 --libexecdir
=/usr
/lib \
61 --localstatedir
=/var \
62 --mandir=/usr
/share
/man \
65 $(DISABLE_LARGEFILE
) \
70 --enable-kernel-module \
74 --disable-auto-modprobe \
75 --with-kernel
="$(LINUX_DIR)" \
81 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
82 ARCH
="$(LINUX_KARCH)" \
83 CROSS_COMPILE
="$(TARGET_CROSS)" \
84 DESTDIR
="$(PKG_INSTALL_DIR)" \
88 define Build
/InstallDev
89 mkdir
-p
$(STAGING_DIR
)/usr
/include
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ntfs-3g
$(STAGING_DIR
)/usr
/include/
91 mkdir
-p
$(STAGING_DIR
)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
95 define Build
/UninstallDev
96 rm -rf
$(STAGING_DIR
)/usr
/include/ntfs-3g \
97 $(STAGING_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*}
100 define Package
/ntfs-3g
/install
101 $(INSTALL_DIR
) $(1)/usr
/bin
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ntfs-3g
$(1)/usr
/bin
/
103 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.so.
* $(1)/usr
/lib
/
107 $(eval
$(call BuildPackage
,ntfs-3g
))