# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/cvsroot/GPLIGC/gpligc-1.5.ebuild,v 1.2 2006/11/14 20:14:25 kruegerh Exp $ inherit eutils DESCRIPTION="GPLIGC provides IGC (GPS tracklog) file evaluation and 3D visualisation" HOMEPAGE="http://gpligc.sf.net" SRC_URI="http://pc12-c714.uibk.ac.at/GPLIGC/download/GPLIGC-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/opengl virtual/glut virtual/glu media-libs/jpeg" RDEPEND="${DEPEND} >=dev-lang/perl-5.6 dev-perl/perl-tk sci-visualization/gnuplot" # for historical reasons the original tarball has capital letters # and so has the toplevel directory S="${WORKDIR}/GPLIGC-${PV}" src_compile() { # compiling openGLIGCexplorer using the systems compiler flags cd openGLIGCexplorer && make clean && emake CFLAGS="${CFLAGS}" \ CXXFLAGS="${CXXFLAGS}" && make strip || die "Build failed" } src_install() { # this one is not created by the GPLIGC-installer dodir /usr/bin # warning about binary check, which may fail without X. # if the binary check fails 1.5, needs some user-interaction. # the installer will be modified for later versions # after all the binaries should by OK after the compilation succeeded. einfo "The GPLIGC installer will perform a check on the binaries.\ This check will fail, if no X is running: in this case select option 2." # install in DESTDIR/usr, PREFIX is used to set the library path # in the GPLIGC.pl script. PREFIX="/usr" DESTDIR="${D}/usr" ./install.sh non-interactive }