summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-02-16 12:23:32 +0000
committerPacho Ramos <pacho@gentoo.org>2013-02-16 12:23:32 +0000
commitd9481594b6626227906ea8bef86bbdd4d62172d7 (patch)
tree94de371f5107fb49e22ae3969b40bad9dec53fc0 /app-emulation/uae
parentCleanup due bug #96436 (diff)
downloadgentoo-2-d9481594b6626227906ea8bef86bbdd4d62172d7.tar.gz
gentoo-2-d9481594b6626227906ea8bef86bbdd4d62172d7.tar.bz2
gentoo-2-d9481594b6626227906ea8bef86bbdd4d62172d7.zip
Cleanup due bug #96436
(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'app-emulation/uae')
-rw-r--r--app-emulation/uae/ChangeLog14
-rw-r--r--app-emulation/uae/files/uae-0.8.25-close_window_hack.diff33
-rw-r--r--app-emulation/uae/files/uae-0.8.25-fix_save_config.diff16
-rw-r--r--app-emulation/uae/files/uae-0.8.25-makefile_more_cleaning.diff16
-rw-r--r--app-emulation/uae/files/uae-0.8.25-memory_leaks_in_gui.diff29
-rw-r--r--app-emulation/uae/files/uae-0.8.26-gtk-ui-cleanup.patch38
-rw-r--r--app-emulation/uae/metadata.xml6
-rw-r--r--app-emulation/uae/uae-0.8.26-r1.ebuild179
-rw-r--r--app-emulation/uae/uae-0.8.29.ebuild175
9 files changed, 12 insertions, 494 deletions
diff --git a/app-emulation/uae/ChangeLog b/app-emulation/uae/ChangeLog
index 713a8c733f0a..0699c98d65ab 100644
--- a/app-emulation/uae/ChangeLog
+++ b/app-emulation/uae/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-emulation/uae
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.39 2011/03/27 10:31:29 nirbheek Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.40 2013/02/16 12:23:31 pacho Exp $
+
+ 16 Feb 2013; Pacho Ramos <pacho@gentoo.org>
+ -files/uae-0.8.25-close_window_hack.diff,
+ -files/uae-0.8.25-fix_save_config.diff,
+ -files/uae-0.8.25-makefile_more_cleaning.diff,
+ -files/uae-0.8.25-memory_leaks_in_gui.diff,
+ -files/uae-0.8.26-gtk-ui-cleanup.patch, -uae-0.8.26-r1.ebuild,
+ -uae-0.8.29.ebuild, metadata.xml:
+ Cleanup due bug #96436
27 Mar 2011; Nirbheek Chauhan <nirbheek@gentoo.org> uae-0.8.26-r1.ebuild,
uae-0.8.29.ebuild, uae-0.8.29-r1.ebuild:
@@ -182,4 +191,3 @@
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.
-
diff --git a/app-emulation/uae/files/uae-0.8.25-close_window_hack.diff b/app-emulation/uae/files/uae-0.8.25-close_window_hack.diff
deleted file mode 100644
index 8607eb79710b..000000000000
--- a/app-emulation/uae/files/uae-0.8.25-close_window_hack.diff
+++ /dev/null
@@ -1,33 +0,0 @@
-The program did't quit after closing the GUI window with the close button, so
-we force the backend to exit, just to make the user happy.
-
-Antonio Ospite <ospite@studenti.unina.it>
-
-diff -bpruN uae-0.8.25/src/gtkui.c uae-0.8.25_patched/src/gtkui.c
---- uae-0.8.25/src/gtkui.c 2006-06-07 17:41:49.000000000 +0200
-+++ uae-0.8.25_patched/src/gtkui.c 2006-06-08 22:38:34.000000000 +0200
-@@ -557,7 +557,8 @@ static int my_idle (void)
- }
- }
-
-- if (gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook)) == 0) {
-+ int ret = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook));
-+ if (ret == 0) {
- for (i = 0; i < 5; i++) {
- unsigned int mask = 1 << i;
- unsigned int on = leds & mask;
-@@ -570,6 +571,14 @@ static int my_idle (void)
- }
- prevledstate = leds;
- }
-+
-+ /* XXX Ugly hack here:
-+ * exit if the gui gives error,
-+ * this happens when we close the window.
-+ */
-+ if (ret < 0)
-+ exit(0);
-+
- out:
- return 1;
- }
diff --git a/app-emulation/uae/files/uae-0.8.25-fix_save_config.diff b/app-emulation/uae/files/uae-0.8.25-fix_save_config.diff
deleted file mode 100644
index c8b6630beead..000000000000
--- a/app-emulation/uae/files/uae-0.8.25-fix_save_config.diff
+++ /dev/null
@@ -1,16 +0,0 @@
-The program did't save the changed version of the preferences structure.
-
-Antonio Ospite <ospite@studenti.unina.it>
-
-diff -bpruN uae-0.8.25/src/gtkui.c uae-0.8.25_patched/src/gtkui.c
---- uae-0.8.25/src/gtkui.c 2006-06-08 23:57:36.000000000 +0200
-+++ uae-0.8.25_patched/src/gtkui.c 2006-06-09 09:31:08.000000000 +0200
-@@ -282,7 +282,7 @@ static void save_config (void)
- write_log ("Error saving options file!\n");
- return;
- }
-- save_options (f, &currprefs);
-+ save_options (f, &changed_prefs);
- fclose (f);
- }
-
diff --git a/app-emulation/uae/files/uae-0.8.25-makefile_more_cleaning.diff b/app-emulation/uae/files/uae-0.8.25-makefile_more_cleaning.diff
deleted file mode 100644
index f6c1d42b19af..000000000000
--- a/app-emulation/uae/files/uae-0.8.25-makefile_more_cleaning.diff
+++ /dev/null
@@ -1,16 +0,0 @@
-Do some more cleaning, so we can build packages from the pristine upstream
-source even after the very first build.
-
-Antonio Ospite <ospite@studenti.unina.it>
-
-diff -pruN uae-0.8.25.orig/Makefile.in uae-0.8.25/Makefile.in
---- uae-0.8.25.orig/Makefile.in 2006-06-07 15:31:17.000000000 +0200
-+++ uae-0.8.25/Makefile.in 2006-06-07 16:12:12.000000000 +0200
-@@ -15,3 +15,7 @@ streifenfrei:
- cd src && $(MAKE) streifenfrei
- rm -f uae readdisk
- rm -f config.cache config.log config.status Makefile
-+ rm -f confdefs.h
-+ rm -f src/tools/Makefile src/tools/config.* \
-+ src/tools/cpudefs.c src/tools/sysconfig.h
-+ rm -f src/md-fpp.h
diff --git a/app-emulation/uae/files/uae-0.8.25-memory_leaks_in_gui.diff b/app-emulation/uae/files/uae-0.8.25-memory_leaks_in_gui.diff
deleted file mode 100644
index 9ce71c261dac..000000000000
--- a/app-emulation/uae/files/uae-0.8.25-memory_leaks_in_gui.diff
+++ /dev/null
@@ -1,29 +0,0 @@
-## 02_memory_leaks_in_gui.dpatch by Florian Ernst <florian@debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Fix memory leaks in GUI code as mentioned in bug#201563
-
-@DPATCH@
-diff -urNad uae-0.8.25~/src/gtkui.c uae-0.8.25/src/gtkui.c
---- uae-0.8.25~/src/gtkui.c 2005-07-02 18:24:02.000000000 +0200
-+++ uae-0.8.25/src/gtkui.c 2005-11-08 01:12:34.000000000 +0100
-@@ -798,7 +798,7 @@
- uae_sem_post (&gui_sem);
- write_comm_pipe_int (&from_gui_pipe, 1, 0);
- write_comm_pipe_int (&from_gui_pipe, filesel_active, 1);
-- gtk_label_set_text (GTK_LABEL (disk_text_widget[filesel_active]), strdup (s));
-+ gtk_label_set_text (GTK_LABEL (disk_text_widget[filesel_active]), s);
- filesel_active = -1;
- enable_disk_buttons (1);
- gtk_widget_destroy (disk_selector);
-diff -urNad uae-0.8.25~/src/xwin.c uae-0.8.25/src/xwin.c
---- uae-0.8.25~/src/xwin.c 2005-07-02 18:24:06.000000000 +0200
-+++ uae-0.8.25/src/xwin.c 2005-11-08 01:13:01.000000000 +0100
-@@ -758,6 +758,7 @@
- hints->window_group = mywin;
- hints->flags = WindowGroupHint;
- XSetWMHints(display, mywin, hints);
-+ XFree(hints);
-
- XMapRaised (display, mywin);
- XSync (display, 0);
diff --git a/app-emulation/uae/files/uae-0.8.26-gtk-ui-cleanup.patch b/app-emulation/uae/files/uae-0.8.26-gtk-ui-cleanup.patch
deleted file mode 100644
index a06f350c93db..000000000000
--- a/app-emulation/uae/files/uae-0.8.26-gtk-ui-cleanup.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- ./src/gtkui.c.orig 2007-08-12 18:18:21.000000000 +0400
-+++ ./src/gtkui.c 2007-08-12 18:22:19.000000000 +0400
-@@ -752,8 +752,8 @@
- return;
-
- write_comm_pipe_int (&from_gui_pipe, 0, 0);
-- write_comm_pipe_int (&from_gui_pipe, (int)data, 1);
-- gtk_label_set_text (GTK_LABEL (disk_text_widget[(int)data]), "");
-+ write_comm_pipe_int (&from_gui_pipe, GPOINTER_TO_INT(data), 1);
-+ gtk_label_set_text (GTK_LABEL (disk_text_widget[GPOINTER_TO_INT(data)]), "");
- }
-
- static void pause_uae (void)
-@@ -841,7 +841,7 @@
-
- static void did_insert (GtkWidget *w, gpointer data)
- {
-- int n = (int)data;
-+ int n = GPOINTER_TO_INT(data);
- if (filesel_active != -1)
- return;
- filesel_active = n;
-@@ -1188,13 +1188,13 @@
- gtk_box_pack_start (GTK_BOX (buttonbox), thing, FALSE, TRUE, 0);
- gtk_widget_show (thing);
- disk_eject_widget[i] = thing;
-- gtk_signal_connect (GTK_OBJECT (thing), "clicked", (GtkSignalFunc) did_eject, (gpointer) i);
-+ gtk_signal_connect (GTK_OBJECT (thing), "clicked", (GtkSignalFunc) did_eject, GINT_TO_POINTER(i));
-
- thing = gtk_button_new_with_label ("Insert");
- gtk_box_pack_start (GTK_BOX (buttonbox), thing, FALSE, TRUE, 0);
- gtk_widget_show (thing);
- disk_insert_widget[i] = thing;
-- gtk_signal_connect (GTK_OBJECT (thing), "clicked", (GtkSignalFunc) did_insert, (gpointer) i);
-+ gtk_signal_connect (GTK_OBJECT (thing), "clicked", (GtkSignalFunc) did_insert, GINT_TO_POINTER(i));
- }
-
- add_empty_vbox (vbox);
diff --git a/app-emulation/uae/metadata.xml b/app-emulation/uae/metadata.xml
index f8cf22f61c4c..542646bcd47e 100644
--- a/app-emulation/uae/metadata.xml
+++ b/app-emulation/uae/metadata.xml
@@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
- <email>pva@gentoo.org</email>
+ <email>maintainer-needed@gentoo.org</email>
</maintainer>
<longdescription>
UAE is a mostly complete software emulation of the hardware of the
@@ -14,9 +14,5 @@
</longdescription>
<use>
<flag name='scsi'>Enable the uaescsi.device</flag>
- <flag name='sdl-sound'>Use <pkg>media-sound/sdl-sound</pkg> for audio
- output</flag>
- <flag name='ui'>Build the user interface (could be gtk or ncurses based,
- depending on sdl, dga, svga and aalib USE flags)</flag>
</use>
</pkgmetadata>
diff --git a/app-emulation/uae/uae-0.8.26-r1.ebuild b/app-emulation/uae/uae-0.8.26-r1.ebuild
deleted file mode 100644
index 692965e0212e..000000000000
--- a/app-emulation/uae/uae-0.8.26-r1.ebuild
+++ /dev/null
@@ -1,179 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.26-r1.ebuild,v 1.3 2011/03/27 10:31:29 nirbheek Exp $
-
-EAPI="1"
-
-inherit eutils
-
-DESCRIPTION="The Umiquious Amiga Emulator"
-HOMEPAGE="http://www.freiburg.linux.de/~uae/"
-SRC_URI="ftp://ftp.coresystems.de/pub/uae/sources/develop/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~amd64"
-IUSE="sdl X dga svga aalib oss alsa sdl-sound scsi ui"
-
-DEPEND="sdl? ( media-libs/libsdl
- media-libs/sdl-gfx
- ui? ( x11-libs/gtk+:2 )
- alsa? ( media-libs/alsa-lib )
- )
- !sdl? ( X? ( x11-libs/libXext
- dga? ( x11-libs/libXxf86dga
- x11-libs/libXxf86vm )
- ui? ( x11-libs/gtk+:2 )
- )
- !X? ( svga? ( media-libs/svgalib
- ui? ( sys-libs/ncurses ) )
- !svga? ( aalib? ( media-libs/aalib
- ui? ( sys-libs/ncurses ) ) )
- !aalib? ( media-libs/libsdl
- ui? ( x11-libs/gtk+:2 ) ) )
- alsa? ( media-libs/alsa-lib )
- )
- scsi? ( app-cdr/cdrtools )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/uae-0.8.25-allow_spaces_in_zip_filenames.diff
- epatch "${FILESDIR}"/uae-0.8.25-close_window_hack.diff
- epatch "${FILESDIR}"/uae-0.8.25-fix_save_config.diff
- epatch "${FILESDIR}"/${P}-gtk-ui-cleanup.patch
- epatch "${FILESDIR}"/uae-0.8.25-makefile_more_cleaning.diff
- epatch "${FILESDIR}"/uae-0.8.25-memory_leaks_in_gui.diff
- epatch "${FILESDIR}"/uae-0.8.25-struct_uae_wrong_fields_name.diff
- epatch "${FILESDIR}"/${P}-uae_reset_args.diff
- cp "${FILESDIR}"/sdlgfx.h "${S}"/src
-}
-
-pkg_setup() {
- # See configure.in for possible pathes of logic...
- echo
- elog "It was told by upstream developer Bernd Schmidt that sdl-sound is"
- elog "broken now and alsa driver seems to be not in best shape. So OSS"
- elog "(don't forget alsa emulation of OSS) is prefered, but it'll be"
- elog "autodetected and thus it's possible that uae misses it and you'll"
- elog "have no error but no sound too. Be carful and report this cases."
- echo
- if use sdl ; then
- elog "Enabling sdl for video output."
- my_config="$(use_with sdl) $(use_with sdl sdl-gfx)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- if use oss ; then
- elog "Disabling alsa and sdl-sound and falling back on oss autodetection."
- elog "You'll have to be carefull: if that fails you'll have no audio."
- my_config="${my_config} --without-sdl-sound --without-alsa"
- elif use sdl-sound ; then
- elog "Enabling sdl-sound for sound output."
- my_config="${my_config} $(use_with sdl-sound)"
- elif use alsa ; then
- elog "Enabling alsa for sound output."
- my_config="${my_config} --without-sdl-sound $(use_with alsa)"
- else
- elog "You have not enabled alsa or sdl-sound in USE."
- elog "Using sound output to file."
- my_config="${my_config} --enable-file-sound"
- fi
- else
- elog "Disabling sdl for all (video and sound)."
- my_config="--without-sdl"
- if use X ; then
- elog "Enabling X11 for video output."
- # Disabling all other GFX to be sure that we'll have what we want.
- my_config="${my_config} --without-svgalib --without-asciiart $(use_with X x)"
- use dga && my_config="${my_config} $(use_enable dga) $(use_enable X vidmode)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- else
- my_config="${my_config} --without-x"
- if use svga ; then
- elog "Enabling svga for video output."
- my_config="${my_config} $(use_with svga svgalib)"
- if use ui ; then
- elog "Using ncurses for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- elif use aalib ; then
- elog "Enabling ASCII art for video output."
- my_config="${my_config} $(use_with aalib svgalib)"
- if use ui ; then
- einfo "Using ncurses for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- else
- elog "You have not enabled sdl or X or svga or ncurses in USE!"
- elog "Video output is not selected. Falling back on sdl..."
- my_config="$(use_with sdl) $(use_with sdl sdl-gfx) $(use_with sdl-sound)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- fi
- fi
- if use oss ; then
- elog "Disabling alsa and sdl-sound and falling back on oss autodetection."
- elog "You'll have to be carefull: if that fails you'll have no audio."
- my_config="${my_config} --without-sdl-sound --without-alsa"
- elif use alsa ; then
- elog "Enabling alsa for sound output."
- my_config="${my_config} $(use_with alsa)"
- else
- use sdl-sound && ewarn "You can not have sdl-sound without sdl."
- elog "You have not enabled alsa in USE."
- elog "Using sound output to file."
- my_config="${my_config} --enable-file-sound"
- fi
- fi
- echo
- my_config="${my_config} $(use_enable scsi scsi-device)"
- my_config="${my_config} --enable-threads"
-}
-
-src_compile() {
- econf ${my_config} || die "configure failed"
- emake -j1 || die "emake failed"
-}
-
-src_install() {
- dobin uae readdisk || die
- cp docs/unix/README docs/README.unix
- rm -r docs/{AmigaOS,BeOS,pOS,translated,unix}
- dodoc docs/*
-
- insinto /usr/share/uae/amiga-tools
- doins amiga/{*hack,trans*,uae*}
-}
-
-pkg_postinst() {
- elog
- elog "Upstream recomends using SDL graphics (with an environment variable"
- elog "SDL_VIDEO_X11_XRANDR=1 for fullscreen support."
- echo
-}
diff --git a/app-emulation/uae/uae-0.8.29.ebuild b/app-emulation/uae/uae-0.8.29.ebuild
deleted file mode 100644
index f877fea95f99..000000000000
--- a/app-emulation/uae/uae-0.8.29.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.29.ebuild,v 1.2 2011/03/27 10:31:29 nirbheek Exp $
-
-EAPI="1"
-
-inherit eutils
-
-DESCRIPTION="The Umiquious Amiga Emulator"
-HOMEPAGE="http://www.amigaemulator.org/"
-SRC_URI="ftp://ftp.amigaemulator.org/pub/uae/sources/develop/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~amd64"
-IUSE="sdl X dga svga aalib oss alsa sdl-sound scsi ui"
-
-DEPEND="sdl? ( media-libs/libsdl
- media-libs/sdl-gfx
- ui? ( x11-libs/gtk+:2 )
- alsa? ( media-libs/alsa-lib )
- )
- !sdl? ( X? ( x11-libs/libXext
- dga? ( x11-libs/libXxf86dga
- x11-libs/libXxf86vm )
- ui? ( x11-libs/gtk+:2 )
- )
- !X? ( svga? ( media-libs/svgalib
- ui? ( sys-libs/ncurses ) )
- !svga? ( aalib? ( media-libs/aalib
- ui? ( sys-libs/ncurses ) ) )
- !aalib? ( media-libs/libsdl
- ui? ( x11-libs/gtk+:2 ) ) )
- alsa? ( media-libs/alsa-lib )
- )
- scsi? ( app-cdr/cdrtools )"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/uae-0.8.25-allow_spaces_in_zip_filenames.diff
- epatch "${FILESDIR}"/uae-0.8.25-struct_uae_wrong_fields_name.diff
- epatch "${FILESDIR}"/${PN}-0.8.26-uae_reset_args.diff
- cp "${FILESDIR}"/sdlgfx.h "${S}"/src
-}
-
-pkg_setup() {
- # See configure.in for possible pathes of logic...
- echo
- elog "It was told by upstream developer Bernd Schmidt that sdl-sound is"
- elog "broken now and alsa driver seems to be not in best shape. So OSS"
- elog "(don't forget alsa emulation of OSS) is prefered, but it'll be"
- elog "autodetected and thus it's possible that uae misses it and you'll"
- elog "have no error but no sound too. Be carful and report this cases."
- echo
- if use sdl ; then
- elog "Enabling sdl for video output."
- my_config="$(use_with sdl) $(use_with sdl sdl-gfx)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- if use oss ; then
- elog "Disabling alsa and sdl-sound and falling back on oss autodetection."
- elog "You'll have to be carefull: if that fails you'll have no audio."
- my_config="${my_config} --without-sdl-sound --without-alsa"
- elif use sdl-sound ; then
- elog "Enabling sdl-sound for sound output."
- my_config="${my_config} $(use_with sdl-sound)"
- elif use alsa ; then
- elog "Enabling alsa for sound output."
- my_config="${my_config} --without-sdl-sound $(use_with alsa)"
- else
- elog "You have not enabled alsa or sdl-sound in USE."
- elog "Using sound output to file."
- my_config="${my_config} --enable-file-sound"
- fi
- else
- elog "Disabling sdl for all (video and sound)."
- my_config="--without-sdl"
- if use X ; then
- elog "Enabling X11 for video output."
- # Disabling all other GFX to be sure that we'll have what we want.
- my_config="${my_config} --without-svgalib --without-asciiart $(use_with X x)"
- use dga && my_config="${my_config} $(use_enable dga) $(use_enable X vidmode)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- else
- my_config="${my_config} --without-x"
- if use svga ; then
- elog "Enabling svga for video output."
- my_config="${my_config} $(use_with svga svgalib)"
- if use ui ; then
- elog "Using ncurses for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- elif use aalib ; then
- elog "Enabling ASCII art for video output."
- my_config="${my_config} $(use_with aalib svgalib)"
- if use ui ; then
- einfo "Using ncurses for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- else
- elog "You have not enabled sdl or X or svga or ncurses in USE!"
- elog "Video output is not selected. Falling back on sdl..."
- my_config="$(use_with sdl) $(use_with sdl sdl-gfx) $(use_with sdl-sound)"
- # SELECT UI
- if use ui ; then
- elog "Using GTK+ for UI."
- my_config="${my_config} $(use_enable ui)"
- else
- elog "You do not have ui in USE. Disabling UI"
- my_config="${my_config} --disable-ui"
- fi
- fi
- fi
- if use oss ; then
- elog "Disabling alsa and sdl-sound and falling back on oss autodetection."
- elog "You'll have to be carefull: if that fails you'll have no audio."
- my_config="${my_config} --without-sdl-sound --without-alsa"
- elif use alsa ; then
- elog "Enabling alsa for sound output."
- my_config="${my_config} $(use_with alsa)"
- else
- use sdl-sound && ewarn "You can not have sdl-sound without sdl."
- elog "You have not enabled alsa in USE."
- elog "Using sound output to file."
- my_config="${my_config} --enable-file-sound"
- fi
- fi
- echo
- my_config="${my_config} $(use_enable scsi scsi-device)"
- my_config="${my_config} --enable-threads"
-}
-
-src_compile() {
- econf ${my_config} || die "configure failed"
- emake -j1 || die "emake failed"
-}
-
-src_install() {
- dobin uae readdisk || die
- cp docs/unix/README docs/README.unix
- rm -r docs/{AmigaOS,BeOS,pOS,translated,unix}
- dodoc docs/*
-
- insinto /usr/share/uae/amiga-tools
- doins amiga/{*hack,trans*,uae*}
-}
-
-pkg_postinst() {
- elog
- elog "Upstream recomends using SDL graphics (with an environment variable"
- elog "SDL_VIDEO_X11_XRANDR=1 for fullscreen support."
- echo
-}