diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-09 16:28:07 +0000 |
commit | 4449c749e4d0a531f4dffcd6bd11772e59ecbf81 (patch) | |
tree | 47ac23a46562d1736503b9b2447f81b34199c04e /games-emulation/raine | |
parent | New package - rename. (diff) | |
download | historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.gz historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.bz2 historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.zip |
welcome to games-emulation
Diffstat (limited to 'games-emulation/raine')
-rw-r--r-- | games-emulation/raine/ChangeLog | 8 | ||||
-rw-r--r-- | games-emulation/raine/Manifest | 5 | ||||
-rw-r--r-- | games-emulation/raine/files/Raine.desktop | 11 | ||||
-rw-r--r-- | games-emulation/raine/files/digest-raine-0.36.2 | 3 | ||||
-rw-r--r-- | games-emulation/raine/files/raine-allegro_4.1.5_fix.patch | 20 | ||||
-rw-r--r-- | games-emulation/raine/raine-0.36.2.ebuild | 77 |
6 files changed, 124 insertions, 0 deletions
diff --git a/games-emulation/raine/ChangeLog b/games-emulation/raine/ChangeLog new file mode 100644 index 000000000000..a956c8cd182a --- /dev/null +++ b/games-emulation/raine/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-emulation/raine +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/raine/ChangeLog,v 1.1 2003/09/09 16:26:50 vapier Exp $ + +*raine-0.36.2 (25 Nov 2002) + + 25 Nov 2002; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Javier Marcet <jmarcet@pobox.com>. diff --git a/games-emulation/raine/Manifest b/games-emulation/raine/Manifest new file mode 100644 index 000000000000..a262b2745aee --- /dev/null +++ b/games-emulation/raine/Manifest @@ -0,0 +1,5 @@ +MD5 a98e87a2fdf460c3e48eddaff980a3dc ChangeLog 375 +MD5 d8a19bf25c89d01d474b1bd4e3635f92 raine-0.36.2.ebuild 2050 +MD5 67647762ce31a7c21a2a040536f02b29 files/Raine.desktop 236 +MD5 e6966af385f6356c94eba79ee263a0b1 files/digest-raine-0.36.2 176 +MD5 c4660e529000ed1406f1e98358b1b404 files/raine-allegro_4.1.5_fix.patch 569 diff --git a/games-emulation/raine/files/Raine.desktop b/games-emulation/raine/files/Raine.desktop new file mode 100644 index 000000000000..16ce170619a0 --- /dev/null +++ b/games-emulation/raine/files/Raine.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Comment=R A I N E M680x0 Arcade Emulation +Exec=/usr/bin/raine +Icon=/usr/share/icons/Raine16X16.png +Name=Raine +Path=/usr/share/raine +Terminal=0 +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/games-emulation/raine/files/digest-raine-0.36.2 b/games-emulation/raine/files/digest-raine-0.36.2 new file mode 100644 index 000000000000..82ad6e43cfc2 --- /dev/null +++ b/games-emulation/raine/files/digest-raine-0.36.2 @@ -0,0 +1,3 @@ +MD5 bff7f62b6ea4a4bf1342f3a5c41debf3 raines-0.36.2.tar.bz2 1614994 +MD5 cec6e5ba7beeb2ece310c66fd55c7b4d rainedocs.zip 88671 +MD5 3529c30187861c37af8e1ce544746b1e icons.zip 3641 diff --git a/games-emulation/raine/files/raine-allegro_4.1.5_fix.patch b/games-emulation/raine/files/raine-allegro_4.1.5_fix.patch new file mode 100644 index 000000000000..516cdc585c5f --- /dev/null +++ b/games-emulation/raine/files/raine-allegro_4.1.5_fix.patch @@ -0,0 +1,20 @@ +--- raine/source/alleg/display.c.orig 2002-09-07 09:56:00.000000000 +0200 ++++ raine/source/alleg/display.c 2002-11-24 04:23:17.000000000 +0100 +@@ -23,8 +23,6 @@ + // hardware scaling instead - it makes things MUCH easier. + + #ifdef RAINE_UNIX +-#ifndef ALLEGRO_LINUX +-// These are not defined by freebsd, but they could... + static inline unsigned char inportb(unsigned short port) + { + unsigned char value; +@@ -42,8 +40,6 @@ + __asm__ volatile ("outw %0, %1" : : "a" (value), "d" (port)); + } + +-#endif +- + #define outp(a,b) outportb(a,b) + #define inp(a) inportb(a) + diff --git a/games-emulation/raine/raine-0.36.2.ebuild b/games-emulation/raine/raine-0.36.2.ebuild new file mode 100644 index 000000000000..6877c4dd1278 --- /dev/null +++ b/games-emulation/raine/raine-0.36.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/raine/raine-0.36.2.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $ + +inherit flag-o-matic + +DESCRIPTION="R A I N E M680x0 Arcade Emulation" +HOMEPAGE="http://www.rainemu.com/" +SRC_URI="http://www.rainemu.com/html/archive/raines-${PV}.tar.bz2 + http://www.rainemu.com/html/archive/rainedocs.zip + http://www.rainemu.com/html/archive/icons.zip" +# http://www.rainemu.com/html/archive/big-snapshot.zip" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="x86" +IUSE="static nls" + +DEPEND="virtual/glibc + sys-libs/zlib + <media-libs/allegro-4.1.0 + media-libs/svgalib" + +S=${WORKDIR}/${PN} +RESTRICT=nostrip + +src_unpack() { + unpack ${A} + cd ${S} + + MARCH_FLAG="`get-flag march`" + MCPU_FLAG="`get-flag mcpu`" + [ -z "${MARCH_FLAG}" ] && MARCH_FLAG="${MCPU_FLAG}" + [ -z "${MCPU_FLAG}" ] && MCPU_FLAG="${MARCH_FLAG}" + + # Force our custom processor instead of pentium + cp makefile makefile.orig + sed -e "s:mcpu=pentium:mcpu=${MCPU_FLAG}:" \ + -e "s:march=pentium:march=${MARCH_FLAG}:" \ + -e 's:(prefix)/usr/games:(prefix)/usr/bin:' \ + -e 's:(sharedir)/games/raine:(sharedir)/raine:' \ + makefile.orig > makefile + + # Fix function-name collision with 4.1.x version of allegro +# patch -p1 < ${FILESDIR}/raine-allegro_4.1.5_fix.patch || die + cp source/gui/gui.c source/gui/gui.c.orig + sed -e 's:update_menu(:upd_menu(:' \ + source/gui/gui.c.orig > source/gui/gui.c +} + +src_compile() { + local myopts="OSTYPE=linux RAINE_LINUX=1 VERBOSE=1" + + use static \ + && myopts="${myopts} STATIC=1" \ + || myopts="${myopts} STATIC=" + + emake ${myopts} || die +} + +src_install() { + make prefix=${D} install || die + + exedat ${D}/usr/bin/raine ${D}/usr/share/raine/raine.dat + rm -f ${D}/usr/share/raine/raine.dat + + use nls || rm -rf ${D}/usr/share/raine/languages + + dodoc ${WORKDIR}/raine.txt + + insinto /usr/share/icons + doins ${WORKDIR}/*.png + if [ `use kde` ] ; then + insinto /usr/share/applnk/Games + doins ${FILESDIR}/Raine.desktop + fi +} |