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/media-libs/cal3d/cal3d-0.11.0-r1.ebuild

57 lines
1.2 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/cal3d/cal3d-0.11.0-r1.ebuild,v 1.9 2011/07/20 10:00:41 tupone Exp $
EAPI=2
inherit eutils base autotools
DESCRIPTION="Cal3D is a skeletal based character animation library"
HOMEPAGE="http://home.gna.org/cal3d"
SRC_URI="http://download.gna.org/cal3d/sources/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc x86 ~x86-fbsd"
IUSE="16bit-indices debug doc"
DEPEND="doc? (
app-doc/doxygen
app-text/docbook-sgml-utils
)"
RDEPEND=""
DOCS=( AUTHORS ChangeLog README TODO )
use doc && HTML_DOCS=( docs/html/api docs/html/guide )
PATCHES=( "${FILESDIR}"/${P}-gcc43.patch )
src_prepare() {
base_src_prepare
if use doc; then
sed -i \
-e "s:db2html:docbook2html:g" \
configure.in \
docs/Makefile.am \
|| die "sed for doc failed"
eautoreconf
fi
}
src_configure() {
econf \
$(use_enable debug) \
$(use_enable 16bit-indices) \
|| die
}
src_compile() {
base_src_compile
if use doc; then
cd docs
emake doc-api || die "Failed making doc-api"
emake doc-guide || die "Failed making doc-guide"
mkdir -p html/{guide,api}
mv *.{html,gif} html/guide/
mv api/html/* html/api/
fi
}