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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
16 PKG_SOURCE_URL
:=http
://www.ntfs-3g.org
/
17 PKG_MD5SUM
:=fdb1c55f00263c962a52d0707a6d075e
19 PKG_BUILD_DEPENDS
:=libfuse
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ntfs-3g
25 DEPENDS
:=+libfuse
+fuse-utils
29 Third generation Read
/Write NTFS driver
30 URL
:=http
://www.ntfs-3g.org
37 ac_cv_path_LDCONFIG
=""
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 ARCH
="$(LINUX_KARCH)" \
42 CROSS_COMPILE
="$(TARGET_CROSS)" \
43 DESTDIR
="$(PKG_INSTALL_DIR)" \
47 define Build
/InstallDev
48 mkdir
-p
$(STAGING_DIR
)/usr
/include
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ntfs-3g
$(STAGING_DIR
)/usr
/include/
50 mkdir
-p
$(STAGING_DIR
)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
54 define Build
/UninstallDev
55 rm -rf
$(STAGING_DIR
)/usr
/include/ntfs-3g \
56 $(STAGING_DIR
)/usr
/lib
/libntfs-3g.
{a
,so
*}
59 define Package
/ntfs-3g
/install
60 $(INSTALL_DIR
) $(1)/usr
/bin
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ntfs-3g
$(1)/usr
/bin
/
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libntfs-3g.so.
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,ntfs-3g
))
67 $(eval
$(call RequireCommand
,pkg-config
, \
68 $(PKG_NAME
) requires pkg-config. \