madwifi: fix a crash in ff handling
[openwrt.git] / package / 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.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://www.ntfs-3g.org/
17 PKG_MD5SUM:=873a8de662849d129fc7c475ad3f5447
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 DESCRIPTION:=\
29 Third generation Read/Write NTFS driver
30 URL:=http://www.ntfs-3g.org
31 endef
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 ARCH="$(LINUX_KARCH)" \
40 CROSS_COMPILE="$(TARGET_CROSS)" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Build/InstallDev
46 mkdir -p $(STAGING_DIR)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(STAGING_DIR)/usr/include/
48 mkdir -p $(STAGING_DIR)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(STAGING_DIR)/usr/lib/
50 endef
51
52 define Build/UninstallDev
53 rm -rf $(STAGING_DIR)/usr/include/ntfs-3g \
54 $(STAGING_DIR)/usr/lib/libntfs-3g.{a,so*}
55 endef
56
57 define Package/ntfs-3g/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,ntfs-3g))
65 $(eval $(call RequireCommand,pkg-config, \
66 $(PKG_NAME) requires pkg-config. \
67 ))
This page took 0.056757 seconds and 5 git commands to generate.