summaryrefslogtreecommitdiffstats
path: root/libs/nmeap/Makefile
blob: 66589daec7b79aad25b77ed72b56d50093094d22 (plain)
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
#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=nmeap
PKG_VERSION:=0.3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/nmeap
PKG_MD5SUM:=cbcc9fdf5176f9d6c9e48f27db443c4f

include $(INCLUDE_DIR)/package.mk

define Package/libnmeap
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=extensible NMEA-0183 parser written in standard C
  URL:=http://www.dmh2000.com/nmea/nmeap.shtml
endef

define Package/libnmeap/description
The NMEAP parser is intended for use in applications that need to input NMEA-0183
	data from a GPS (typically over a serial port). NMEAP is a linkable library written in portable
	standard C and is suitable for both desktop and embedded applications.
	It is licensed under the BSD open source license.
endef

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_BUILD_DIR)/inc/nmeap{,_def}.h $(1)/usr/include/
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_BUILD_DIR)/lib/libnmeap.a $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libnmeap))