2007-05-07 05:58:30 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lockfile-progs
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-05-20 23:35:55 +02:00
|
|
|
LOCKFILE_PROGS_VERSION=0.1.11-0.1
|
2007-05-07 05:58:30 +02:00
|
|
|
LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
LOCKFILE_PROGS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
|
2007-05-07 05:58:30 +02:00
|
|
|
LOCKFILE_PROGS_CAT:=$(ZCAT)
|
2008-05-20 23:35:55 +02:00
|
|
|
LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/lockfile-progs-0.1.11
|
2007-05-07 05:58:30 +02:00
|
|
|
LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LOCKFILE_PROGS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LOCKFILE_PROGS_SITE),$(LOCKFILE_PROGS_SOURCE))
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
lockfile-progs-source: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
|
|
|
|
|
|
|
|
$(LOCKFILE_PROGS_DIR)/.unpacked: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
|
|
|
|
$(LOCKFILE_PROGS_CAT) $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-11-19 11:16:40 +01:00
|
|
|
toolchain/patch-kernel.sh $(LOCKFILE_PROGS_DIR) package/lockfile-progs/ \*.patch
|
2007-05-07 05:58:30 +02:00
|
|
|
touch $(LOCKFILE_PROGS_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY): $(LOCKFILE_PROGS_DIR)/.unpacked
|
2007-08-22 14:35:41 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(TARGET_LDFLAGS)" \
|
2007-07-17 02:25:31 +02:00
|
|
|
-C $(LOCKFILE_PROGS_DIR)
|
2007-05-07 05:58:30 +02:00
|
|
|
cp -a $(LOCKFILE_PROGS_DIR)/bin/lockfile* $(TARGET_DIR)/usr/bin
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
2007-05-07 05:58:30 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
lockfile-progs: liblockfile $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
lockfile-progs-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-rm -f $(TARGET_DIR)/usr/bin/lockfile-*
|
|
|
|
-$(MAKE) -C $(LOCKFILE_PROGS_DIR) clean
|
2007-05-07 05:58:30 +02:00
|
|
|
|
|
|
|
lockfile-progs-dirclean:
|
|
|
|
rm -rf $(LOCKFILE_PROGS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-11-22 07:49:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LOCKFILE_PROGS),y)
|
2007-05-07 05:58:30 +02:00
|
|
|
TARGETS+=lockfile-progs
|
|
|
|
endif
|