summaryrefslogtreecommitdiff
path: root/package/libfuse/libfuse.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libfuse/libfuse.mk')
-rw-r--r--package/libfuse/libfuse.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/libfuse/libfuse.mk b/package/libfuse/libfuse.mk
new file mode 100644
index 000000000..86e57ff9a
--- /dev/null
+++ b/package/libfuse/libfuse.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# libfuse
+#
+#############################################################
+
+LIBFUSE_VERSION = 2.8.6
+LIBFUSE_SOURCE = fuse-$(LIBFUSE_VERSION).tar.gz
+LIBFUSE_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/fuse/
+
+LIBFUSE_INSTALL_STAGING = YES
+LIBFUSE_CONF_OPT= --disable-nls \
+ --disable-example \
+ --disable-kernel-module \
+ --enable-lib \
+ --enable-util
+
+define LIBFUSE_INSTALL_TARGET_CMDS
+ cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
+ cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
+endef
+
+define LIBFUSE_CLEAN_CMDS
+ -$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) uninstall
+ -$(MAKE) -C $(@D) clean
+ rm -f $(TARGET_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/lib/libfuse.so*
+endef
+
+$(eval $(call AUTOTARGETS,package,libfuse))