1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Extensible NMEA-0183 (GPS) data parser in standard C"
9 HOMEPAGE="http://nmeap.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="amd64 ppc x86"
17 DEPEND="doc? ( app-doc/doxygen )"
22 # Repsect users CFLAGS for the static lib archive
23 sed -i -e 's/CFLAGS =/CFLAGS +=/' -e 's/-g -O0 -Werror//' src/Makefile || die
25 # Don't build test programs, they are not needed
26 sed -i -e '/TST/d' Makefile || die
28 # Silent output of Doxygen and update it, since it is quite old
30 sed -i -e 's/QUIET.*/QUIET = YES/' Doxyfile || die
31 doxygen -u Doxyfile 2>/dev/null || die
41 emake "${myemakeopts[@]}"
44 doxygen Doxyfile || die
49 dolib.a lib/libnmeap.a
51 doheader inc/nmeap.h inc/nmeap_def.h
54 local HTML_DOCS=( "doc/tutorial.html" "doc/html" )