- bump version to 2010.3.6 for uClibc 0.9.30.2+
[openwrt/svn-archive/archive.git] / utils / ntfs-3g / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ntfs-3g
11 PKG_RELEASE:=3
12
13 PKG_UCLIBC_VERSION:=$(call qstrip,$(CONFIG_UCLIBC_VERSION))
14 ifneq (,$(or $(findstring !0.9.29,!$(PKG_UCLIBC_VERSION)),$(findstring !0.9.30.1!,!$(PKG_UCLIBC_VERSION)!) ))
15 PKG_VERSION:=2010.1.16
16 else
17 PKG_VERSION:=2010.3.6
18 endif
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
21 PKG_SOURCE_URL:=http://www.tuxera.com/opensource/
22
23 PKG_MD5SUM_2010.1.16:=e104c914e8d7d29ee83e63d46afbba25
24 PKG_MD5SUM_2010.3.6:=12ce21aa044c6068a4df6e8cbd3c5cfa
25 PKG_MD5SUM=$(PKG_MD5SUM_$(PKG_VERSION))
26
27 PKG_FIXUP:=libtool
28 PKG_INSTALL:=1
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/ntfs-3g/common
33 SECTION:=utils
34 CATEGORY:=Utilities
35 URL:=http://www.tuxera.com
36 SUBMENU:=Filesystem
37 TITLE:=Stable Read/Write NTFS Driver
38 MAINTAINER:=Bud <wrt_buddhay@gmx.net>
39 endef
40
41 define Package/ntfs-3g
42 $(call Package/ntfs-3g/common)
43 DEPENDS:= +kmod-fuse +PACKAGE_NTFS-3G_USE_LIBFUSE:libfuse
44 DEPENDS+= +libpthread
45 endef
46
47 define Package/ntfs-3g/description
48 Ntfs-3g is a NTFS driver, which can create, remove, rename,
49 move files, directories, hard links, and streams. It can read
50 and write files, including streams and sparse files. It can
51 handle special files like symbolic links, devices, and FIFOs.
52 Moreover it can also read transparently compressed files.
53
54 Contains:
55 - ntfs-3g
56 - ntfs-3g.probe
57
58 endef
59
60 define Package/ntfs-3g/config
61 config PACKAGE_NTFS-3G_USE_LIBFUSE
62 bool "use external FUSE library (package libfuse)"
63 depends PACKAGE_ntfs-3g
64 ---help---
65 Ntfs-3g by default uses a minimalized lite version of FUSE.
66 If libfuse is part of your filesystem anyway (because of sshfs, owfs
67 etc.) it makes sense to activate this option and save some kilobytes
68 of space.
69 endef
70
71 define Package/ntfs-3g-utils
72 $(call Package/ntfs-3g/common)
73 TITLE:=ntfs-3g utilities (ntfs-3g.secaudit, ntfs-3g.usermap)
74 DEFAULT:=n
75 DEPENDS+= +ntfs-3g
76 endef
77
78 define Package/ntfs-3g-utils/description
79 Additional ntfs-3g utilities. Not included by default for size
80 considerations. All binaries except ntfs-3g, ntfs-3g.probe.
81
82 Currently:
83 - ntfs-3g.secaudit
84 - ntfs-3g.usermap
85
86 endef
87
88 CONFIGURE_ARGS += \
89 --enable-shared \
90 --enable-static
91
92 # insert config with external libfuse
93 ifdef CONFIG_PACKAGE_NTFS-3G_USE_LIBFUSE
94 CONFIGURE_ARGS += --with-fuse=external
95 PKG_RELEASE:=$(PKG_RELEASE)-fuseext
96 else
97 CONFIGURE_ARGS += --with-fuse=internal
98 TARGET_CPPFLAGS:=-I../include/fuse-lite $(TARGET_CPPFLAGS)
99 PKG_RELEASE:=$(PKG_RELEASE)-fuseint
100 endif
101
102 define Build/InstallDev
103 $(INSTALL_DIR) $(1)/usr/include
104 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
105 $(INSTALL_DIR) $(1)/usr/lib
106 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(1)/usr/lib/
107 endef
108
109 define Package/ntfs-3g/install
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g{,.probe} $(1)/usr/bin/
112 $(INSTALL_DIR) $(1)/usr/lib
113 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
114 endef
115
116 define Package/ntfs-3g-utils/install
117 $(INSTALL_DIR) $(1)/usr/bin
118 $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -name ntfs-3g.probe ! -name ntfs-3g -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \;
119 endef
120
121 $(eval $(call BuildPackage,ntfs-3g))
122 $(eval $(call BuildPackage,ntfs-3g-utils))
123