1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_MIRROR_HASH:=264656e5f9f9583c477208f005371124bfcbb7ba548f418eb5f1215059d1294b
  18. PKG_LICENSE:=GPL-2.0+
  19. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/ntripcaster
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=NTRIP
  25. TITLE:=Standard Ntrip Broadcaster
  26. URL:=http://igs.bkg.bund.de/ntrip/download
  27. DEPENDS:=+libpthread
  28. endef
  29. define Package/ntripcaster/description
  30. BKG Standard Ntrip Broadcaster
  31. endef
  32. define Package/ntripcaster/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ntripcaster $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/usr/share/ntripcaster/conf
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/ntripcaster.conf.dist $(1)/usr/share/ntripcaster/conf/
  37. $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/sourcetable.dat.dist $(1)/usr/share/ntripcaster/conf/
  38. endef
  39. $(eval $(call BuildPackage,ntripcaster))