use the cross-compiler to build additional packages
[openwrt.git] / target / linux / package / fuse / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=fuse
7 PKG_VERSION:=2.4.1
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=553bd9c5a4f3cd27f3e2b93844711e4c
10
11 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 ifeq ($(KERNEL_DIR),)
19 KERNEL_DIR:=$(LINUX_DIR)
20 endif
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,KMOD_FUSE,kmod-fuse,$(LINUX_VERSION)$(BOARD)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
25
26 $(PKG_BUILD_DIR)/.configured:
27 (cd $(PKG_BUILD_DIR); \
28 rm -rf config.{cache,status} ; \
29 touch configure.in ; \
30 touch aclocal.m4 ; \
31 touch Makefile.in ; \
32 touch include/config.h.in ; \
33 touch configure ; \
34 $(TARGET_CONFIGURE_OPTS) \
35 ./configure \
36 --target=$(GNU_TARGET_NAME) \
37 --host=$(GNU_TARGET_NAME) \
38 --build=$(GNU_HOST_NAME) \
39 --program-prefix="" \
40 --program-suffix="" \
41 --prefix=/usr \
42 --exec-prefix=/usr \
43 --bindir=/usr/bin \
44 --datadir=/usr/share \
45 --includedir=/usr/include \
46 --infodir=/usr/share/info \
47 --libdir=/usr/lib \
48 --libexecdir=/usr/lib \
49 --localstatedir=/var \
50 --mandir=/usr/share/man \
51 --sbindir=/usr/sbin \
52 --sysconfdir=/etc \
53 $(DISABLE_LARGEFILE) \
54 $(DISABLE_NLS) \
55 --enable-shared \
56 --enable-static \
57 --disable-rpath \
58 --enable-kernel-module \
59 --disable-lib \
60 --disable-util \
61 --disable-example \
62 --disable-auto-modprobe \
63 --with-kernel=$(KERNEL_DIR) \
64 --disable-mtab \
65 );
66 touch $@
67
68 $(PKG_BUILD_DIR)/.built:
69 mkdir -p $(PKG_INSTALL_DIR)
70 $(MAKE) -C $(PKG_BUILD_DIR) \
71 ARCH="$(LINUX_KARCH)" \
72 CROSS_COMPILE="$(TARGET_CROSS)" \
73 PATH="$(TARGET_PATH)" \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
75 SUBDIRS="kernel" \
76 all install
77 touch $@
78
79 $(IPKG_KMOD_FUSE):
80 mkdir -p $(IDIR_KMOD_FUSE)/lib/modules/$(LINUX_VERSION)
81 cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \
82 $(IDIR_KMOD_FUSE)/lib/modules/$(LINUX_VERSION)/
83 $(IPKG_BUILD) $(IDIR_KMOD_FUSE) $(PACKAGE_DIR)
84
This page took 0.047879 seconds and 5 git commands to generate.