Root/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
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_LICENSE:=LGPLv2.1 GPLv2
20PKG_LICENSE_FILES:=COPYING.LIB COPYING
21
22PKG_INSTALL:=1
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/fuse/Default
27  TITLE:=FUSE
28  URL:=http://fuse.sourceforge.net/
29endef
30
31define Package/fuse/Default/description
32 FUSE (Filesystem in UserSpacE)
33endef
34
35define Package/fuse-utils
36$(call Package/fuse/Default)
37  SECTION:=utils
38  CATEGORY:=Utilities
39  DEPENDS:=+libfuse
40  TITLE+= (utilities)
41  SUBMENU:=Filesystem
42endef
43
44define Package/fuse-utils/description
45$(call Package/fuse/Default/description)
46 This package contains the FUSE utilities.
47 - fusermount
48 - ulockmgr_server
49endef
50
51define Package/libfuse
52$(call Package/fuse/Default)
53  SECTION:=libs
54  CATEGORY:=Libraries
55  TITLE+= (library)
56  DEPENDS:=+kmod-fuse +libpthread
57  SUBMENU:=Filesystem
58endef
59
60define Package/libfuse/description
61$(call Package/fuse/Default/description)
62 This package contains the FUSE shared libraries, needed by other programs.
63 - libfuse
64 - libulockmgr
65endef
66
67# generic args
68CONFIGURE_ARGS += \
69    --enable-shared \
70    --enable-static \
71    --disable-rpath \
72    --disable-example \
73    --disable-mtab
74
75# generic package uses lib & utils
76CONFIGURE_ARGS += --enable-lib --enable-util
77
78define Build/InstallDev
79    @echo "--> Build/InstallDev enter"
80    mkdir -p $(1)/usr/include
81    $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,*.h} $(1)/usr/include/
82    mkdir -p $(1)/usr/lib
83    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
84    mkdir -p $(1)/usr/lib/pkgconfig
85    $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
86    $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
87    $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
88    @echo "--> Build/InstallDev leave"
89endef
90
91define Package/fuse-utils/install
92    @echo "--> Package/fuse-utils/install enter"
93    $(INSTALL_DIR) $(1)/usr/bin
94    # use cp and keep fusermount sticky bit
95    $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f -exec $(CP) -a {} $(1)/usr/bin/ \;
96    @echo "--> Package/fuse-utils/install leave"
97endef
98
99define Package/libfuse/install
100    @echo "--> Package/libfuse/install enter"
101    $(INSTALL_DIR) $(1)/usr/lib
102    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
103    @echo "--> Package/libfuse/install leave"
104endef
105
106define Package/kmod-fuse/install
107    @echo "--> Package/kmod-fuse/install enter/leave"
108endef
109
110$(eval $(call BuildPackage,fuse-utils))
111$(eval $(call BuildPackage,libfuse))
112

Archive Download this file



interactive