packages: ntfsprogs: add missing dependency - libuuid
[openwrt/svn-archive/archive.git] / utils / ntfsprogs / Makefile
1 #
2 # Copyright (C) 2010-2011 OpenWrt.org
3 # Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ntfsprogs
12 PKG_VERSION:=2.0.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-ntfs
17 PKG_MD5SUM:=2c402b647bb7aeb1d3f8ce1cc354fd68
18
19 PKG_FIXUP:=autoreconf
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=libgcrypt
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ntfsprogs
26 SECTION:=utils
27 CATEGORY:=Utilities
28 SUBMENU:=Filesystem
29 TITLE:=Linux-NTFS
30 DEPENDS:=+libuuid
31 URL:=http://www.linux-ntfs.org/
32 MAINTAINER:=Gianluigi Tiesi <sherpya@netfarm.it>
33 endef
34
35 define Package/ntfsprogs/description
36 Tools for managing NTFS volumes from Linux
37 endef
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42 --with-uuid \
43 --disable-crypto \
44 --disable-gnome-vfs \
45 --disable-ntfsmount
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.{la,a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/ntfsprogs/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.so.* $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfsfix $(1)/usr/bin/
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
61 endef
62
63 $(eval $(call BuildPackage,ntfsprogs))