657f245f31ac7848d9d4981fe5acb0e1470b001c
[openwrt.git] / obsolete-buildroot / make / raidtools.mk
1 #############################################################
2 #
3 # raidtools2
4 #
5 #############################################################
6 RAIDTOOLS2_SOURCE:=raidtools2-1.00.3.tar.gz
7 RAIDTOOLS2_SITE:=
8 RAIDTOOLS2_DIR:=$(BUILD_DIR)/raidtools2-1.00.3
9 RAIDTOOLS2_CAT:=zcat
10 RAIDTOOLS2_BINARY:=mkraid
11 RAIDTOOLS2_TARGET_BINARY:=sbin/mkraid
12
13 $(DL_DIR)/$(RAIDTOOLS2_SOURCE):
14 $(WGET) -P $(DL_DIR) $(RAIDTOOLS2_SITE)/$(RAIDTOOLS2_SOURCE)
15
16 raidtools2-source: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
17
18 $(RAIDTOOLS2_DIR)/.unpacked: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
19 $(RAIDTOOLS2_CAT) $(DL_DIR)/$(RAIDTOOLS2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(RAIDTOOLS2_DIR)/.unpacked
21
22 $(RAIDTOOLS2_DIR)/.configured: $(RAIDTOOLS2_DIR)/.unpacked
23 (cd $(RAIDTOOLS2_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 --datadir=/usr/share/misc \
36 --localstatedir=/var \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 $(DISABLE_NLS) \
40 --enable-fsect-man5 \
41 );
42 touch $(RAIDTOOLS2_DIR)/.configured
43
44 $(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY): $(RAIDTOOLS2_DIR)/.configured
45 $(MAKE) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR)
46
47 $(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY): $(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY)
48 $(MAKE) ROOTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) install
49 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
50 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
51
52 raidtools2: zlib uclibc $(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY)
53
54 raidtools2-clean:
55 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) uninstall
56 -$(MAKE) -C $(RAIDTOOLS2_DIR) clean
57
58 raidtools2-dirclean:
59 rm -rf $(RAIDTOOLS2_DIR)
This page took 0.039022 seconds and 3 git commands to generate.