unlock linux partition in mount_root
[openwrt.git] / obsolete-buildroot / make / fakeroot.mk
1 #############################################################
2 #
3 # fakeroot
4 #
5 #############################################################
6 FAKEROOT_SOURCE:=fakeroot_0.7.5.tar.gz
7 FAKEROOT_SITE:=http://ftp.debian.org/debian/pool/main/f/fakeroot
8 FAKEROOT_CAT:=zcat
9 FAKEROOT_DIR:=$(BUILD_DIR)/fakeroot-0.7.5
10
11
12 $(DL_DIR)/$(FAKEROOT_SOURCE):
13 $(WGET) -P $(DL_DIR) $(FAKEROOT_SITE)/$(FAKEROOT_SOURCE)
14
15 fakeroot-source: $(DL_DIR)/$(FAKEROOT_SOURCE)
16
17 $(FAKEROOT_DIR)/.unpacked: $(DL_DIR)/$(FAKEROOT_SOURCE)
18 $(FAKEROOT_CAT) $(DL_DIR)/$(FAKEROOT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
19 # If using busybox getopt, make it be quiet.
20 $(SED) "s,getopt --version,getopt --version 2>/dev/null," \
21 $(FAKEROOT_DIR)/scripts/fakeroot
22 touch $(FAKEROOT_DIR)/.unpacked
23
24 $(FAKEROOT_DIR)/.configured: $(FAKEROOT_DIR)/.unpacked
25 (cd $(FAKEROOT_DIR); rm -rf config.cache; \
26 $(TARGET_CONFIGURE_OPTS) \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libdir=/usr/lib/libfakeroot \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 $(DISABLE_NLS) \
42 );
43 touch $(FAKEROOT_DIR)/.configured
44
45 $(FAKEROOT_DIR)/faked: $(FAKEROOT_DIR)/.configured
46 $(MAKE) CC=$(TARGET_CC) -C $(FAKEROOT_DIR)
47
48 $(TARGET_DIR)/usr/bin/fakeroot: $(FAKEROOT_DIR)/faked
49 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(FAKEROOT_DIR) install
50 -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-faked $(TARGET_DIR)/usr/bin/faked
51 -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-fakeroot $(TARGET_DIR)/usr/bin/fakeroot
52 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
53 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
54
55 fakeroot: uclibc $(TARGET_DIR)/usr/bin/fakeroot
56
57 fakeroot-clean:
58 $(MAKE) -C $(FAKEROOT_DIR) clean
59
60 fakeroot-dirclean:
61 rm -rf $(FAKEROOT_DIR)
62
63
This page took 0.05103 seconds and 5 git commands to generate.