9f49d183ee5d616b9d0aecee92fa75fc454e3cfa
[openwrt.git] / package / fuse24 / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=fuse
12
13 PKG_VERSION:=2.5.3
14 PKG_RELEASE:=2
15 PKG_MD5SUM:=9c7e8b6606b9f158ae20b8521ba2867c
16
17 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fuse24/Default
23 TITLE:=FUSE for kernel 2.4
24 DEPENDS:=@LINUX_2_4
25 URL:=http://fuse.sourceforge.net/
26 endef
27
28 define Package/fuse24/Default/description
29 FUSE for kernel 2.4 (Filesystem in UserSpacE) contains only the kernel module.
30 The libraries and utilities can be compiled from a recent FUSE version (package fuse).
31 For details see:
32 http://apps.sourceforge.net/mediawiki/fuse/index.php?title=FAQ#What_version_of_FUSE_do_I_need_to_use_FUSE_with_Linux_2.4.3F
33 endef
34
35 define KernelPackage/fuse24
36 $(call Package/fuse24/Default)
37 SUBMENU:=Filesystems
38 DEPENDS:=@LINUX_2_4
39 TITLE+= (kernel module)
40 FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,80,fuse)
42 endef
43
44 define KernelPackage/fuse24/description
45 $(call Package/fuse24/Default/description)
46 This package contains the FUSE kernel 2.4 module.
47 endef
48
49 define KernelPackage/fuse24/install
50 $(call $(Package/kmod-fuse24/install))
51 echo '[ ! -d /dev/misc ]&& umask 022 && mkdir /dev/misc ; mknod /dev/misc/fuse -m 0666 c 10 229' >> $(1)/CONTROL/postinst
52 endef
53
54 define Build/Configure
55 (cd $(PKG_BUILD_DIR); \
56 rm -rf config.{cache,status} ; \
57 touch configure.in ; \
58 touch aclocal.m4 ; \
59 touch Makefile.in ; \
60 touch include/config.h.in ; \
61 touch configure ; \
62 $(TARGET_CONFIGURE_OPTS) \
63 CFLAGS="$(TARGET_CFLAGS)" \
64 ./configure \
65 --target=$(GNU_TARGET_NAME) \
66 --host=$(GNU_TARGET_NAME) \
67 --build=$(GNU_HOST_NAME) \
68 --program-prefix="" \
69 --program-suffix="" \
70 --prefix=/usr \
71 --exec-prefix=/usr \
72 --bindir=/usr/bin \
73 --datadir=/usr/share \
74 --includedir=/usr/include \
75 --infodir=/usr/share/info \
76 --libdir=/usr/lib \
77 --libexecdir=/usr/lib \
78 --localstatedir=/var \
79 --mandir=/usr/share/man \
80 --sbindir=/usr/sbin \
81 --sysconfdir=/etc \
82 $(DISABLE_LARGEFILE) \
83 $(DISABLE_NLS) \
84 --enable-shared \
85 --enable-static \
86 --disable-rpath \
87 --enable-kernel-module \
88 --disable-example \
89 --disable-auto-modprobe \
90 --with-kernel=$(LINUX_DIR) \
91 --disable-mtab \
92 --disable-lib \
93 --disable-util \
94 );
95 endef
96
97 define Build/Compile
98 rm -rf $(PKG_INSTALL_DIR)
99 mkdir -p $(PKG_INSTALL_DIR)
100 $(MAKE) -C $(PKG_BUILD_DIR) \
101 ARCH="$(LINUX_KARCH)" \
102 CROSS_COMPILE="$(TARGET_CROSS)" \
103 DESTDIR="$(PKG_INSTALL_DIR)" \
104 all install
105 endef
106
107 define Build/InstallDev
108 mkdir -p $(1)/usr/include
109 $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(1)/usr/include/
110 mkdir -p $(1)/usr/lib/pkgconfig
111 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
112 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
113 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
114 #echo mknod /dev/fuse -m 0666 c 10 229 >> $(PKG_BUILD_DIR)/ipkg/kmod-fuse24/CONTROL/postinst
115 endef
116
117 $(eval $(call KernelPackage,fuse24))
This page took 0.040028 seconds and 3 git commands to generate.