1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils
7 DESCRIPTION="X Amateur Station Tracking and Information Reporting"
8 HOMEPAGE="http://xastir.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="festival gdal geotiff imagemagick"
16 DEPEND="x11-libs/openmotif
23 geotiff? ( sci-libs/proj
26 gdal? ( sci-libs/gdal )
27 imagemagick? ( >=media-gfx/imagemagick-6.4 )
28 festival? ( app-accessibility/festival )"
34 # fix some scripts with DOS line endings
35 edos2unix scripts/toporama*
36 # fix for different install directory in scripts
37 epatch "${FILESDIR}/${P}-scripts.diff" \
38 "${FILESDIR}/${P}-config.diff"
43 econf --without-graphicsmagick \
49 $(use_with geotiff libproj) \
52 $(use_with imagemagick) \
54 emake || die "emake failed"
58 emake DESTDIR="${D}" install || die "emake install failed"
59 # make doc more Gentoo like
60 rm -rf "${D}/usr/share/doc/xastir"
61 dodoc AUTHORS ChangeLog FAQ README README.Contributing \
62 README.Getting-Started README.MAPS || die "dodoc failed"
66 elog "Kernel mode AX.25 not supported."
67 elog "GPSman library not supported."
69 elog "Remember you have to be root to add addditional scripts,"
70 elog "maps and other configuration data under /usr/share/xastir"
71 elog "/usr/lib/xastir."