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
:
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
:
65 $(MAKE
) -C
$(PKG_BUILD_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 touch
$(PKG_BUILD_DIR
)/.built
73 mkdir
-p
$(IDIR_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)
74 cp
-fpR
$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.o \
75 $(IDIR_KMOD_FUSE
)/lib
/modules
/$(LINUX_VERSION
)/
76 $(IPKG_BUILD
) $(IDIR_KMOD_FUSE
) $(PACKAGE_DIR
)
79 mkdir
-p
$(IDIR_LIBFUSE
)/usr
/lib
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(IDIR_LIBFUSE
)/usr
/lib
/
81 chmod
0644 $(IDIR_LIBFUSE
)/usr
/lib
/lib
*.so
*
82 $(RSTRIP
) $(IDIR_LIBFUSE
)
83 $(IPKG_BUILD
) $(IDIR_LIBFUSE
) $(PACKAGE_DIR
)
86 mkdir
-p
$(IDIR_FUSE_UTILS
)/usr
/bin
87 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/fusermount
$(IDIR_FUSE_UTILS
)/usr
/bin
/
88 $(RSTRIP
) $(IDIR_FUSE_UTILS
)
89 $(IPKG_BUILD
) $(IDIR_FUSE_UTILS
) $(PACKAGE_DIR
)
91 $(STAGING_DIR
)/usr
/lib
/libfuse.so
: $(PKG_BUILD_DIR
)/.built
92 mkdir
-p
$(STAGING_DIR
)/usr
/include
93 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/fuse
* $(STAGING_DIR
)/usr
/include/
94 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
95 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
98 install-dev
: $(STAGING_DIR
)/usr
/lib
/libfuse.so
101 rm -rf
$(STAGING_DIR
)/usr
/include/fuse
*
102 rm -rf
$(STAGING_DIR
)/usr
/lib
/libfuse.
{a
,so
*}
103 rm -rf
$(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc