From de401b3a7e0b8aaa2aaea989f7b6302e330e7875 Mon Sep 17 00:00:00 2001 From: nunojpg Date: Fri, 30 Dec 2011 01:35:04 +0000 Subject: [PATCH] [packages] add ntripcaster, Standard Ntrip Broadcaster git-svn-id: svn://svn.openwrt.org/openwrt/packages@29623 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/ntripcaster/Makefile | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 net/ntripcaster/Makefile diff --git a/net/ntripcaster/Makefile b/net/ntripcaster/Makefile new file mode 100644 index 000000000..51b43e751 --- /dev/null +++ b/net/ntripcaster/Makefile @@ -0,0 +1,49 @@ +# +# Copyright (C) 2011 segal.ubi.pt +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ntripcaster +PKG_VERSION:=0.1.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).zip +PKG_SOURCE_URL:=http://igs.bkg.bund.de/root_ftp/NTRIP/software/ +PKG_MD5SUM:=8c85a6c31d8c5cdf2638fe103207a1fd + +include $(INCLUDE_DIR)/package.mk + +define Package/ntripcaster + SECTION:=net + CATEGORY:=Network + SUBMENU:=NTRIP + TITLE:=Standard Ntrip Broadcaster + URL:=http://igs.bkg.bund.de/ntrip/download + MAINTAINER:=Nuno Goncalves + DEPENDS:=+libpthread +endef + +define Package/ntripcaster/description + BKG Standard Ntrip Broadcaster +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR) + mv $(PKG_BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)/* $(PKG_BUILD_DIR) + chmod +x $(PKG_BUILD_DIR)/configure +endef + +define Package/ntripcaster/install + $(INSTALL_DIR) $(1)/usr/local/ntripcaster/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ntripcaster $(1)/usr/local/ntripcaster/bin/ + $(INSTALL_DIR) $(1)/usr/local/ntripcaster/conf + $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/ntripcaster.conf.dist $(1)/usr/local/ntripcaster/conf/ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/sourcetable.dat.dist $(1)/usr/local/ntripcaster/conf/ +endef + +$(eval $(call BuildPackage,ntripcaster))