busybox: convert netmsg and lock applet to "new style" applet definition
[openwrt/staging/yousong.git] / package / utils / fuse / Makefile
1 #
2 # Copyright (C) 2006-2015 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.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_HASH:=832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874
18
19 PKG_LICENSE:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILES:=COPYING.LIB COPYING
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/fuse/Default
27 TITLE:=FUSE
28 URL:=http://fuse.sourceforge.net/
29 endef
30
31 define Package/fuse/Default/description
32 FUSE (Filesystem in UserSpacE)
33 endef
34
35 define Package/fuse-utils
36 $(call Package/fuse/Default)
37 SECTION:=utils
38 CATEGORY:=Utilities
39 DEPENDS:=+libfuse
40 TITLE+= (utilities)
41 SUBMENU:=Filesystem
42 endef
43
44 define Package/fuse-utils/description
45 $(call Package/fuse/Default/description)
46 This package contains the FUSE utilities.
47 - fusermount
48 - ulockmgr_server
49 endef
50
51 define Package/libfuse
52 $(call Package/fuse/Default)
53 SECTION:=libs
54 CATEGORY:=Libraries
55 TITLE+= (library)
56 DEPENDS:=+kmod-fuse +libpthread
57 SUBMENU:=Filesystem
58 endef
59
60 define 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
65 endef
66
67 # generic args
68 CONFIGURE_ARGS += \
69 --enable-shared \
70 --enable-static \
71 --enable-lib \
72 --enable-util \
73 --disable-rpath \
74 --disable-example \
75 --disable-mtab
76
77 define Build/InstallDev
78 $(INSTALL_DIR) $(1)/usr/include
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
82 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
84 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
85 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
86 endef
87
88 define Package/fuse-utils/install
89 $(INSTALL_DIR) $(1)/sbin
90 $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
91 $(INSTALL_DIR) $(1)/usr/bin
92 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
93 endef
94
95 define Package/libfuse/install
96 $(INSTALL_DIR) $(1)/usr/lib
97 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
98 endef
99
100 $(eval $(call BuildPackage,fuse-utils))
101 $(eval $(call BuildPackage,libfuse))