Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=kplex
  8. PKG_VERSION:=20150809
  9. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/stripydog/kplex.git
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_VERSION:=fec47cd1877ec7903969adefa4220838a706d940
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  15. PKG_LICENSE:=GPL-3.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/kplex
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=NMEA-0183 multiplexer and router
  23. DEPENDS:=+libpthread
  24. URL:=http://www.stripydog.com/kplex/
  25. endef
  26. define Package/kplex/description
  27. Kplex is a program for combining and routing NMEA-0183 data to and from multiple
  28. sources and destinations. kplex inputs and outputs may be any of Serial lines,
  29. Pseudo Terminals (ptys), Network Interfaces and Files.
  30. endef
  31. define Package/kplex/conffiles
  32. /etc/kplex.conf
  33. endef
  34. define Package/kplex/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
  39. endef
  40. $(eval $(call BuildPackage,kplex))