3 ifneq ($(strip ${IPKG_RULES_INC}),)
4 include $(IPKG_RULES_INC
)
9 PKG_VERSION
:= $(shell cat .
/ipkg
/version
)
10 CURRENT_DIR
:= $(shell pwd
)
11 INSTALL_DIR ?
= $(CURRENT_DIR
)/ipkg-install
15 I_KMOD_FUSE
:= ipkg
/kmod-fuse
16 I_LIBFUSE
:= ipkg
/libfuse
17 I_LIBFUSE_DEV
:= ipkg
/libfuse-dev
18 I_FUSE_UTILS
:= ipkg
/fuse-utils
25 --enable-kernel-module \
29 --disable-auto-modprobe \
30 --with-kernel
=$(LINUX_DIR
) \
37 .stamp-configured
: $(BUILD_DEPS
)
42 touch
include/config.h.in
46 $(TARGET_CONFIGURE_OPTS
) \
47 CFLAGS
="$(TARGET_CFLAGS)" \
49 --target
=$(GNU_TARGET_NAME
) \
50 --host
=$(GNU_TARGET_NAME
) \
51 --build
=$(GNU_HOST_NAME
) \
57 --datadir=/usr
/share \
58 --includedir=/usr
/include \
59 --infodir=/usr
/share
/info \
61 --libexecdir
=/usr
/lib
/locate \
62 --localstatedir
=/var
/lib \
63 --mandir=/usr
/share
/man \
66 $(DISABLE_LARGEFILE
) \
70 touch .stamp-configured
73 .stamp-built
: .stamp-configured
80 $(INSTALL_DIR
)/usr
/bin
/fusermount
: .stamp-built
82 mkdir
-p
$(INSTALL_DIR
)
85 DESTDIR
="$(INSTALL_DIR)" \
88 rm -f
$(INSTALL_DIR
)/usr
/lib
/libfuse.la
91 configure
: .stamp-configured
97 install: $(INSTALL_DIR
)/usr
/bin
/fusermount
100 package
: $(INSTALL_DIR
)/usr
/bin
/fusermount
102 mkdir
-p
$(I_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)
103 cp
-fpR
$(INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.o \
104 $(I_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)/
105 $(TARGET_CROSS
)strip --remove-section
=.comment
--remove-section
=.note \
106 $(I_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)/*.o
108 mkdir
-p
$(I_LIBFUSE
)/usr
/lib
109 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(I_LIBFUSE
)/usr
/lib
/
110 $(STRIP
) $(I_LIBFUSE
)/usr
/lib
/*
112 mkdir
-p
$(I_LIBFUSE_DEV
)/usr
/include
113 cp
-fpR
$(INSTALL_DIR
)/usr
/include/fuse
* $(I_LIBFUSE_DEV
)/usr
/include/
114 mkdir
-p
$(I_LIBFUSE_DEV
)/usr
/lib
115 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/libfuse.
{a
,so
*} $(I_LIBFUSE_DEV
)/usr
/lib
/
116 mkdir
-p
$(I_LIBFUSE_DEV
)/usr
/lib
/pkgconfig
117 cp
-fpR
$(INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(I_LIBFUSE_DEV
)/usr
/lib
/pkgconfig
/
119 mkdir
-p
$(I_FUSE_UTILS
)/usr
/bin
120 cp
-fpR
$(INSTALL_DIR
)/usr
/bin
/fusermount
$(I_FUSE_UTILS
)/usr
/bin
/
121 $(STRIP
) $(I_FUSE_UTILS
)/usr
/bin
/*
123 chmod
0755 ipkg
/*/CONTROL
/
124 chmod
0644 ipkg
/*/CONTROL
/control
126 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
127 ifneq ($(strip $(PKG_VERSION
)),)
128 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
129 perl
-pi
-e
"s/^Vers.*:.*/Version: $(LINUX_VERSION)+$(PKG_VERSION)/g" $(I_KMOD_FUSE
)/CONTROL
/control
132 $(IPKG_BUILD
) $(I_KMOD_FUSE
) $(IPKG_TARGET_DIR
)
133 $(IPKG_BUILD
) $(I_LIBFUSE
) $(IPKG_TARGET_DIR
)
134 $(IPKG_BUILD
) $(I_LIBFUSE_DEV
) $(IPKG_TARGET_DIR
)
135 $(IPKG_BUILD
) $(I_FUSE_UTILS
) $(IPKG_TARGET_DIR
)
141 DESTDIR
="$(INSTALL_DIR)" \
153 @cat
$(I_KMOD_FUSE
)/CONTROL
/control
155 @cat
$(I_LIBFUSE
)/CONTROL
/control
157 @cat
$(I_LIBFUSE_DEV
)/CONTROL
/control
159 @cat
$(I_FUSE_UTILS
)/CONTROL
/control
163 .PHONY
: configure build
install package
clean control
This page took 0.062361 seconds and 5 git commands to generate.