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