1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2011 segal.ubi.pt
  3. # Copyright (C) 2010-2014 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=ntripcaster
  10. PKG_VERSION:=0.1.5
  11. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/nunojpg/ntripcaster.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=03878920195cf854b38a1ea424f1cae57353fa87
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ntripcaster
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=NTRIP
  24. TITLE:=Standard Ntrip Broadcaster
  25. URL:=http://igs.bkg.bund.de/ntrip/download
  26. DEPENDS:=+libpthread
  27. endef
  28. define Package/ntripcaster/description
  29. BKG Standard Ntrip Broadcaster
  30. endef
  31. define Package/ntripcaster/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ntripcaster $(1)/usr/bin/
  34. $(INSTALL_DIR) $(1)/usr/share/ntripcaster/conf
  35. $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/ntripcaster.conf.dist $(1)/usr/share/ntripcaster/conf/
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/sourcetable.dat.dist $(1)/usr/share/ntripcaster/conf/
  37. endef
  38. $(eval $(call BuildPackage,ntripcaster))