diff options
Diffstat (limited to 'emulators/raine')
-rw-r--r-- | emulators/raine/Makefile | 46 | ||||
-rw-r--r-- | emulators/raine/distinfo | 3 | ||||
-rw-r--r-- | emulators/raine/files/patch-makefile | 17 | ||||
-rw-r--r-- | emulators/raine/files/patch-source::alleg::blit.c | 11 | ||||
-rw-r--r-- | emulators/raine/files/patch-source::emumain.c | 13 | ||||
-rw-r--r-- | emulators/raine/files/patch-source::gui::rgui.c | 13 | ||||
-rw-r--r-- | emulators/raine/files/patch-source_bezel.c | 11 | ||||
-rw-r--r-- | emulators/raine/pkg-descr | 6 | ||||
-rw-r--r-- | emulators/raine/pkg-plist | 33 |
9 files changed, 153 insertions, 0 deletions
diff --git a/emulators/raine/Makefile b/emulators/raine/Makefile new file mode 100644 index 000000000..1d1fc0ef6 --- /dev/null +++ b/emulators/raine/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: raine +# Date created: Jul 22 2004 +# Whom: Florent Thoumie <flz@xbsd.org> +# +# $FreeBSD$ +# + +PORTNAME= raine +PORTVERSION= 0.43.3 +PORTREVISION= 4 +CATEGORIES= emulators games +MASTER_SITES= http://www.rainemu.com/html/archive/ +DISTNAME= ${PORTNAME}s-${PORTVERSION} + +MAINTAINER= flz@FreeBSD.org +COMMENT= Arcade Emulator for M68000, M68020 and Z80 based hardware + +BUILD_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm +LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro \ + png.5:${PORTSDIR}/graphics/png + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_GCC= 3.2+ +USE_BZIP2= yes +USE_GMAKE= yes +USE_SDL= sdl +USE_GNOME= gnomehier +MAKEFILE= makefile +MAKE_ENV= PREFIX=${PREFIX} + +ONLY_FOR_ARCHS= i386 + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e "s, [$$]_mcpu,,g" ${WRKSRC}/detect-cpu + @${REINPLACE_CMD} -e "s,sdl-config,${SDL_CONFIG},g" -e "s,/usr/share/,/share/,g" \ + ${WRKSRC}/makefile + @${REINPLACE_CMD} -e "s,/usr/share/games/raine,${DATADIR},g" \ + ${WRKSRC}/source/raine.c + @${REINPLACE_CMD} -e "s,^#ifdef GFX_SVGA,#ifdef GFX_SVGALIB,g" \ + ${WRKSRC}/source/gui/rgui.c \ + ${WRKSRC}/source/alleg/display.c \ + ${WRKSRC}/source/config.c + +.include <bsd.port.post.mk> diff --git a/emulators/raine/distinfo b/emulators/raine/distinfo new file mode 100644 index 000000000..06c679225 --- /dev/null +++ b/emulators/raine/distinfo @@ -0,0 +1,3 @@ +MD5 (raines-0.43.3.tar.bz2) = 9e39a99b45e7c6d1b0d04c9ebc579b02 +SHA256 (raines-0.43.3.tar.bz2) = ab9d38e1a5a2e73b3ef914d780015a16cddea8194f479f65236a0f4ca088c4a9 +SIZE (raines-0.43.3.tar.bz2) = 1740971 diff --git a/emulators/raine/files/patch-makefile b/emulators/raine/files/patch-makefile new file mode 100644 index 000000000..7794091e6 --- /dev/null +++ b/emulators/raine/files/patch-makefile @@ -0,0 +1,17 @@ +--- makefile.orig Tue Sep 20 09:24:09 2005 ++++ makefile Thu Nov 17 13:02:40 2005 +@@ -215,1 +215,1 @@ + AFLAGS = -f elf + +- PNG_CFLAGS = "$(shell libpng-config --cflags)" +-ifndef SDL +- ALLEGRO_CFLAGS = "$(shell allegro-config --cflags)" +-endif + SDL_CFLAGS = "$(shell sdl-config --cflags)" + +- INCDIR += $(PNG_CFLAGS) $(ALLEGRO_CFLAGS) $(SDL_CFLAGS) -I$(X11BASE)/include -I$(LOCALBASE)/include ++ INCDIR += ` allegro-config --cflags` `libpng-config --cflags` -I$(X11BASE)/include -I$(LOCALBASE)/include + + + DEFINE = -D__RAINE__ \ + -DRAINE_UNIX \ diff --git a/emulators/raine/files/patch-source::alleg::blit.c b/emulators/raine/files/patch-source::alleg::blit.c new file mode 100644 index 000000000..1ecda275b --- /dev/null +++ b/emulators/raine/files/patch-source::alleg::blit.c @@ -0,0 +1,11 @@ +--- source/alleg/blit.c.orig Mon Jan 17 12:37:21 2005 ++++ source/alleg/blit.c Mon Jan 17 12:38:10 2005 +@@ -1,1 +1,1 @@ + #ifdef RAINE_WIN32 + #include <allegro.h> + #include <winalleg.h> ++#elif defined(RAINE_UNIX) ++#include <sys/time.h> + #endif + #include "blit_x2.h" + #include "eagle.h" diff --git a/emulators/raine/files/patch-source::emumain.c b/emulators/raine/files/patch-source::emumain.c new file mode 100644 index 000000000..3293c4321 --- /dev/null +++ b/emulators/raine/files/patch-source::emumain.c @@ -0,0 +1,13 @@ +--- source/emumain.c.orig Wed Aug 17 13:14:36 2005 ++++ source/emumain.c Thu Nov 17 18:04:37 2005 +@@ -9,1 +9,1 @@ + #include <winalleg.h> + #endif + ++#ifdef RAINE_UNIX ++#include <sys/time.h> ++#endif ++ + #include "raine.h" // General defines and stuff + #include "gui.h" // Interface stuff + #include "sasound.h" // Sound Sample stuff diff --git a/emulators/raine/files/patch-source::gui::rgui.c b/emulators/raine/files/patch-source::gui::rgui.c new file mode 100644 index 000000000..11576063b --- /dev/null +++ b/emulators/raine/files/patch-source::gui::rgui.c @@ -0,0 +1,13 @@ +--- source/gui/rgui.c.orig Mon Jan 17 12:07:21 2005 ++++ source/gui/rgui.c Mon Jan 17 12:23:46 2005 +@@ -9,1 +9,1 @@ + #include <winalleg.h> + #endif + ++#ifdef RAINE_UNIX ++#include <sys/time.h> ++#endif ++ + #include "raine.h" + #include "rgui.h" + #include "rguiproc.h" diff --git a/emulators/raine/files/patch-source_bezel.c b/emulators/raine/files/patch-source_bezel.c new file mode 100644 index 000000000..5956dca4c --- /dev/null +++ b/emulators/raine/files/patch-source_bezel.c @@ -0,0 +1,11 @@ +--- source/bezel.c.orig Thu Nov 17 18:24:59 2005 ++++ source/bezel.c Thu Nov 17 18:49:28 2005 +@@ -18,1 +18,1 @@ + #define __USE_ISOC99 1 + #include <math.h> + +-#ifdef RAINE_DOS ++#if defined(RAINE_DOS) || __FreeBSD_version < 500300 + // djgpp seems to have specificities for rounding... + // why on earth non one implements cleanly such basic function ??? + #define round rint diff --git a/emulators/raine/pkg-descr b/emulators/raine/pkg-descr new file mode 100644 index 000000000..7903230d7 --- /dev/null +++ b/emulators/raine/pkg-descr @@ -0,0 +1,6 @@ +Arcade Emulator for M68000, M68020 and Z80 based hardware. + +WWW: http://www.rainemu.com/ + +- Florent Thoumie +flz@xbsd.org diff --git a/emulators/raine/pkg-plist b/emulators/raine/pkg-plist new file mode 100644 index 000000000..0fa26a831 --- /dev/null +++ b/emulators/raine/pkg-plist @@ -0,0 +1,33 @@ +bin/raine +%%DATADIR%%/cheats.cfg +%%DATADIR%%/hiscore.dat +%%DATADIR%%/languages/brasil.cfg +%%DATADIR%%/languages/czech.cfg +%%DATADIR%%/languages/catala.cfg +%%DATADIR%%/languages/dansk.cfg +%%DATADIR%%/languages/dutch.cfg +%%DATADIR%%/languages/english.cfg +%%DATADIR%%/languages/espanol.cfg +%%DATADIR%%/languages/euskera.cfg +%%DATADIR%%/languages/finnish.cfg +%%DATADIR%%/languages/french.cfg +%%DATADIR%%/languages/french2.cfg +%%DATADIR%%/languages/german.cfg +%%DATADIR%%/languages/german2.cfg +%%DATADIR%%/languages/italian.cfg +%%DATADIR%%/languages/japanese.cfg +%%DATADIR%%/languages/polish.cfg +%%DATADIR%%/languages/portugal.cfg +%%DATADIR%%/languages/spanish.cfg +%%DATADIR%%/languages/svenska.cfg +%%DATADIR%%/languages/template.cfg +%%DATADIR%%/languages/turkish.cfg +%%DATADIR%%/languages/galego.cfg +%%DATADIR%%/raine.dat +share/applications/raine.desktop +share/pixmaps/raine.png +@dirrmtry %%DATADIR%%/roms +@dirrmtry %%DATADIR%%/emudx +@dirrmtry %%DATADIR%%/artwork +@dirrm %%DATADIR%%/languages +@dirrmtry %%DATADIR%% |