/[gentoo-x86]/app-emulation/e-uae/e-uae-0.8.28-r3.ebuild
Gentoo

Contents of /app-emulation/e-uae/e-uae-0.8.28-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Mar 27 10:22:51 2011 UTC (3 years, 9 months ago) by nirbheek
Branch: MAIN
Changes since 1.9: +5 -3 lines
Fix slot-dep on gtk+

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/e-uae-0.8.28-r3.ebuild,v 1.9 2007/07/22 06:28:08 pva Exp $
4
5 EAPI="1"
6
7 inherit eutils flag-o-matic pax-utils
8
9 DESCRIPTION="The Ubiquitous Amiga Emulator with an emulation core largely based on WinUAE"
10 HOMEPAGE="http://www.rcdrummond.net/uae/"
11 SRC_URI="http://www.rcdrummond.net/uae/${P}/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="X dga ncurses sdl gtk alsa oss sdl-sound capslib"
17
18 # Note: opposed to ./configure --help zlib support required! Check
19 # src/Makefile.am that includes zfile.c unconditionaly.
20 RDEPEND="X? ( x11-libs/libXt
21 x11-libs/libxkbfile
22 x11-libs/libXext
23 dga? ( x11-libs/libXxf86dga
24 x11-libs/libXxf86vm )
25 )
26 !X? ( sdl? ( media-libs/libsdl )
27 !sdl? ( sys-libs/ncurses ) )
28 alsa? ( media-libs/alsa-lib )
29 !alsa? ( sdl-sound? ( media-libs/sdl-sound ) )
30 gtk? ( x11-libs/gtk+:2 )
31 capslib? ( games-emulation/caps )
32 sys-libs/zlib
33 virtual/cdrtools"
34
35 DEPEND="$RDEPEND
36 X? ( dga? ( x11-proto/xf86vidmodeproto
37 x11-proto/xf86dgaproto ) )"
38
39 pkg_setup() {
40 # Sound setup.
41 if use alsa; then
42 elog "Choosing alsa as sound target to use."
43 myconf="--with-alsa --without-sdl-sound"
44 elif use sdl-sound ; then
45 if ! use sdl ; then
46 ewarn "sdl-sound is not enabled because sdl is switched off. Leaving"
47 ewarn "sound on oss autodetection."
48 myconf="--without-alsa --without-sdl-sound"
49 ebeep
50 else
51 elog "Choosing sdl-sound as sound target to use."
52 myconf="--without-alsa --with-sdl-sound"
53 fi
54 elif use oss ; then
55 elog "Choosing oss as sound target to use."
56 ewarn "oss will be autodetected. See output of configure."
57 myconf="--without-alsa --without-sdl-sound"
58 else
59 ewarn "There is no alsa, sdl-sound or oss in USE. Sound target disabled!"
60 myconf="--disable-audio"
61 fi
62
63 # VIDEO setup. X is autodetected (there is no --with-X option).
64 if use X ; then
65 elog "Using X11 for video output."
66 myconf="$myconf --without-curses --without-sdl-gfx"
67 use dga && myconf="$myconf --enable-dga --enable-vidmode"
68 elif use sdl ; then
69 elog "Using sdl for video output."
70 myconf="$myconf --with-sdl --with-sdl-gfx --without-curses"
71 elif use ncurses; then
72 elog "Using ncurses for video output."
73 myconf="$myconf --with-curses --without-sdl-gfx"
74 else
75 ewarn "There is no X or sdl or ncurses in USE!"
76 ewarn "Following upstream falling back on ncurses."
77 myconf="$myconf --with-curses --without-sdl-gfx"
78 ebeep
79 fi
80
81 use gtk && myconf="$myconf --enable-ui --enable-threads"
82 use gtk || myconf="$myconf --disable-ui"
83
84 use capslib && myconf="$myconf --with-caps"
85
86 myconf="$myconf --with-zlib"
87
88 # And explicitly state defaults:
89 myconf="$myconf --enable-aga"
90 myconf="$myconf --enable-autoconfig --enable-scsi-device --enable-cdtv --enable-cd32"
91 myconf="$myconf --enable-bsdsock"
92 }
93
94 src_unpack() {
95 unpack ${A}
96 cd "${S}"
97
98 epatch "${FILESDIR}/${P}-shm-crash.patch"
99 epatch "${FILESDIR}/${P}-fix-joystick-conflicts.patch"
100 epatch "${FILESDIR}/${P}-fix-atoscroll-screen-support.patch"
101 epatch "${FILESDIR}/${P}-fix-JIT-cache-on-NX-cpu.patch"
102 epatch "${FILESDIR}/${P}-gtkui_64bit_fix.diff"
103 epatch "${FILESDIR}/${P}-themes_rendering_fix.diff"
104 }
105
106 src_compile() {
107 strip-flags
108
109 econf ${myconf} \
110 --with-libscg-includedir=/usr/include/scsilib \
111 || die "./configure failed"
112
113 emake -j1 || die "emake failed"
114 }
115
116 src_install() {
117 make DESTDIR="${D}" install || die "make install failed"
118
119 # The emulator needs to be able to create executable heap
120 # - doesn't need trampoline emulation though.
121 pax-mark me "${D}/usr/bin/uae"
122
123 insinto /usr/share/uae/amiga-tools
124 doins amiga/{*hack,trans*,uae*,*.library}
125
126 # Rename it to e-uae
127 mv "${D}/usr/bin/uae" "${D}/usr/bin/e-uae"
128 mv "${D}/usr/bin/readdisk" "${D}/usr/bin/e-readdisk"
129 mv "${D}/usr/share/uae" "${D}/usr/share/${PN}"
130
131 dodoc docs/* README ChangeLog
132 }

  ViewVC Help
Powered by ViewVC 1.1.20