[package] fuse: remove now redundant dependency on +USE_EGLIBC:librt
[openwrt.git] / package / fuse / Makefile
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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=fuse
12 PKG_VERSION:=2.9.0
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=894ee11674f89a915ae87524aed55bc4
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fuse/Default
24   TITLE:=FUSE
25   URL:=http://fuse.sourceforge.net/
26 endef
27
28 define Package/fuse/Default/description
29  FUSE (Filesystem in UserSpacE)
30 endef
31
32 define Package/fuse-utils
33 $(call Package/fuse/Default)
34   SECTION:=utils
35   CATEGORY:=Utilities
36   DEPENDS:=+libfuse
37   TITLE+= (utilities)
38   SUBMENU:=Filesystem
39 endef
40
41 define Package/fuse-utils/description
42 $(call Package/fuse/Default/description)
43  This package contains the FUSE utilities.
44  - fusermount
45  - ulockmgr_server
46 endef
47
48 define Package/libfuse
49 $(call Package/fuse/Default)
50   SECTION:=libs
51   CATEGORY:=Libraries
52   TITLE+= (library)
53   DEPENDS:=+kmod-fuse +libpthread
54   SUBMENU:=Filesystem
55 endef
56
57 define 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
62 endef
63
64 # generic args
65 CONFIGURE_ARGS += \
66         --enable-shared \
67         --enable-static \
68         --disable-rpath \
69         --disable-example \
70         --disable-mtab
71
72 # generic package uses lib & utils
73 CONFIGURE_ARGS += --enable-lib --enable-util
74
75 define 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"
86 endef
87
88 define 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"
94 endef
95
96 define 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"
101 endef
102
103 define Package/kmod-fuse/install
104         @echo "--> Package/kmod-fuse/install enter/leave"
105 endef
106
107 $(eval $(call BuildPackage,fuse-utils))
108 $(eval $(call BuildPackage,libfuse))