2007-05-07 05:58:30 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lockfile-progs
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LOCKFILE_PROGS_VERSION=0.1.10
|
|
|
|
LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
|
|
|
|
LOCKFILE_PROGS_SITE:=http://ftp.debian.org/debian/pool/main/l/lockfile-progs/
|
|
|
|
LOCKFILE_PROGS_CAT:=$(ZCAT)
|
|
|
|
LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/lockfile-progs-$(LOCKFILE_PROGS_VERSION)
|
|
|
|
LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LOCKFILE_PROGS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LOCKFILE_PROGS_SITE)/$(LOCKFILE_PROGS_SOURCE)
|
|
|
|
|
|
|
|
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) -
|
|
|
|
touch $(LOCKFILE_PROGS_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY): $(LOCKFILE_PROGS_DIR)/.unpacked
|
2007-07-17 02:25:31 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
-C $(LOCKFILE_PROGS_DIR)
|
2007-05-07 05:58:30 +02:00
|
|
|
cp -a $(LOCKFILE_PROGS_DIR)/bin/lockfile* $(TARGET_DIR)/usr/bin
|
|
|
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
|
|
|
|
|
|
|
lockfile-progs: uclibc liblockfile $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
|
|
|
|
|
|
|
lockfile-progs-clean:
|
2007-07-17 02:25:31 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/lockfile-*
|
2007-05-07 05:58:30 +02:00
|
|
|
$(MAKE) -C $(LOCKFILE_PROGS_DIR) clean
|
|
|
|
|
|
|
|
lockfile-progs-dirclean:
|
|
|
|
rm -rf $(LOCKFILE_PROGS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LOCKFILE_PROGS)),y)
|
|
|
|
TARGETS+=lockfile-progs
|
|
|
|
endif
|