8244796c21067036f135268cad6fd2a2ff4cbef7
[openwrt/svn-archive/archive.git] / libs / nmeap / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nmeap
12 PKG_VERSION:=0.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nmeap
17 PKG_MD5SUM:=cbcc9fdf5176f9d6c9e48f27db443c4f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libnmeap
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=extensible NMEA-0183 parser written in standard C
25 URL:=http://www.dmh2000.com/nmea/nmeap.shtml
26 endef
27
28 define Package/libnmeap/description
29 The NMEAP parser is intended for use in applications that need to input NMEA-0183
30 data from a GPS (typically over a serial port). NMEAP is a linkable library written in portable
31 standard C and is suitable for both desktop and embedded applications.
32 It is licensed under the BSD open source license.
33 endef
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/include
37 $(CP) $(PKG_BUILD_DIR)/inc/nmeap{,_def}.h $(1)/usr/include/
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_BUILD_DIR)/lib/libnmeap.a $(1)/usr/lib/
40 endef
41
42 define Build/UninstallDev
43 rm -f $(STAGING_DIR)/usr/include/nmeap{,_def}.h \
44 $(STAGING_DIR)/usr/lib/libnmeap.a
45 endef
46
47 $(eval $(call BuildPackage,libnmeap))