1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils flag-o-matic toolchain-funcs
8 DESCRIPTION="X Amateur Station Tracking and Information Reporting"
9 HOMEPAGE="http://xastir.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 IUSE="festival gdal geotiff graphicsmagick"
17 DEPEND=">=x11-libs/motif-2.3:0
26 !graphicsmagick? ( media-gfx/imagemagick[-hdri,-q32] )
27 graphicsmagick? ( media-gfx/graphicsmagick[-q32] )
28 geotiff? ( sci-libs/proj
31 gdal? ( sci-libs/gdal )
32 festival? ( app-accessibility/festival )"
36 # fix script location (bug #407185)
37 epatch "${FILESDIR}"/${P}-scripts.diff
39 # fix __FORTIFY_SOURCE warning (bug #337365)
40 epatch "${FILESDIR}"/${P}-fortify.diff
42 # do not use builtin shapelib if sci-libs/shapelib is not installed
43 # instead build without shapelib support (bug #430704)
44 epatch "${FILESDIR}"/${P}-no-builtin-shapelib.diff
46 # do not filter duplicate flags (see bug 411095)
47 epatch "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff
49 # fix deprectated AM_CONFIG_HEADER macro
50 sed -i -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac || die
56 # provide include path to GraphicsMagic for configure stage
57 use graphicsmagick && append-cflags -I/usr/include/GraphicsMagick
63 $(use_with !graphicsmagick imagemagick) \
64 $(use_with graphicsmagick) \
65 $(use_with geotiff libproj) \
72 emake AR="$(tc-getAR)"
76 emake DESTDIR="${D}" install
78 rm -rf "${D}"/usr/share/doc/${PN}
79 dodoc AUTHORS ChangeLog FAQ README README.Contributing \
80 README.Getting-Started README.MAPS
84 elog "Kernel mode AX.25 and GPSman library not supported."
86 elog "Remember you have to be root to add addditional scripts,"
87 elog "maps and other configuration data under /usr/share/xastir."