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