636056e97cc972994eb02002395d821917039865
[openwrt.git] / openwrt / package / fuse / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := fuse
6 PKG_VERSION := 2.2.1
7 PKG_RELEASE := 1
8 PKG_MD5SUM := 250d89b9c7b6ecf531df60c67f75737d
9
10 PKG_SOURCE_SITE := @SF/fuse
11 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_CAT := zcat
13 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
15
16 I_KMOD_FUSE := $(PACKAGE_DIR)/kmod-fuse_$(LINUX_VERSION)+$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 I_LIBFUSE := $(PACKAGE_DIR)/libfuse_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
18 I_FUSE_UTILS := $(PACKAGE_DIR)/fuse-utils_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
19
20
21 $(DL_DIR)/$(PKG_SOURCE_FILE):
22 mkdir -p $(DL_DIR)
23 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
24
25 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
26 mkdir -p $(TOOL_BUILD_DIR)
27 rm -rf $(PKG_BUILD_DIR)
28 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
29 $(PATCH) $(PKG_BUILD_DIR) ./patches
30 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
31 find $(PKG_BUILD_DIR) -name CVS | xargs rm -rf
32 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
33 touch $(PKG_BUILD_DIR)/ipkg/rules
34
35 $(I_KMOD_FUSE) $(I_LIBFUSE) $(I_FUSE_UTILS): $(PKG_BUILD_DIR)/ipkg/rules
36 cd $(PKG_BUILD_DIR); \
37 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
38 ./ipkg/rules package
39
40 $(IPKG_STATE_DIR)/info/kmod-fuse.list: $(I_KMOD_FUSE)
41 $(IPKG) install $(I_KMOD_FUSE)
42
43 $(IPKG_STATE_DIR)/info/libfuse.list: $(I_LIBFUSE)
44 $(IPKG) install $(I_LIBFUSE)
45
46 $(IPKG_STATE_DIR)/info/fuse-utils.list: $(I_FUSE_UTILS)
47 $(IPKG) install $(I_FUSE_UTILS)
48
49 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
50 prepare: $(PKG_BUILD_DIR)/ipkg/rules
51 compile: $(I_KMOD_FUSE) $(I_FUSE_UTILS)
52 install: $(IPKG_STATE_DIR)/info/kmod-fuse.list $(IPKG_STATE_DIR)/info/libfuse.list $(IPKG_STATE_DIR)/info/fuse-utils.list
53
54 clean:
55 rm -rf $(PKG_BUILD_DIR)
56 rm -f $(I_KMOD_FUSE) $(I_LIBFUSE) $(I_FUSE_UTILS)
57
This page took 0.053547 seconds and 3 git commands to generate.