Added dependency libraries to ensure configure can find and use librrd.so
[openwrt/svn-archive/archive.git] / utils / ntfs-3g / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ntfs-3g
12 PKG_VERSION:=1.616
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.ntfs-3g.org/
17 PKG_MD5SUM:=fdb1c55f00263c962a52d0707a6d075e
18
19 PKG_BUILD_DEPENDS:=libfuse
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ntfs-3g
24 TITLE:=NTFS-3G
25 DEPENDS:=+libfuse +fuse-utils
26 SECTION:=utils
27 CATEGORY:=Utilities
28 URL:=http://www.ntfs-3g.org
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 , \
39 ac_cv_path_LDCONFIG=""
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 ARCH="$(LINUX_KARCH)" \
44 CROSS_COMPILE="$(TARGET_CROSS)" \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Build/InstallDev
50 mkdir -p $(STAGING_DIR)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(STAGING_DIR)/usr/include/
52 mkdir -p $(STAGING_DIR)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(STAGING_DIR)/usr/lib/
54 endef
55
56 define Build/UninstallDev
57 rm -rf $(STAGING_DIR)/usr/include/ntfs-3g \
58 $(STAGING_DIR)/usr/lib/libntfs-3g.{a,so*}
59 endef
60
61 define Package/ntfs-3g/install
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,ntfs-3g))
69
70 $(eval $(call RequireCommand,pkg-config, \
71 $(PKG_NAME) requires pkg-config. \
72 ))