source: packages/net/ntripcaster/Makefile @ 29623

Last change on this file since 29623 was 29623, checked in by nunojpg, 4 years ago

[packages] add ntripcaster, Standard Ntrip Broadcaster

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2011 segal.ubi.pt
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ntripcaster
11PKG_VERSION:=0.1.5
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).zip
15PKG_SOURCE_URL:=http://igs.bkg.bund.de/root_ftp/NTRIP/software/
16PKG_MD5SUM:=8c85a6c31d8c5cdf2638fe103207a1fd
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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  MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
27  DEPENDS:=+libpthread
28endef
29
30define Package/ntripcaster/description
31  BKG Standard Ntrip Broadcaster
32endef
33
34define Build/Prepare
35        mkdir -p $(PKG_BUILD_DIR)
36        unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR)
37        mv $(PKG_BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)/* $(PKG_BUILD_DIR)
38        chmod +x $(PKG_BUILD_DIR)/configure
39endef
40
41define Package/ntripcaster/install
42        $(INSTALL_DIR) $(1)/usr/local/ntripcaster/bin
43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ntripcaster $(1)/usr/local/ntripcaster/bin/
44        $(INSTALL_DIR) $(1)/usr/local/ntripcaster/conf
45        $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/ntripcaster.conf.dist $(1)/usr/local/ntripcaster/conf/
46        $(INSTALL_DATA) $(PKG_BUILD_DIR)/conf/sourcetable.dat.dist $(1)/usr/local/ntripcaster/conf/
47endef
48
49$(eval $(call BuildPackage,ntripcaster))
Note: See TracBrowser for help on using the repository browser.