sorry, last commit had a bug
[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 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ntfs-3g
13 PKG_VERSION:=0.20070207-RC1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=http://www.ntfs-3g.org/
18 PKG_MD5SUM:=7c8c7a1338a0d36e315b665422e04c46
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 PKG_BUILD_DEPENDS:=libfuse
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/ntfs-3g
29 TITLE:=NTFS-3G
30 DEPENDS:=+libfuse +fuse-utils
31 SECTION:=utils
32 CATEGORY:=Utilities
33 DESCRIPTION:=\
34 Third generation Read/Write NTFS driver
35 URL:=http://www.ntfs-3g.org
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
40 touch configure.in ; \
41 touch aclocal.m4 ; \
42 touch Makefile.in ; \
43 touch include/config.h.in ; \
44 touch configure ; \
45 $(TARGET_CONFIGURE_OPTS) \
46 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
47 PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
48 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
49 CFLAGS="$(TARGET_CFLAGS)" \
50 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
51 ./configure \
52 --target=$(GNU_TARGET_NAME) \
53 --host=$(GNU_TARGET_NAME) \
54 --build=$(GNU_HOST_NAME) \
55 --program-prefix="" \
56 --program-suffix="" \
57 --prefix=/usr \
58 --exec-prefix=/usr \
59 --bindir=/usr/bin \
60 --datadir=/usr/share \
61 --includedir=/usr/include \
62 --infodir=/usr/share/info \
63 --libdir=/usr/lib \
64 --libexecdir=/usr/lib \
65 --localstatedir=/var \
66 --mandir=/usr/share/man \
67 --sbindir=/usr/sbin \
68 --sysconfdir=/etc \
69 $(DISABLE_LARGEFILE) \
70 $(DISABLE_NLS) \
71 --enable-shared \
72 --enable-static \
73 --disable-rpath \
74 --enable-kernel-module \
75 --enable-lib \
76 --enable-util \
77 --disable-example \
78 --disable-auto-modprobe \
79 --with-kernel="$(LINUX_DIR)" \
80 --disable-mtab \
81 );
82 endef
83
84 define Build/Compile
85 $(MAKE) -C $(PKG_BUILD_DIR) \
86 ARCH="$(LINUX_KARCH)" \
87 CROSS_COMPILE="$(TARGET_CROSS)" \
88 DESTDIR="$(PKG_INSTALL_DIR)" \
89 all install
90 endef
91
92 define Build/InstallDev
93 mkdir -p $(STAGING_DIR)/usr/include
94 $(CP) $(PKG_INSTALL_DIR)/usr/include/ntfs-3g $(STAGING_DIR)/usr/include/
95 mkdir -p $(STAGING_DIR)/usr/lib
96 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.{a,so*} $(STAGING_DIR)/usr/lib/
97 endef
98
99 define Build/UninstallDev
100 rm -rf $(STAGING_DIR)/usr/include/ntfs-3g \
101 $(STAGING_DIR)/usr/lib/libntfs-3g.{a,so*}
102 endef
103
104 define Package/ntfs-3g/install
105 $(INSTALL_DIR) $(1)/usr/bin
106 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ntfs-3g $(1)/usr/bin/
107 $(INSTALL_DIR) $(1)/usr/lib
108 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libntfs-3g.so.* $(1)/usr/lib/
109 endef
110
111 $(eval $(call BuildPackage,ntfs-3g))
This page took 0.042205 seconds and 5 git commands to generate.