[package] broadcom-wl: properly detach nas by using start-stop-daemon to launch it
[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:=3
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 $(INSTALL_DIR) $(1)/etc/init.d
52 # symlinks /dev/misc/fuse to /dev/fuse on startup
53 $(INSTALL_BIN) ./files/fuse24.init $(1)/etc/init.d/fuse24
54 endef
55
56 define Build/Configure
57 (cd $(PKG_BUILD_DIR); \
58 rm -rf config.{cache,status} ; \
59 touch configure.in ; \
60 touch aclocal.m4 ; \
61 touch Makefile.in ; \
62 touch include/config.h.in ; \
63 touch configure ; \
64 $(TARGET_CONFIGURE_OPTS) \
65 CFLAGS="$(TARGET_CFLAGS)" \
66 ./configure \
67 --target=$(GNU_TARGET_NAME) \
68 --host=$(GNU_TARGET_NAME) \
69 --build=$(GNU_HOST_NAME) \
70 --program-prefix="" \
71 --program-suffix="" \
72 --prefix=/usr \
73 --exec-prefix=/usr \
74 --bindir=/usr/bin \
75 --datadir=/usr/share \
76 --includedir=/usr/include \
77 --infodir=/usr/share/info \
78 --libdir=/usr/lib \
79 --libexecdir=/usr/lib \
80 --localstatedir=/var \
81 --mandir=/usr/share/man \
82 --sbindir=/usr/sbin \
83 --sysconfdir=/etc \
84 $(DISABLE_LARGEFILE) \
85 $(DISABLE_NLS) \
86 --enable-shared \
87 --enable-static \
88 --disable-rpath \
89 --enable-kernel-module \
90 --disable-example \
91 --disable-auto-modprobe \
92 --with-kernel=$(LINUX_DIR) \
93 --disable-mtab \
94 --disable-lib \
95 --disable-util \
96 );
97 endef
98
99 define Build/Compile
100 rm -rf $(PKG_INSTALL_DIR)
101 mkdir -p $(PKG_INSTALL_DIR)
102 $(MAKE) -C $(PKG_BUILD_DIR) \
103 ARCH="$(LINUX_KARCH)" \
104 CROSS_COMPILE="$(TARGET_CROSS)" \
105 DESTDIR="$(PKG_INSTALL_DIR)" \
106 all install
107 endef
108
109 define Build/InstallDev
110 mkdir -p $(1)/usr/include
111 $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(1)/usr/include/
112 mkdir -p $(1)/usr/lib/pkgconfig
113 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
114 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
115 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
116 endef
117
118 $(eval $(call KernelPackage,fuse24))
This page took 0.04641 seconds and 5 git commands to generate.