You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/ogdi/ogdi-3.1.5-r1.ebuild

50 lines
1.2 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ogdi/ogdi-3.1.5-r1.ebuild,v 1.17 2014/07/09 03:18:46 patrick Exp $
inherit toolchain-funcs eutils
DESCRIPTION="Open Geographical Datastore Interface, a GIS support library"
HOMEPAGE="http://ogdi.sourceforge.net/"
SRC_URI="mirror://sourceforge/ogdi/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="
<sci-libs/proj-4.8.0
sys-libs/zlib
dev-libs/expat"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-fpic.patch
}
src_compile() {
export TOPDIR="${S}"
export TARGET=`uname`
export CFG="release"
export LD_LIBRARY_PATH=$TOPDIR/bin/${TARGET}
econf --with-projlib="-L/usr/$(get_libdir) -lproj" \
--with-zlib --with-expat
# bug #299239
emake -j1 || die "make failed"
}
src_install() {
mv "${S}"/bin/Linux/*.so "${S}"/lib/Linux/. || die "lib move failed"
dobin "${S}"/bin/Linux/*
insinto /usr/include
doins ogdi/include/ecs.h ogdi/include/ecs_util.h
dolib.so lib/Linux/*.so
dosym libogdi31.so /usr/$(get_libdir)/libogdi.so || die "symlink failed"
dodoc ChangeLog NEWS README VERSION
}