summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2004-03-05 13:29:09 +0000
committerDavid Holm <dholm@gentoo.org>2004-03-05 13:29:09 +0000
commitd96d4e3d11cab39dd3e759bce811ea0e3a071817 (patch)
tree33f70e44aa47fe110614d84ade47fe5bc70831b7 /app-emulation/uae
parentstable on sparc (Manifest recommit) (diff)
downloadgentoo-2-d96d4e3d11cab39dd3e759bce811ea0e3a071817.tar.gz
gentoo-2-d96d4e3d11cab39dd3e759bce811ea0e3a071817.tar.bz2
gentoo-2-d96d4e3d11cab39dd3e759bce811ea0e3a071817.zip
Added splitter script from Michal Januszewski (spock@g.o)
Diffstat (limited to 'app-emulation/uae')
-rw-r--r--app-emulation/uae/ChangeLog7
-rw-r--r--app-emulation/uae/files/split_cpuemu.pl32
-rw-r--r--app-emulation/uae/uae-0.8.25_pre20040302.ebuild19
3 files changed, 50 insertions, 8 deletions
diff --git a/app-emulation/uae/ChangeLog b/app-emulation/uae/ChangeLog
index 0c65d3ff164b..fa7fd3604c08 100644
--- a/app-emulation/uae/ChangeLog
+++ b/app-emulation/uae/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/uae
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.14 2004/03/04 21:04:12 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.15 2004/03/05 13:29:09 dholm Exp $
+
+ 05 Mar 2004; David Holm <dholm@gentoo.org> uae-0.8.25_pre20040302.ebuild,
+ files/split_cpuemu.pl:
+ Added split script from Michal Januszewski which reduces the amount of time
+ and memory needed to compile the CPU-core.
04 Mar 2004; David Holm <dholm@gentoo.org> uae-0.8.25_pre20040302.ebuild,
files/install_libscg_gentoo:
diff --git a/app-emulation/uae/files/split_cpuemu.pl b/app-emulation/uae/files/split_cpuemu.pl
new file mode 100644
index 000000000000..0ddacecc6c87
--- /dev/null
+++ b/app-emulation/uae/files/split_cpuemu.pl
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+
+open(INPUT, "<cpuemu_6.c");
+open(OUT1, ">cpuemu_6.t");
+open(OUT2, ">cpuemu_7.c");
+
+$header = 1;
+$part = 0;
+
+while ($line = <INPUT>) {
+
+ $size += length($line);
+
+ if (($line =~ /^#/ || $line eq "\n") && ($line ne "#ifdef PART_1\n") && $header) {
+ print OUT1 $line;
+ print OUT2 $line;
+ } else {
+
+ $header = 0;
+
+ if ($line ne "#ifdef PART_4\n" && $part == 0) {
+ print OUT1 $line;
+ } else {
+ $part = 1;
+ print OUT2 $line;
+ }
+ }
+}
+
+close(OUT2);
+close(OUT1);
+close(INPUT);
diff --git a/app-emulation/uae/uae-0.8.25_pre20040302.ebuild b/app-emulation/uae/uae-0.8.25_pre20040302.ebuild
index 0ef924c0e572..a9c99d568716 100644
--- a/app-emulation/uae/uae-0.8.25_pre20040302.ebuild
+++ b/app-emulation/uae/uae-0.8.25_pre20040302.ebuild
@@ -1,8 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.25_pre20040302.ebuild,v 1.2 2004/03/04 21:04:12 dholm Exp $
-
-inherit flag-o-matic
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.25_pre20040302.ebuild,v 1.3 2004/03/05 13:29:09 dholm Exp $
MY_PV="0.8.25-20040302"
S="${WORKDIR}/${PN}-${MY_PV}"
@@ -22,18 +20,25 @@ DEPEND="X? ( virtual/x11 gtk? x11-libs/gtk+ ) :
games-emulation/caps"
src_compile() {
- ewarn "Compiling the CPU-core requires a substantial amount of RAM."
- ewarn "Make sure that you have at least 512MB of RAM+SWAP available."
-
- replace-flags "-O3" "-O2"
use sdl && myconf="--with-sdl-sound --with-sdl-gfx"
+ cp ${FILESDIR}/split_cpuemu.pl ${S}/src
+ chmod +x ${S}/src/split_cpuemu.pl
+
econf ${myconf} \
--enable-threads \
--enable-scsi-device \
--with-libscg-includedir=/usr/include/scsilib \
|| die "./configure failed"
+ cd ${S}/src
+
+ sed -ir 's#cpuemu_6.\([a-z]*\)#cpuemu_6.\1 cpuemu_7.\1#g' Makefile
+ sed -ir 's#cpuemu_nf_6.\([a-z]*\)#cpuemu_nf_6.\1 cpuemu_nf_7.\1#g' Makefile
+ sed -ir 's#\(./tools/build68k <../src/table68k >cpudefs.c\)#\1\n ./split_cpuemu.pl; mv cpuemu_6.t cpuemu_6.c#' Makefile
+
+ cd ${S}
+
emake -j1 || die "emake failed"
}