Lines 1-22
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/dosemu/dosemu-1.4.1_pre20091009.ebuild,v 1.4 2013/06/11 19:40:45 slyfox Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic |
5 |
EAPI="5" |
|
|
6 |
|
7 |
inherit flag-o-matic |
6 |
|
8 |
|
7 |
P_FD="dosemu-freedos-1.0-bin" |
9 |
P_FD="dosemu-freedos-1.0-bin" |
|
|
10 |
COMMIT="15cfb41ff20a052769d753c3262c57ecb050ad71" |
11 |
|
8 |
DESCRIPTION="DOS Emulator" |
12 |
DESCRIPTION="DOS Emulator" |
9 |
HOMEPAGE="http://www.dosemu.org/" |
13 |
HOMEPAGE="http://www.dosemu.org/" |
10 |
SRC_URI="mirror://sourceforge/dosemu/${P_FD}.tgz |
14 |
SRC_URI="mirror://sourceforge/dosemu/${P_FD}.tgz |
11 |
mirror://gentoo/${P}.tar.bz2" |
15 |
http://sourceforge.net/code-snapshots/git/d/do/dosemu/code.git/dosemu-code-${COMMIT}.zip -> ${P}.zip" |
12 |
|
16 |
|
13 |
LICENSE="GPL-2" |
17 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
18 |
SLOT="0" |
15 |
KEYWORDS="-* amd64 x86" |
19 |
KEYWORDS="-* ~amd64 ~x86" |
16 |
IUSE="X svga gpm debug alsa sndfile" |
20 |
IUSE="X svga gpm debug alsa sndfile fluidsynth" |
17 |
|
21 |
|
18 |
RDEPEND="X? ( x11-libs/libXxf86vm |
22 |
RDEPEND="X? ( x11-libs/libX11 |
|
|
23 |
x11-libs/libXxf86vm |
19 |
x11-libs/libXau |
24 |
x11-libs/libXau |
|
|
25 |
x11-libs/libXext |
20 |
x11-libs/libXdmcp |
26 |
x11-libs/libXdmcp |
21 |
x11-apps/xset |
27 |
x11-apps/xset |
22 |
x11-apps/xlsfonts |
28 |
x11-apps/xlsfonts |
Lines 26-64
Link Here
|
26 |
gpm? ( sys-libs/gpm ) |
32 |
gpm? ( sys-libs/gpm ) |
27 |
alsa? ( media-libs/alsa-lib ) |
33 |
alsa? ( media-libs/alsa-lib ) |
28 |
sndfile? ( media-libs/libsndfile ) |
34 |
sndfile? ( media-libs/libsndfile ) |
|
|
35 |
fluidsynth? ( media-sound/fluidsynth ) |
36 |
media-libs/libsdl |
29 |
>=sys-libs/slang-1.4" |
37 |
>=sys-libs/slang-1.4" |
30 |
|
38 |
|
31 |
DEPEND="${RDEPEND} |
39 |
DEPEND="${RDEPEND} |
32 |
X? ( x11-proto/xf86dgaproto ) |
40 |
X? ( x11-proto/xf86dgaproto ) |
33 |
>=sys-devel/autoconf-2.57" |
41 |
>=sys-devel/autoconf-2.57" |
34 |
S="${WORKDIR}/${PN}" |
|
|
35 |
|
42 |
|
36 |
src_compile() { |
43 |
S="${WORKDIR}/${PN}-code-${COMMIT}" |
37 |
epatch "${FILESDIR}"/${P}-flex.patch #437074 |
|
|
38 |
|
44 |
|
|
|
45 |
src_prepare() { |
39 |
# Has problems with -O3 on some systems |
46 |
# Has problems with -O3 on some systems |
40 |
replace-flags -O[3-9] -O2 |
47 |
replace-flags -O[3-9] -O2 |
41 |
|
48 |
|
42 |
# Fix compilation on hardened |
49 |
# Fix compilation on hardened |
43 |
append-flags -fno-pic |
50 |
append-flags -fno-pic |
|
|
51 |
} |
44 |
|
52 |
|
|
|
53 |
src_configure() { |
45 |
unset KERNEL |
54 |
unset KERNEL |
46 |
|
55 |
|
47 |
econf `use_with X x` \ |
56 |
econf $(use_with X x) \ |
48 |
`use_enable svga svgalib` \ |
57 |
$(use_with svga svgalib) \ |
49 |
`use_enable debug` \ |
58 |
$(use_enable debug) \ |
50 |
`use_with gpm` \ |
59 |
$(use_with gpm) \ |
51 |
`use_with alsa` \ |
60 |
$(use_with alsa) \ |
52 |
`use_with sndfile` \ |
61 |
$(use_with sndfile) \ |
|
|
62 |
$(use_with fluidsynth) \ |
53 |
--with-fdtarball="${DISTDIR}"/${P_FD}.tgz \ |
63 |
--with-fdtarball="${DISTDIR}"/${P_FD}.tgz \ |
54 |
--sysconfdir=/etc/dosemu/ \ |
64 |
--sysconfdir=/etc/dosemu/ \ |
55 |
--with-docdir=/usr/share/doc/${PF} || die |
65 |
--with-docdir=/usr/share/doc/${PF} |
56 |
|
|
|
57 |
emake || die |
58 |
} |
66 |
} |
59 |
|
67 |
|
60 |
src_install() { |
68 |
src_install() { |
61 |
emake DESTDIR="${D}" install || die |
69 |
default |
62 |
# Don't remove COPYING, see bug #137286 |
70 |
# Don't remove COPYING, see bug #137286 |
63 |
dodoc BUGS ChangeLog COPYING NEWS README THANKS || die |
71 |
dodoc COPYING |
64 |
} |
72 |
} |