Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # The software `TinyScheme` was packaged for OpenWRT and LibreCMC by
  2. # Christopher Howard <christopher.howard@qlfiles.net> in May 2018.
  3. # This package configuration file is licensed under the GPL-3+.
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. # The upstream author of `TinyScheme` is Dimitrios Souflis
  15. # <dsouflis@acm.org>
  16. include $(TOPDIR)/rules.mk
  17. PKG_NAME:=tinyscheme
  18. PKG_VERSION:=1.41
  19. PKG_RELEASE:=1
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/tinyscheme-$(PKG_VERSION)
  21. PKG_SOURCE:=tinyscheme-$(PKG_VERSION).tar.gz
  22. PKG_SOURCE_URL:=ftp://lavender.qlfiles.net/tinyscheme/
  23. PKG_HASH:=eac0103494c755192b9e8f10454d9f98f2bbd4d352e046f7b253439a3f991999
  24. PKG_CAT:=zcat
  25. PKG_LICENSE:=BSD-3-Clause
  26. PKG_LICENSE_FILES:=COPYING
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/tinyscheme
  29. SECTION:=lang
  30. CATEGORY:=Languages
  31. TITLE:=TinyScheme programming language
  32. URL:=http://tinyscheme.sourceforge.net
  33. endef
  34. define Package/tinyscheme/description
  35. TinyScheme is a lightweight Scheme interpreter that implements as large a
  36. subset of R5RS as was possible without getting very large and complicated.
  37. This package installs only the tinyscheme binary, not the shared library.
  38. endef
  39. define Build/Configure
  40. $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
  41. endef
  42. define Package/tinyscheme/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/scheme $(1)/usr/bin/tinyscheme
  45. $(INSTALL_DIR) $(1)/usr/lib/tinyscheme
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/init.scm $(1)/usr/lib/tinyscheme/init.scm
  47. endef
  48. $(eval $(call BuildPackage,tinyscheme))