3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0bee98df5b2a29841f75fc188975eabc
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
,LIBFUSE
,libfuse
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,FUSE_UTILS
,fuse-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); \
24 rm -rf config.
{cache
,status
} ; \
25 touch configure.in
; \
28 touch
include/config.h.in
; \
30 $(TARGET_CONFIGURE_OPTS
) \
31 CFLAGS
="$(TARGET_CFLAGS)" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
55 --disable-kernel-module \
59 --disable-auto-modprobe \
60 --with-kernel
=$(LINUX_DIR
) \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 mkdir
-p
$(IDIR_LIBFUSE
)/usr
/lib
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(IDIR_LIBFUSE
)/usr
/lib
/
75 $(RSTRIP
) $(IDIR_LIBFUSE
)
76 $(IPKG_BUILD
) $(IDIR_LIBFUSE
) $(PACKAGE_DIR
)
79 mkdir
-p
$(IDIR_FUSE_UTILS
)/usr
/bin
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/fusermount
$(IDIR_FUSE_UTILS
)/usr
/bin
/
81 $(RSTRIP
) $(IDIR_FUSE_UTILS
)
82 $(IPKG_BUILD
) $(IDIR_FUSE_UTILS
) $(PACKAGE_DIR
)
84 $(STAGING_DIR
)/usr
/lib
/libfuse.so
: $(PKG_BUILD_DIR
)/.built
85 mkdir
-p
$(STAGING_DIR
)/usr
/include
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/fuse
$(STAGING_DIR
)/usr
/include/
87 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/fuse.h
$(STAGING_DIR
)/usr
/include/
88 mkdir
-p
$(STAGING_DIR
)/usr
/lib
89 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.a
$(STAGING_DIR
)/usr
/lib
/
90 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so
* $(STAGING_DIR
)/usr
/lib
/
91 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
92 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
93 $(SED
) 's,-I$${includedir}/fuse,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc
94 $(SED
) 's,-L$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc
96 install-dev
: $(STAGING_DIR
)/usr
/lib
/libfuse.so
100 $(STAGING_DIR
)/usr
/include/fuse \
101 $(STAGING_DIR
)/usr
/include/fuse.h \
102 $(STAGING_DIR
)/usr
/lib
/libfuse.a \
103 $(STAGING_DIR
)/usr
/lib
/libfuse.so
* \
104 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc \