-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
68 lines (52 loc) · 1.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
##############################################
# OpenWrt Makefile for kplex #
# #
# Copyright (C) Caesar Schinas 2014 #
# Licensed under the terms of the #
# GNU General Public License, v3 or later #
##############################################
include $(TOPDIR)/rules.mk
# Name and release number of this package
PKG_NAME:=kplex
PKG_VERSION:=1.3.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.stripydog.com/download
PKG_HASH:=b507d85d5f1def40303326459268a6262d37ea5f13fb73b37b72854e53594dcc
PKG_LICENSE:=GPL-3.0+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
# Specify package information for this program.
define Package/kplex
SECTION:=utils
CATEGORY:=Utilities
TITLE:=kplex NMEA multiplexer
URL:=http://www.stripydog.com/kplex/
DEPENDS:=+libpthread
endef
define Package/kplex/description
kplex -- an NMEA multiplexer for Linux
kplex combines, filters and prioritises NMEA-0183 data from various types of
inputs (serial, network, flie, pseudo terminal) and sends it to various outputs
endef
# Tell OPKG where the config file is so it doesn't overwrite it when updating.
# Note: This block must not be indented.
define Package/kplex/conffiles
/etc/kplex.conf
endef
# Use local source code instead of downloading it from $(PKG_SOURCE_URL)/$(PKG_SOURCE).
#define Build/Prepare
# mkdir -p $(PKG_BUILD_DIR)
# $(CP) ./src/* $(PKG_BUILD_DIR)/
#endef
# Specify where and how to install the program.
# The $(1) variable represents the root directory on the router.
define Package/kplex/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/kplex.conf.ex $(1)/etc/kplex.conf
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
endef
$(eval $(call BuildPackage,kplex))