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
13 PKG_VERSION
:=0.20070207-RC1
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
17 PKG_SOURCE_URL
:=http
://www.ntfs-3g.org
/
18 PKG_MD5SUM
:=7c8c7a1338a0d36e315b665422e04c46
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 PKG_BUILD_DEPENDS
:=libfuse
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/ntfs-3g
30 DEPENDS
:=+libfuse
+fuse-utils @LINUX_2_6
34 Third generation Read
/Write NTFS driver
35 URL
:=http
://www.ntfs-3g.org
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
40 touch configure.in
; \
43 touch
include/config.h.in
; \
45 $(TARGET_CONFIGURE_OPTS
) \
46 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
47 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig" \
48 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
49 CFLAGS
="$(TARGET_CFLAGS)" \
50 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
52 --target
=$(GNU_TARGET_NAME
) \
53 --host
=$(GNU_TARGET_NAME
) \
54 --build
=$(GNU_HOST_NAME
) \
60 --datadir=/usr
/share \
61 --includedir=/usr
/include \
62 --infodir=/usr
/share
/info \
64 --libexecdir
=/usr
/lib \
65 --localstatedir
=/var \
66 --mandir=/usr
/share
/man \
69 $(DISABLE_LARGEFILE
) \
74 --enable-kernel-module \
78 --disable-auto-modprobe \
79 --with-kernel
="$(LINUX_DIR)" \
85 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
86 ARCH
="$(LINUX_KARCH)" \
87 CROSS_COMPILE
="$(TARGET_CROSS)" \
88 DESTDIR
="$(PKG_INSTALL_DIR)" \
92 define Build
/InstallDev
93 mkdir
-p
$(STAGING_DIR
)/usr
/include
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ntfs-3g
$(STAGING_DIR
)/usr
/include/
95 mkdir
-p
$(STAGING_DIR
)/usr
/lib
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
99 define Build
/UninstallDev
100 rm -rf
$(STAGING_DIR
)/usr
/include/ntfs-3g \
101 $(STAGING_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*}
104 define Package
/ntfs-3g
/install
105 $(INSTALL_DIR
) $(1)/usr
/bin
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ntfs-3g
$(1)/usr
/bin
/
107 $(INSTALL_DIR
) $(1)/usr
/lib
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.so.
* $(1)/usr
/lib
/
111 $(eval
$(call BuildPackage
,ntfs-3g
))