ntfsprogs: add missing dependency on libgcrypt
[openwrt/svn-archive/archive.git] / utils / ntfsprogs / Makefile
1 #
2 # Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
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:=ntfsprogs
11 PKG_VERSION:=2.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/linux-ntfs
16 PKG_MD5SUM:=2c402b647bb7aeb1d3f8ce1cc354fd68
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ntfsprogs
24 SECTION:=utils
25 CATEGORY:=Utilities
26 SUBMENU:=Filesystem
27 TITLE:=Linux-NTFS
28 URL:=http://www.linux-ntfs.org/
29 DEPENDS:=+libgcrypt
30 MAINTAINER:=Gianluigi Tiesi <sherpya@netfarm.it>
31 endef
32
33 define Package/ntfsprogs/description
34 Tools for managing NTFS volumes from Linux
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-shared \
39 --enable-static \
40 --disable-crypto \
41 --disable-gnome-vfs \
42 --disable-ntfsmount
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.{la,a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/ntfsprogs/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.so.* $(1)/usr/lib/
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfsfix $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,ntfsprogs))