block.mk: Added ata-ixp4xx-cf module support for tw5334 board.
[openwrt.git] / package / fuse / Makefile
1 #
2 # Copyright (C) 2006 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:=fuse
13 PKG_VERSION:=2.7.3
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
18 PKG_MD5SUM:=98563fc7b265b7479a3178181cbcf59a
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fuse/Default
23 TITLE:=FUSE
24 DEPENDS:=@LINUX_2_6
25 URL:=http://fuse.sourceforge.net/
26 endef
27
28 define Package/fuse/Default/description
29 FUSE (Filesystem in UserSpacE)
30 endef
31
32 define Package/fuse-utils
33 $(call Package/fuse/Default)
34 SECTION:=utils
35 CATEGORY:=Utilities
36 DEPENDS:=+libfuse +kmod-fuse @LINUX_2_6
37 TITLE+= (utilities)
38 SUBMENU:=disc
39 endef
40
41 define Package/fuse-utils/description
42 $(call Package/fuse/Default/description)
43 This package contains the FUSE utilities.
44 endef
45
46 define KernelPackage/fuse
47 $(call Package/fuse/Default)
48 SUBMENU:=Filesystems
49 DEPENDS:=@LINUX_2_6
50 TITLE+= (kernel module)
51 FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
52 AUTOLOAD:=$(call AutoLoad,80,fuse)
53 endef
54
55 define Kernel/Package/fuse/description
56 $(call Package/fuse/Default/description)
57 This package contains the FUSE kernel module.
58 endef
59
60 define Package/libfuse
61 $(call Package/fuse/Default)
62 SECTION:=libs
63 CATEGORY:=Libraries
64 DEPENDS:=@LINUX_2_6
65 TITLE+= (library)
66 SUBMENU:=disc
67 endef
68
69 define Package/libfuse/description
70 $(call Package/fuse/Default/description)
71 This package contains the FUSE shared library, needed by other programs.
72 endef
73
74 CONFIGURE_VARS += \
75 kernsrcver="$(LINUX_VERSION)"
76
77 CONFIGURE_ARGS += \
78 --enable-shared \
79 --enable-static \
80 --disable-rpath \
81 --enable-kernel-module \
82 --enable-lib \
83 --enable-util \
84 --disable-example \
85 --disable-auto-modprobe \
86 --with-kernel="$(LINUX_DIR)" \
87 --disable-mtab
88
89 define Build/Configure
90 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
91 touch configure.in ; \
92 touch aclocal.m4 ; \
93 touch Makefile.in ; \
94 touch include/config.h.in ; \
95 touch configure ; \
96 )
97 $(call Build/Configure/Default)
98 endef
99
100 define Build/Compile
101 $(MAKE) -C $(PKG_BUILD_DIR) \
102 ARCH="$(LINUX_KARCH)" \
103 CROSS_COMPILE="$(TARGET_CROSS)" \
104 DESTDIR="$(PKG_INSTALL_DIR)" \
105 AM_CFLAGS="$(TARGET_CFLAGS) -DDISABLE_COMPAT=1" \
106 EXTRA_DIST="" \
107 all install
108 endef
109
110 define Build/InstallDev
111 mkdir -p $(1)/usr/include
112 $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(1)/usr/include/
113 mkdir -p $(1)/usr/lib
114 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(1)/usr/lib/
115 mkdir -p $(1)/usr/lib/pkgconfig
116 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
117 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
118 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
119 endef
120
121 define Package/fuse-utils/install
122 $(INSTALL_DIR) $(1)/usr/bin
123 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
124 endef
125
126 define Package/libfuse/install
127 $(INSTALL_DIR) $(1)/usr/lib
128 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
129 endef
130
131 $(eval $(call BuildPackage,fuse-utils))
132 $(eval $(call BuildPackage,libfuse))
133 $(eval $(call KernelPackage,fuse))
This page took 0.052938 seconds and 5 git commands to generate.