From 746fc4890b5702bc8517b933d1ce79e7cc830359 Mon Sep 17 00:00:00 2001 From: Luotao Fu Date: Thu, 12 Apr 2007 14:27:10 +0000 Subject: added fuse git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7095 33e552b5-05e3-0310-8538-816dae2090ed --- rules/fuse.make | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 rules/fuse.make (limited to 'rules/fuse.make') diff --git a/rules/fuse.make b/rules/fuse.make new file mode 100644 index 000000000..d09410913 --- /dev/null +++ b/rules/fuse.make @@ -0,0 +1,140 @@ +# -*-makefile-*- +# $Id: template 6655 2007-01-02 12:55:21Z rsc $ +# +# Copyright (C) 2007 by Luotao Fu +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_FUSE) += fuse + +# +# Paths and names +# +FUSE_VERSION := 2.6.3 +FUSE := fuse-$(FUSE_VERSION) +FUSE_SUFFIX := tar.gz +FUSE_URL := $(PTXCONF_SETUP_SFMIRROR)/fuse/$(FUSE).$(FUSE_SUFFIX) +FUSE_SOURCE := $(SRCDIR)/$(FUSE).$(FUSE_SUFFIX) +FUSE_DIR := $(BUILDDIR)/$(FUSE) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +fuse_get: $(STATEDIR)/fuse.get + +$(STATEDIR)/fuse.get: $(fuse_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(FUSE_SOURCE): + @$(call targetinfo, $@) + @$(call get, FUSE) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +fuse_extract: $(STATEDIR)/fuse.extract + +$(STATEDIR)/fuse.extract: $(fuse_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(FUSE_DIR)) + @$(call extract, FUSE) + @$(call patchin, FUSE) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +fuse_prepare: $(STATEDIR)/fuse.prepare + +FUSE_PATH := PATH=$(CROSS_PATH) +FUSE_ENV := $(CROSS_ENV) + +# +# autoconf +# +FUSE_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/fuse.prepare: $(fuse_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(FUSE_DIR)/config.cache) + cd $(FUSE_DIR) && \ + $(FUSE_PATH) $(FUSE_ENV) \ + ./configure $(FUSE_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +fuse_compile: $(STATEDIR)/fuse.compile + +$(STATEDIR)/fuse.compile: $(fuse_compile_deps_default) + @$(call targetinfo, $@) + cd $(FUSE_DIR) && $(FUSE_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +fuse_install: $(STATEDIR)/fuse.install + +$(STATEDIR)/fuse.install: $(fuse_install_deps_default) + @$(call targetinfo, $@) + @$(call install, FUSE) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +fuse_targetinstall: $(STATEDIR)/fuse.targetinstall + +$(STATEDIR)/fuse.targetinstall: $(fuse_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, fuse) + @$(call install_fixup, fuse,PACKAGE,fuse) + @$(call install_fixup, fuse,PRIORITY,optional) + @$(call install_fixup, fuse,VERSION,$(FUSE_VERSION)) + @$(call install_fixup, fuse,SECTION,base) + @$(call install_fixup, fuse,AUTHOR,"Robert Schwebel ") + @$(call install_fixup, fuse,DEPENDS,) + @$(call install_fixup, fuse,DESCRIPTION,missing) + + @$(call install_copy, fuse, 0, 0, 0755, $(FUSE_DIR)/lib/.libs/libfuse.so.2.6.3, /usr/lib/libfuse.so.2.6.3) + @$(call install_copy, fuse, 0, 0, 0755, $(FUSE_DIR)/lib/.libs/libulockmgr.so.1.0.1, /usr/lib/libulockmgr.so.1.0.1) + @$(call install_link, fuse, libfuse.so.2.6.3, /usr/lib/libfuse.so) + @$(call install_link, fuse, libfuse.so.2.6.3, /usr/lib/libfuse.so.2) + @$(call install_link, fuse, libulockmgr.so.1.0.1, /usr/lib/libulockmgr.so) + @$(call install_link, fuse, libulockmgr.so.1.0.1, /usr/lib/libulockmgr.so.1) + + @$(call install_copy, fuse, 0, 0, 0755, $(FUSE_DIR)/util/fusermount, /usr/bin/fusermount) + @$(call install_copy, fuse, 0, 0, 0755, $(FUSE_DIR)/util/ulockmgr_server, /usr/bin/ulockmgr_server) + + + @$(call install_finish, fuse) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +fuse_clean: + rm -rf $(STATEDIR)/fuse.* + rm -rf $(IMAGEDIR)/fuse_* + rm -rf $(FUSE_DIR) + +# vim: syntax=make -- cgit v1.2.3