Fix wrong options passed to configure
[openwrt.git] / package / fuse / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=fuse
6 PKG_VERSION:=2.2.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=250d89b9c7b6ecf531df60c67f75737d
9
10 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
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)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); \
25 rm -rf config.{cache,status} ; \
26 touch configure.in ; \
27 touch aclocal.m4 ; \
28 touch Makefile.in ; \
29 touch include/config.h.in ; \
30 touch configure ; \
31 $(TARGET_CONFIGURE_OPTS) \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 $(DISABLE_LARGEFILE) \
52 $(DISABLE_NLS) \
53 --enable-shared \
54 --enable-static \
55 --enable-kernel-module \
56 --enable-lib \
57 --enable-util \
58 --disable-example \
59 --disable-auto-modprobe \
60 --with-kernel=$(LINUX_DIR) \
61 );
62 touch $@
63
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)" \
69 all install
70 touch $@
71
72 $(IPKG_KMOD_FUSE):
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)
77
78 $(IPKG_LIBFUSE):
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)
84
85 $(IPKG_FUSE_UTILS):
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)
90
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/
97
98 install-dev: $(STAGING_DIR)/usr/lib/libfuse.so
99
100 uninstall-dev:
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
104
105 install: install-dev
106 clean: uninstall-dev
This page took 0.050334 seconds and 5 git commands to generate.