kumquat-buildroot/package/ttcp/ttcp.mk
Arnaud Aujon f078a8bc95 ttcp: fix url, rename patch
- fix download url : isn't available on previous ftp, use an other one
   instead
 - add version according to source code version
 - rename and clean patch according to patch policy

[Peter: adjust upstream URL in Config.in]
Signed-off-by: Arnaud Aujon <arnaud.aujon@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-11-18 21:59:12 +01:00

26 lines
612 B
Makefile

################################################################################
#
# ttcp
#
################################################################################
TTCP_VERSION = 1.12
TTCP_SITE = ftp://ftp.sgi.com/sgi/src/ttcp/
TTCP_SOURCE = ttcp.c
TTCP_LICENSE = public domain
define TTCP_EXTRACT_CMDS
cp -f -t $(@D) $(DL_DIR)/$(TTCP_SOURCE)
endef
define TTCP_BUILD_CMDS
$(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) \
-o $(@D)/ttcp $(@D)/$(TTCP_SOURCE)
endef
define TTCP_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/ttcp $(TARGET_DIR)/usr/bin/ttcp
endef
$(eval $(generic-package))