[package] update monit to 5.0.3 (#5284)
[openwrt/svn-archive/archive.git] / utils / ntfs-3g / Makefile
1 #
2 # Copyright (C) 2007-2008 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_VERSION:=1.2531
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.ntfs-3g.org/
16 PKG_MD5SUM:=69374cd09803c5fdbb5dabd1d704b9fe
17
18 PKG_BUILD_DEPENDS:=libfuse
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ntfs-3g
23 TITLE:=NTFS-3G
24 DEPENDS:=+libfuse +fuse-utils +libpthread
25 SECTION:=utils
26 CATEGORY:=Utilities
27 URL:=http://www.ntfs-3g.org
28 SUBMENU:=filesystem
29 endef
30
31 define Package/ntfs-3g/description
32 This package contains the third generation Read/Write NTFS driver
33 endef
34
35 CONFIGURE_ARGS += \
36 --enable-shared \
37 --enable-static \
38 --with-fuse=external \
39 , \
40 ac_cv_path_LDCONFIG=""
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 ARCH="$(LINUX_KARCH)" \
45 CROSS_COMPILE="$(TARGET_CROSS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/ntfs-3g/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,ntfs-3g))