source: trunk/package/fuse/Makefile @ 33476

Last change on this file since 33476 was 33476, checked in by florian, 4 years ago

[package] fuse: Add librt to fuse to build with eglibc

Signed-off-by: xxiao <xxiao@…>

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=fuse
12PKG_VERSION:=2.9.0
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17PKG_MD5SUM:=894ee11674f89a915ae87524aed55bc4
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/fuse/Default
24  TITLE:=FUSE
25  URL:=http://fuse.sourceforge.net/
26endef
27
28define Package/fuse/Default/description
29 FUSE (Filesystem in UserSpacE)
30endef
31
32define Package/fuse-utils
33$(call Package/fuse/Default)
34  SECTION:=utils
35  CATEGORY:=Utilities
36  DEPENDS:=+libfuse
37  TITLE+= (utilities)
38  SUBMENU:=Filesystem
39endef
40
41define Package/fuse-utils/description
42$(call Package/fuse/Default/description)
43 This package contains the FUSE utilities.
44 - fusermount
45 - ulockmgr_server
46endef
47
48define Package/libfuse
49$(call Package/fuse/Default)
50  SECTION:=libs
51  CATEGORY:=Libraries
52  TITLE+= (library)
53  DEPENDS:=+kmod-fuse +libpthread +USE_EGLIBC:librt
54  SUBMENU:=Filesystem
55endef
56
57define Package/libfuse/description
58$(call Package/fuse/Default/description)
59 This package contains the FUSE shared libraries, needed by other programs.
60 - libfuse
61 - libulockmgr
62endef
63
64# generic args
65CONFIGURE_ARGS += \
66        --enable-shared \
67        --enable-static \
68        --disable-rpath \
69        --disable-example \
70        --disable-mtab
71
72# generic package uses lib & utils
73CONFIGURE_ARGS += --enable-lib --enable-util
74
75define Build/InstallDev
76        @echo "--> Build/InstallDev enter"
77        mkdir -p $(1)/usr/include
78        $(CP)   $(PKG_INSTALL_DIR)/usr/include/{fuse,*.h} $(1)/usr/include/
79        mkdir -p $(1)/usr/lib
80        $(CP)   $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
81        mkdir -p $(1)/usr/lib/pkgconfig
82        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
83        $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
84        $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
85        @echo "--> Build/InstallDev leave"
86endef
87
88define Package/fuse-utils/install
89        @echo "--> Package/fuse-utils/install enter"
90        $(INSTALL_DIR) $(1)/usr/bin
91        # use cp and keep fusermount sticky bit
92        $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f -exec $(CP) -a {} $(1)/usr/bin/ \;
93        @echo "--> Package/fuse-utils/install leave"
94endef
95
96define Package/libfuse/install
97        @echo "--> Package/libfuse/install enter"
98        $(INSTALL_DIR) $(1)/usr/lib
99        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
100        @echo "--> Package/libfuse/install leave"
101endef
102
103define Package/kmod-fuse/install
104        @echo "--> Package/kmod-fuse/install enter/leave"
105endef
106
107$(eval $(call BuildPackage,fuse-utils))
108$(eval $(call BuildPackage,libfuse))
Note: See TracBrowser for help on using the repository browser.