You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB

  1. # Copyright (C) 2017 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v3+.
  4. # See /LICENSE for more information.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=gkermit
  8. PKG_VERSION:=1.00
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-2.0
  11. PKG_SOURCE:=gku100.tar.gz
  12. PKG_SOURCE_URL:=ftp://kermit.columbia.edu/kermit/archives
  13. PKG_HASH:=3dbe63291277c4795255343b48b860777fb0a160163d7e1d30b1ee68585593eb
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/gkermit
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=gkermit
  21. URL:=http://www.columbia.edu/kermit/gkermit.html
  22. endef
  23. define Package/gkermit/description
  24. A minimal kermit file transfer program
  25. endef
  26. define Build/Prepare
  27. mkdir -p $(PKG_BUILD_DIR)
  28. tar -C $(PKG_BUILD_DIR) -xzvf "$(DL_DIR)/$(PKG_SOURCE)"
  29. endef
  30. # nothing to do
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. mkdir -p $(PKG_INSTALL_DIR)
  35. $(TARGET_CC) \
  36. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
  37. -include string.h -include unistd.h \
  38. -DPOSIX -DERRNO_H \
  39. -o $(PKG_INSTALL_DIR)/gkermit \
  40. $(PKG_BUILD_DIR)/{gproto,gkermit,gunixio,gcmdline}.c
  41. endef
  42. define Package/gkermit/install
  43. $(INSTALL_DIR) $(1)/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/gkermit $(1)/bin
  45. endef
  46. $(eval $(call BuildPackage,gkermit))