don't add robocfg by default - not necessary anymore
[openwrt.git] / package / fuse / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=fuse
6 PKG_VERSION:=2.4.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=553bd9c5a4f3cd27f3e2b93844711e4c
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,LIBFUSE,libfuse,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,FUSE_UTILS,fuse-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); \
24 rm -rf config.{cache,status} ; \
25 touch configure.in ; \
26 touch aclocal.m4 ; \
27 touch Makefile.in ; \
28 touch include/config.h.in ; \
29 touch configure ; \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS)" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --enable-shared \
53 --enable-static \
54 --disable-rpath \
55 --disable-kernel-module \
56 --enable-lib \
57 --enable-util \
58 --disable-example \
59 --disable-auto-modprobe \
60 --with-kernel=$(LINUX_DIR) \
61 --disable-mtab \
62 );
63 touch $@
64
65 $(PKG_BUILD_DIR)/.built:
66 rm -rf $(PKG_INSTALL_DIR)
67 mkdir -p $(PKG_INSTALL_DIR)
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 touch $@
72
73 $(IPKG_LIBFUSE):
74 mkdir -p $(IDIR_LIBFUSE)/usr/lib
75 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(IDIR_LIBFUSE)/usr/lib/
76 $(RSTRIP) $(IDIR_LIBFUSE)
77 $(IPKG_BUILD) $(IDIR_LIBFUSE) $(PACKAGE_DIR)
78
79 $(IPKG_FUSE_UTILS):
80 mkdir -p $(IDIR_FUSE_UTILS)/usr/bin
81 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/fusermount $(IDIR_FUSE_UTILS)/usr/bin/
82 $(RSTRIP) $(IDIR_FUSE_UTILS)
83 $(IPKG_BUILD) $(IDIR_FUSE_UTILS) $(PACKAGE_DIR)
84
85 $(STAGING_DIR)/usr/lib/libfuse.so: $(PKG_BUILD_DIR)/.built
86 mkdir -p $(STAGING_DIR)/usr/include
87 cp -fpR $(PKG_INSTALL_DIR)/usr/include/fuse $(STAGING_DIR)/usr/include/
88 cp -fpR $(PKG_INSTALL_DIR)/usr/include/fuse.h $(STAGING_DIR)/usr/include/
89 mkdir -p $(STAGING_DIR)/usr/lib
90 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.a $(STAGING_DIR)/usr/lib/
91 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.so* $(STAGING_DIR)/usr/lib/
92 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
93 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/
94 $(SED) 's,-I$${includedir}/fuse,,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
95 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
96
97 install-dev: $(STAGING_DIR)/usr/lib/libfuse.so
98
99 uninstall-dev:
100 rm -rf \
101 $(STAGING_DIR)/usr/include/fuse \
102 $(STAGING_DIR)/usr/include/fuse.h \
103 $(STAGING_DIR)/usr/lib/libfuse.a \
104 $(STAGING_DIR)/usr/lib/libfuse.so* \
105 $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc \
106
107 compile-targets: install-dev
108 clean-targets: uninstall-dev
This page took 0.045757 seconds and 5 git commands to generate.