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.

59 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:=2
  10. PKG_SOURCE:=gku100.tar.gz
  11. PKG_SOURCE_URL:=ftp://kermit.columbia.edu/kermit/archives
  12. PKG_HASH:=3dbe63291277c4795255343b48b860777fb0a160163d7e1d30b1ee68585593eb
  13. PKG_MAINTAINER:=Nathaniel Wesley Filardo <nwfilardo@gmail.com>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  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. $(Build/Patch)
  30. endef
  31. # nothing to do
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. mkdir -p $(PKG_INSTALL_DIR)
  36. $(TARGET_CC) \
  37. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
  38. -include string.h -include unistd.h \
  39. -DPOSIX -DERRNO_H \
  40. -o $(PKG_INSTALL_DIR)/gkermit \
  41. $(PKG_BUILD_DIR)/{gproto,gkermit,gunixio,gcmdline}.c
  42. endef
  43. define Package/gkermit/install
  44. $(INSTALL_DIR) $(1)/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/gkermit $(1)/bin
  46. endef
  47. $(eval $(call BuildPackage,gkermit))