1d30169837
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@569 6952d904-891a-0410-993b-d76249ca496b
39 lines
778 B
Bash
39 lines
778 B
Bash
# Copyright 1999-2008 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
inherit eutils
|
|
|
|
DESCRIPTION="DOS emulator"
|
|
HOMEPAGE="http://dosbox.sourceforge.net/"
|
|
SRC_URI="mirror://sourceforge/dosbox/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="debug hardened"
|
|
|
|
DEPEND="debug? ( sys-libs/ncurses )"
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
|
|
epatch "${FILESDIR}/${P}+gcc-4.3.patch"
|
|
}
|
|
|
|
src_compile() {
|
|
econf --disable-dependency-tracking \
|
|
$(use_enable alsa alsa-midi) \
|
|
$(use_enable !hardened dynamic-x86) \
|
|
$(use_enable debug) \
|
|
|| die
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
dodoc AUTHORS ChangeLog NEWS README THANKS
|
|
prepgamesdirs
|
|
}
|