3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=250d89b9c7b6ecf531df60c67f75737d
10 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,KMOD_FUSE
,kmod-fuse
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,LIBFUSE
,libfuse
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,FUSE_UTILS
,fuse-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); \
25 rm -rf config.
{cache
,status
} ; \
26 touch configure.in
; \
29 touch
include/config.h.in
; \
31 $(TARGET_CONFIGURE_OPTS
) \
32 CFLAGS
="$(TARGET_CFLAGS)" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib
/locate \
47 --localstatedir
=/var
/lib \
48 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
55 --enable-kernel-module \
59 --disable-auto-modprobe \
60 --with-kernel
=$(LINUX_DIR
) \
62 touch
$(PKG_BUILD_DIR
)/.configured
64 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
65 $(MAKE
) -C
$(PKG_BUILD_DIR
)
66 touch
$(PKG_BUILD_DIR
)/.built
68 $(PKG_BUILD_DIR
)/.installed
: $(PKG_BUILD_DIR
)/.built
69 mkdir
-p
$(PKG_INSTALL_DIR
)
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 touch
$(PKG_BUILD_DIR
)/.installed
75 $(IPKG_KMOD_FUSE
): $(IDIR_KMOD_FUSE
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
76 mkdir
-p
$(IDIR_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)
77 cp
-fpR
$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.o \
78 $(IDIR_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)/
79 mkdir
-p
$(PACKAGE_DIR
)
80 $(IPKG_BUILD
) $(IDIR_KMOD_FUSE
) $(PACKAGE_DIR
)
82 $(IPKG_LIBFUSE
): $(IDIR_LIBFUSE
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
83 mkdir
-p
$(IDIR_LIBFUSE
)/usr
/lib
84 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(IDIR_LIBFUSE
)/usr
/lib
/
85 chmod
0644 $(IDIR_LIBFUSE
)/usr
/lib
/lib
*.so
*
86 $(RSTRIP
) $(IDIR_LIBFUSE
)
87 mkdir
-p
$(PACKAGE_DIR
)
88 $(IPKG_BUILD
) $(IDIR_LIBFUSE
) $(PACKAGE_DIR
)
90 $(IPKG_FUSE_UTILS
): $(IDIR_FUSE_UTILS
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
91 mkdir
-p
$(IDIR_FUSE_UTILS
)/usr
/bin
92 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/fusermount
$(IDIR_FUSE_UTILS
)/usr
/bin
/
93 $(RSTRIP
) $(IDIR_FUSE_UTILS
)
94 mkdir
-p
$(PACKAGE_DIR
)
95 $(IPKG_BUILD
) $(IDIR_FUSE_UTILS
) $(PACKAGE_DIR
)
97 $(STAGING_DIR
)/usr
/lib
/libfuse.so
: $(PKG_BUILD_DIR
)/.installed
98 mkdir
-p
$(STAGING_DIR
)/usr
/include
99 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/fuse
* $(STAGING_DIR
)/usr
/include/
100 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
101 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
102 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
104 install-dev
: $(STAGING_DIR
)/usr
/lib
/libfuse.so
107 rm -rf
$(STAGING_DIR
)/usr
/include/fuse
*
108 rm -rf
$(STAGING_DIR
)/usr
/lib
/libfuse.
{a
,so
*}
109 rm -rf
$(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc