packages/ntfsprogs: libgcrypt is only needed to make autoreconf happy, change to...
[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:=libtool
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 URL:=http://www.linux-ntfs.org/
31 MAINTAINER:=Gianluigi Tiesi <sherpya@netfarm.it>
32 endef
33
34 define Package/ntfsprogs/description
35 Tools for managing NTFS volumes from Linux
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static \
41 --disable-crypto \
42 --disable-gnome-vfs \
43 --disable-ntfsmount
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.{la,a,so*} $(1)/usr/lib/
50 endef
51
52 define Package/ntfsprogs/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs.so.* $(1)/usr/lib/
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfsfix $(1)/usr/bin/
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,ntfsprogs))