2007-11-24 17:09:25 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libfuse
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-11-24 16:02:40 +01:00
|
|
|
LIBFUSE_VERSION:=2.8.1
|
2007-11-24 17:09:25 +01:00
|
|
|
LIBFUSE_SOURCE:=fuse-$(LIBFUSE_VERSION).tar.gz
|
2008-07-10 12:12:20 +02:00
|
|
|
LIBFUSE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/fuse/
|
2007-11-24 17:09:25 +01:00
|
|
|
LIBFUSE_DIR:=$(BUILD_DIR)/fuse-$(LIBFUSE_VERSION)
|
|
|
|
LIBFUSE_BINARY:=libfuse
|
|
|
|
$(DL_DIR)/$(LIBFUSE_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBFUSE_SITE),$(LIBFUSE_SOURCE))
|
2007-11-24 17:09:25 +01:00
|
|
|
|
|
|
|
$(LIBFUSE_DIR)/.source: $(DL_DIR)/$(LIBFUSE_SOURCE)
|
|
|
|
$(ZCAT) $(DL_DIR)/$(LIBFUSE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-07-10 12:12:15 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBFUSE_DIR) package/fuse/ \*.patch
|
2007-11-24 17:09:25 +01:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBFUSE_DIR)/.configured: $(LIBFUSE_DIR)/.source
|
|
|
|
(cd $(LIBFUSE_DIR); rm -rf config.cache ; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-11-24 17:09:25 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2008-07-10 12:12:07 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2008-07-11 15:43:56 +02:00
|
|
|
--program-prefix="" \
|
2007-11-24 17:09:25 +01:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-example \
|
2008-07-10 12:11:43 +02:00
|
|
|
--disable-kernel-module \
|
2007-11-24 17:09:25 +01:00
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
);
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(LIBFUSE_DIR)/.compiled: $(LIBFUSE_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LIBFUSE_DIR)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libfuse.so: $(LIBFUSE_DIR)/.compiled
|
2008-07-10 12:12:07 +02:00
|
|
|
$(MAKE) -C $(LIBFUSE_DIR) DESTDIR=$(STAGING_DIR)/ install
|
2007-11-24 17:09:25 +01:00
|
|
|
touch -c $@
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/libfuse.so: $(STAGING_DIR)/usr/lib/libfuse.so
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/bin
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
|
2008-07-10 12:11:47 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/bin/fusermount
|
2008-07-17 15:25:35 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfuse.so
|
2007-11-24 17:09:25 +01:00
|
|
|
touch -c $@
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
libfuse: $(TARGET_DIR)/usr/lib/libfuse.so
|
2007-11-24 17:09:25 +01:00
|
|
|
|
|
|
|
libfuse-source: $(DL_DIR)/$(LIBFUSE_SOURCE)
|
|
|
|
|
|
|
|
libfuse-clean:
|
|
|
|
-$(MAKE) -C $(LIBFUSE_DIR) DESTDIR=$(STAGING_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(LIBFUSE_DIR) clean
|
2008-07-10 12:11:51 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/lib/libfuse.so*
|
2007-11-24 17:09:25 +01:00
|
|
|
|
|
|
|
libfuse-dirclean:
|
|
|
|
rm -rf $(LIBFUSE_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
2007-11-24 17:09:25 +01:00
|
|
|
TARGETS+=libfuse
|
|
|
|
endif
|