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