2006-07-11 00:09:37 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dmraid
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2007-07-08 13:03:43 +02:00
|
|
|
DMRAID_VERSION=1.0.0.rc14
|
2006-07-11 00:09:37 +02:00
|
|
|
DMRAID_SOURCE:=dmraid-$(DMRAID_VERSION).tar.bz2
|
|
|
|
DMRAID_SITE:=http://people.redhat.com/~heinzm/sw/dmraid/src
|
|
|
|
DMRAID_DIR:=$(BUILD_DIR)/dmraid/$(DMRAID_VERSION)
|
2006-11-17 16:43:51 +01:00
|
|
|
DMRAID_CAT:=$(BZCAT)
|
2006-07-11 00:09:37 +02:00
|
|
|
DMRAID_BINARY:=dmraid
|
|
|
|
DMRAID_STAGING_BINARY:=$(DMRAID_DIR)/STAGING_DIR)/tools/$(DMRAID_BINARY)
|
|
|
|
DMRAID_TARGET_BINARY:=$(TARGET_DIR)/sbin/$(DMRAID_BINARY)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DMRAID_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(DMRAID_SITE)/$(DMRAID_SOURCE)
|
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
dmraid-source: $(DL_DIR)/$(DMRAID_SOURCE)
|
|
|
|
|
2006-07-11 00:09:37 +02:00
|
|
|
$(DMRAID_DIR)/.unpacked: $(DL_DIR)/$(DMRAID_SOURCE)
|
|
|
|
$(DMRAID_CAT) $(DL_DIR)/$(DMRAID_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2006-07-19 19:51:12 +02:00
|
|
|
toolchain/patch-kernel.sh $(DMRAID_DIR) package/dmraid \*.patch
|
2006-07-11 00:09:37 +02:00
|
|
|
touch $(DMRAID_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(DMRAID_DIR)/.configured: $(DMRAID_DIR)/.unpacked
|
|
|
|
(cd $(DMRAID_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-07-11 00:09:37 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
--with-user=$(shell id -un) --with-group=$(shell id -gn) \
|
|
|
|
);
|
|
|
|
touch $(DMRAID_DIR)/.configured
|
|
|
|
|
|
|
|
$(DMRAID_DIR)/tools/$(DMRAID_BINARY): $(DMRAID_DIR)/.configured
|
|
|
|
$(MAKE1) -C $(DMRAID_DIR)
|
|
|
|
-$(STRIP) $(DMRAID_DIR)/tools/$(DMRAID_BINARY)
|
|
|
|
-$(UPX) --best $(DMRAID_DIR)/tools/$(DMRAID_BINARY)
|
|
|
|
touch -c $(DMRAID_DIR)/tools/$(DMRAID_BINARY)
|
|
|
|
|
|
|
|
$(DMRAID_TARGET_BINARY): $(DMRAID_DIR)/tools/$(DMRAID_BINARY)
|
|
|
|
$(INSTALL) -m 0755 $? $@
|
2006-07-19 19:51:12 +02:00
|
|
|
$(INSTALL) -m 0755 package/dmraid/dmraid.init $(TARGET_DIR)/etc/init.d/dmraid
|
2006-07-11 00:09:37 +02:00
|
|
|
|
2006-11-18 00:44:45 +01:00
|
|
|
dmraid: uclibc dm zlib $(DMRAID_TARGET_BINARY)
|
2006-07-11 00:09:37 +02:00
|
|
|
|
|
|
|
dmraid-clean:
|
2007-07-08 13:03:43 +02:00
|
|
|
rm -f $(DMRAID_TARGET_BINARY) $(TARGET_DIR)/etc/init.d/dmraid
|
2006-07-11 00:09:37 +02:00
|
|
|
$(MAKE) -C $(DMRAID_DIR) clean
|
|
|
|
|
|
|
|
dmraid-dirclean:
|
|
|
|
rm -rf $(DMRAID_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_DMRAID)),y)
|
|
|
|
TARGETS+=dmraid
|
|
|
|
endif
|