/[gentoo-x86]/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild
Gentoo

Contents of /app-emulation/dosemu/dosemu-1.4.1_pre20130107-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 5 18:04:54 2013 UTC (5 years, 9 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -2 lines
Respect AR (bug #483740 by Agostino Sarubbo).

(Portage version: 2.2.0_alpha194_p2/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2013 Gentoo Foundation
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_pre20130107-r3.ebuild,v 1.1 2013/08/05 10:24:20 slyfox Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic pax-utils toolchain-funcs
8
9 P_FD="dosemu-freedos-1.0-bin"
10 COMMIT="15cfb41ff20a052769d753c3262c57ecb050ad71"
11
12 DESCRIPTION="DOS Emulator"
13 HOMEPAGE="http://www.dosemu.org/"
14 SRC_URI="mirror://sourceforge/dosemu/${P_FD}.tgz
15 http://sourceforge.net/code-snapshots/git/d/do/dosemu/code.git/dosemu-code-${COMMIT}.zip -> ${P}.zip"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="-* ~amd64 ~x86"
20 IUSE="X svga gpm debug alsa sndfile fluidsynth"
21
22 RDEPEND="X? ( x11-libs/libX11
23 x11-libs/libXxf86vm
24 x11-libs/libXau
25 x11-libs/libXext
26 x11-libs/libXdmcp
27 x11-apps/xset
28 x11-apps/xlsfonts
29 x11-apps/bdftopcf
30 x11-apps/mkfontdir )
31 svga? ( media-libs/svgalib )
32 gpm? ( sys-libs/gpm )
33 alsa? ( media-libs/alsa-lib )
34 sndfile? ( media-libs/libsndfile )
35 fluidsynth? ( media-sound/fluidsynth
36 media-sound/fluid-soundfont )
37 media-libs/libsdl
38 >=sys-libs/slang-1.4"
39
40 DEPEND="${RDEPEND}
41 X? ( x11-proto/xf86dgaproto )
42 >=sys-devel/autoconf-2.57"
43
44 S="${WORKDIR}/${PN}-code-${COMMIT}"
45
46 src_prepare() {
47 epatch "${FILESDIR}"/${P}-fortify.patch
48
49 # Has problems with -O3 on some systems
50 replace-flags -O[3-9] -O2
51
52 # This one is from media-sound/fluid-soundfont (bug #479534)
53 sed "s,/usr/share/soundfonts/default.sf2,${EPREFIX}/usr/share/sounds/sf2/FluidR3_GM.sf2,"\
54 -i src/plugin/fluidsynth/mid_o_flus.c || die
55 }
56
57 src_configure() {
58 econf $(use_with X x) \
59 $(use_with svga svgalib) \
60 $(use_enable debug) \
61 $(use_with gpm) \
62 $(use_with alsa) \
63 $(use_with sndfile) \
64 $(use_with fluidsynth) \
65 --with-fdtarball="${DISTDIR}"/${P_FD}.tgz \
66 --sysconfdir="${EPREFIX}"/etc/dosemu/ \
67 --with-docdir="${EPREFIX}"/usr/share/doc/${PF}
68 }
69
70 src_compile() {
71 emake AR=$(tc-getAR)
72 }
73
74 src_install() {
75 default
76
77 # r - randmmap: dosemu tries to get address mapping
78 # exactly where asked, loops otherwise.
79 # m - allow RWX mapping: as it's an emulator / code loader
80 pax-mark -mr "${ED}/usr/bin/dosemu.bin"
81 }

  ViewVC Help
Powered by ViewVC 1.1.20