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/gamer/gamer-1.4.ebuild

56 lines
1.2 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gamer/gamer-1.4.ebuild,v 1.2 2010/11/02 08:19:02 jlec Exp $
EAPI="3"
inherit autotools eutils multilib
DESCRIPTION="Geometry-preserving Adaptive MeshER"
HOMEPAGE="http://fetk.org/codes/gamer/index.html"
SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-2"
IUSE="doc"
RDEPEND=">=dev-libs/maloc-1.4"
DEPEND="
${RDEPEND}
doc? (
media-gfx/graphviz
app-doc/doxygen )"
S="${WORKDIR}"/${PN}
src_prepare() {
epatch \
"${FILESDIR}"/${PV}-multilib.patch \
"${FILESDIR}"/${PV}-doc.patch
eautoreconf
}
src_configure() {
local fetk_include
local fetk_lib
local myconf
use doc || myconf="${myconf} --with-doxygen= --with-dot="
fetk_include="${EPREFIX}"/usr/include
fetk_lib="${EPREFIX}"/usr/$(get_libdir)
export FETK_INCLUDE="${fetk_include}"
export FETK_LIBRARY="${fetk_lib}"
econf \
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
--disable-triplet \
--enable-shared \
${myconf}
}
src_install() {
emake DESTDIR="${D}" install || die
}