43 lines
1 KiB
Bash
43 lines
1 KiB
Bash
# Copyright 1999-2008 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmba/libmba-0.9.1.ebuild,v 1.4 2008/10/27 17:07:00 jokey Exp $
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="A library of generic C modules."
|
|
HOMEPAGE="http://www.ioplex.com/~miallen/libmba/"
|
|
SRC_URI="http://www.ioplex.com/~miallen/libmba/dl/${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND=""
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd ${S}
|
|
rm Makefile.linux
|
|
}
|
|
|
|
src_compile() {
|
|
# Parallel make fails unless mktool is built first
|
|
emake CC="$(tc-getCC)" -j1 mktool || die "Unable to build mktool"
|
|
|
|
# Makefile uses MFLAGS, not CFLAGS
|
|
# Additional MFLAGS are from Makefile and are required
|
|
emake MFLAGS="-Isrc -W1 ${CFLAGS}" || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
# einstall is required here. No DESTDIR support
|
|
einstall || die "Install failed!"
|
|
|
|
dodoc README.txt docs/*.txt || die
|
|
dohtml -r docs/*.html docs/www/* docs/ref || die
|
|
|
|
insinto /usr/share/doc/${PF}/examples
|
|
doins examples/*
|
|
}
|