ntripcaster: move to github
[feed/packages.git] / net / ntripcaster / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ntripcaster
12 PKG_VERSION:=0.1.5
13 PKG_RELEASE:=1
14 PKG_LICENSE:=GPL-2.0+
15
16 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).zip
17 PKG_SOURCE_URL:=http://igs.bkg.bund.de/root_ftp/NTRIP/software/
18 PKG_MD5SUM:=8c85a6c31d8c5cdf2638fe103207a1fd
19
20 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ntripcaster
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=NTRIP
28 TITLE:=Standard Ntrip Broadcaster
29 URL:=http://igs.bkg.bund.de/ntrip/download
30 DEPENDS:=+libpthread
31 endef
32
33 define Package/ntripcaster/description
34 BKG Standard Ntrip Broadcaster
35 endef
36
37 define Build/Prepare
38 mkdir -p $(PKG_BUILD_DIR)
39 unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR)
40 mv $(PKG_BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)/* $(PKG_BUILD_DIR)
41 chmod +x $(PKG_BUILD_DIR)/configure
42 endef
43
44 define Package/ntripcaster/install
45 $(INSTALL_DIR) $(1)/usr/local/ntripcaster/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ntripcaster $(1)/usr/local/ntripcaster/bin/
47 $(INSTALL_DIR) $(1)/usr/local/ntripcaster/conf
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/ntripcaster.conf.dist $(1)/usr/local/ntripcaster/conf/
49 $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/sourcetable.dat.dist $(1)/usr/local/ntripcaster/conf/
50 endef
51
52 $(eval $(call BuildPackage,ntripcaster))