2003-09-04 22:25:57 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# raidtools2
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
RAIDTOOLS2_VERSION:=1.00.3
|
|
|
|
RAIDTOOLS2_SOURCE:=raidtools2-$(RAIDTOOLS2_VERSION).tar.gz
|
2003-09-04 22:25:57 +02:00
|
|
|
RAIDTOOLS2_SITE:=
|
2007-07-11 16:06:06 +02:00
|
|
|
RAIDTOOLS2_DIR:=$(BUILD_DIR)/raidtools2-$(RAIDTOOLS2_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
RAIDTOOLS2_CAT:=$(ZCAT)
|
2003-09-04 22:25:57 +02:00
|
|
|
RAIDTOOLS2_BINARY:=mkraid
|
|
|
|
RAIDTOOLS2_TARGET_BINARY:=sbin/mkraid
|
|
|
|
|
|
|
|
$(DL_DIR)/$(RAIDTOOLS2_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(RAIDTOOLS2_SITE)/$(RAIDTOOLS2_SOURCE)
|
|
|
|
|
|
|
|
raidtools2-source: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
|
|
|
|
|
|
|
|
$(RAIDTOOLS2_DIR)/.unpacked: $(DL_DIR)/$(RAIDTOOLS2_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(RAIDTOOLS2_CAT) $(DL_DIR)/$(RAIDTOOLS2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-09-04 22:25:57 +02:00
|
|
|
touch $(RAIDTOOLS2_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(RAIDTOOLS2_DIR)/.configured: $(RAIDTOOLS2_DIR)/.unpacked
|
|
|
|
(cd $(RAIDTOOLS2_DIR); rm -rf config.cache; \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-07-29 01:02:26 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2007-07-29 01:02:26 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share/misc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-04 22:25:57 +02:00
|
|
|
$(DISABLE_NLS) \
|
2007-07-29 01:02:26 +02:00
|
|
|
--enable-fsect-man5 \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(RAIDTOOLS2_DIR)/.configured
|
2003-09-04 22:25:57 +02:00
|
|
|
|
|
|
|
$(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY): $(RAIDTOOLS2_DIR)/.configured
|
2007-07-29 01:02:26 +02:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR)
|
2003-09-04 22:25:57 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY): $(RAIDTOOLS2_DIR)/$(RAIDTOOLS2_BINARY)
|
2003-09-05 11:12:56 +02:00
|
|
|
$(MAKE) ROOTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) install
|
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
2003-09-04 22:25:57 +02:00
|
|
|
|
|
|
|
raidtools2: zlib uclibc $(TARGET_DIR)/$(RAIDTOOLS2_TARGET_BINARY)
|
|
|
|
|
|
|
|
raidtools2-clean:
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(RAIDTOOLS2_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(RAIDTOOLS2_DIR) clean
|
|
|
|
|
|
|
|
raidtools2-dirclean:
|
|
|
|
rm -rf $(RAIDTOOLS2_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_RAIDTOOLS)),y)
|
|
|
|
TARGETS+=raidtools
|
|
|
|
endif
|