summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-12-25 23:30:03 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-12-25 23:30:03 +0000
commitc37c911b33615fdc644a43a9bcb9b7748ee3e463 (patch)
tree63fc1dc8e64e8997a63e0f2fac54e47f376d653a /app-emulation
parentChanged SRC_URI. Fixes #12703. (diff)
downloadhistorical-c37c911b33615fdc644a43a9bcb9b7748ee3e463.tar.gz
historical-c37c911b33615fdc644a43a9bcb9b7748ee3e463.tar.bz2
historical-c37c911b33615fdc644a43a9bcb9b7748ee3e463.zip
new version
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/advancemame/ChangeLog8
-rw-r--r--app-emulation/advancemame/advancemame-0.62.2.ebuild119
-rw-r--r--app-emulation/advancemame/files/digest-advancemame-0.62.23
3 files changed, 129 insertions, 1 deletions
diff --git a/app-emulation/advancemame/ChangeLog b/app-emulation/advancemame/ChangeLog
index 242acb5a36cb..d21b2a49fa74 100644
--- a/app-emulation/advancemame/ChangeLog
+++ b/app-emulation/advancemame/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/advancemame
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/advancemame/ChangeLog,v 1.5 2002/12/23 17:48:23 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/advancemame/ChangeLog,v 1.6 2002/12/25 23:30:03 azarah Exp $
+
+*advancemame-0.62.2 (25 Dec 2002)
+
+ 25 Dec 2002; Martin Schlemmer <azarah@gentoo.org> advancemame-0.62.2.ebuild :
+
+ New version.
23 Dec 2002; Martin Schlemmer <azarah@gentoo.org> advancemame-0.61.1.ebuild :
diff --git a/app-emulation/advancemame/advancemame-0.62.2.ebuild b/app-emulation/advancemame/advancemame-0.62.2.ebuild
new file mode 100644
index 000000000000..83bb5f996ecd
--- /dev/null
+++ b/app-emulation/advancemame/advancemame-0.62.2.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/advancemame/advancemame-0.62.2.ebuild,v 1.1 2002/12/25 23:30:03 azarah Exp $
+
+IUSE=""
+
+inherit eutils
+
+# This build we configure to explicitly use SDL, as it is very
+# difficult to get it working with fb or svgalib support. Anyway,
+# it do not look as good ;-)
+
+ADVMNU_VER="2.2.2"
+
+MY_PV="$(echo ${PV} | cut -d. -f1,2)"
+S="${WORKDIR}/advmame"
+DESCRIPTION="AdvanceMAME is a GNU/Linux port of the MAME emulator, with GUI menu."
+SRC_URI="mirror://sourceforge/advancemame/${P}.tar.gz
+ mirror://sourceforge/advancemame/advancemenu-${ADVMNU_VER}.tar.gz
+ http://mbnet.fi/~gridle/mame${MY_PV/\.}s.zip
+ http://www.mame.net/zips/mame${MY_PV/\.}s.zip
+ http://roms.mame.dk/emu/mame${MY_PV/\.}s.zip"
+HOMEPAGE="http://advancemame.sourceforge.net/"
+
+LICENSE="GPL-2 xmame"
+SLOT="0"
+KEYWORDS="~x86 -ppc"
+
+RDEPEND="virtual/glibc
+ app-arch/unzip
+ >=dev-lang/nasm-0.98
+ >=media-libs/libsdl-1.2.3
+ slang? ( sys-libs/slang )
+ svga? ( >=media-libs/svgalib-1.9 )"
+
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers"
+
+
+src_unpack() {
+ unpack ${A}
+
+ mkdir -p ${S}
+
+ cd ${S}
+ # Unpack mame and advacemame
+ unzip -aa ${WORKDIR}/MAME.ZIP || die
+ cp -adf ${WORKDIR}/${P}/* .
+ cp -adf ${WORKDIR}/advancemenu-${ADVMNU_VER}/* .
+
+ # This one is from MAME.ZIP, and breaks things if present
+ rm -f makefile
+
+ # Fix type-o in configue script
+ # <azarah@gentoo.org> (20 Nov 2002)
+ epatch ${FILESDIR}/${PN}-0.62.0-sdl-configure.patch
+
+ cd ${S}/src
+ # Apply the advancemame patch to the mame sources
+ epatch ../advance/advmame.dif
+
+ for x in os.c vslang.c
+ do
+ cp -f ${S}/advance/linux/${x} ${S}/advance/linux/${x}.orig
+ sed -e 's:slang/slang.h:slang.h:' \
+ ${S}/advance/linux/${x}.orig > ${S}/advance/linux/${x}
+ rm -f ${S}/advance/linux/${x}.orig
+ done
+
+ # Fix manpage/doc install location
+ cp -f ${S}/advance/advance.mak ${S}/advance/advance.mak.orig
+ sed -e 's:$(PREFIX)/doc/advance:$(PREFIX)/share/doc/$(PF):g' \
+ -e 's:$(PREFIX)/man/man1:$(PREFIX)/share/man/man1:g' \
+ ${S}/advance/advance.mak.orig > ${S}/advance/advance.mak
+ rm -f ${S}/advance/advance.mak.orig
+}
+
+src_compile() {
+ local myconf=""
+
+ use fbcon || myconf="${myconf} --disable-fb"
+
+ use oss || myconf="${myconf} --disable-oss"
+
+ use slang || myconf="${myconf} --disable-slang"
+
+ use svga || myconf="${myconf} --disable-svgalib"
+
+ # Configure with explicit SDL support
+ # NOTE: do not use econf, as we should not
+ # pass --host ...
+ ./configure \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --with-system=sdl \
+ --enable-pthread \
+ ${myconf} || die
+
+ emake || die
+}
+
+src_install() {
+ # The install script do not create this one
+ dodir /usr/bin
+ make PREFIX=${D}/usr install || die
+
+ dodir /usr/share/advance/{artwork,diff,image,rom,sample,snap}
+
+ dodoc COPYING HISTORY README RELEASE whatsnew.txt
+ dodoc docs/{ctrlr.txt,listinfo.txt,mame.txt}
+ # Zip the docs that was installed by 'make install'
+ gzip ${D}/usr/share/doc/${PF}/*.txt
+
+ # Move the html pages the the correct location
+ dodir /usr/share/doc/${PF}/html
+ mv -f ${D}/usr/share/doc/${PF}/*.html ${D}/usr/share/doc/${PF}/html
+}
+
diff --git a/app-emulation/advancemame/files/digest-advancemame-0.62.2 b/app-emulation/advancemame/files/digest-advancemame-0.62.2
new file mode 100644
index 000000000000..9d6f7aa8a0e1
--- /dev/null
+++ b/app-emulation/advancemame/files/digest-advancemame-0.62.2
@@ -0,0 +1,3 @@
+MD5 b854f14be9db0984a9d87e57dc822993 advancemame-0.62.2.tar.gz 1041744
+MD5 7876e5eceac991e7cc559eb76e5349ff advancemenu-2.2.2.tar.gz 1033888
+MD5 e1a175bb0265c2a03da3b881ee2a3a49 mame062s.zip 6375517