kumquat-buildroot/package/portmap/portmap.mk
Bernhard Reutner-Fischer 6342c83201 - use $(ZCAT) as configured by the user instead of hardcoded 'zcat' that may not exist; Closes #971
Silly, unchecked sed -i -e "/[^b]zcat/s/zcat/\$\(ZCAT\)/g" $(svngrep "[^b]zcat" * -rl | grep -v Config.in)
2006-10-01 15:17:52 +00:00

44 lines
1.4 KiB
Makefile

#############################################################
#
# portmap
#
#############################################################
PORTMAP_VER:=5b
PORTMAP_SOURCE:=portmap_$(PORTMAP_VER)eta.tar.gz
PORTMAP_SITE:=ftp://ftp.porcupine.org/pub/security/
PORTMAP_DIR:=$(BUILD_DIR)/portmap_$(PORTMAP_VER)eta
PORTMAP_CAT:=$(ZCAT)
PORTMAP_BINARY:=portmap
PORTMAP_TARGET_BINARY:=sbin/portmap
$(DL_DIR)/$(PORTMAP_SOURCE):
$(WGET) -P $(DL_DIR) $(PORTMAP_SITE)/$(PORTMAP_SOURCE)
$(PORTMAP_DIR)/.unpacked: $(DL_DIR)/$(PORTMAP_SOURCE)
$(PORTMAP_CAT) $(DL_DIR)/$(PORTMAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(PORTMAP_DIR) package/portmap/ portmap\*.patch
touch $(PORTMAP_DIR)/.unpacked
$(PORTMAP_DIR)/$(PORTMAP_BINARY): $(PORTMAP_DIR)/.unpacked
$(MAKE) CC=$(TARGET_CC) O="$(TARGET_CFLAGS)" -C $(PORTMAP_DIR)
$(TARGET_DIR)/$(PORTMAP_TARGET_BINARY): $(PORTMAP_DIR)/$(PORTMAP_BINARY)
install -D $(PORTMAP_DIR)/$(PORTMAP_BINARY) $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
portmap: uclibc $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
portmap-clean:
rm -f $(TARGET_DIR)/$(PORTMAP_TARGET_BINARY)
-$(MAKE) -C $(PORTMAP_DIR) clean
portmap-dirclean:
rm -rf $(PORTMAP_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_PORTMAP)),y)
TARGETS+=portmap
endif