pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/stella update to 1.4.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17ec7d411f68
branches:  trunk
changeset: 479389:17ec7d411f68
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Fri Aug 13 16:12:25 2004 +0000

description:
update to 1.4.

Changes:
* Codebase ported to SDL. X11/OSS ports have been discontinued.
* Added OpenGL rendering support. (not enabled in pkgsrc)
* Added more refined in-game GUI.
* Added event remapping. Emulation keys can now be remapped to the
  keyboard or up to 4 joysticks.
* Added native Stelladaptor support. Joysticks, paddles, and driving
  controllers have been tested.
* Digital sound support has been greatly improved.
* Added support for switchable palettes.
* Added support for UA Limited style bankswitching (Funky Fish and Pleiades).
* Switched to using high compatibility M6502 mode by default. This
  means old state saves from previous Stella versions will no longer
  work.

diffstat:

 emulators/stella/Makefile         |   49 +++++++++-
 emulators/stella/Makefile.common  |   47 ----------
 emulators/stella/PLIST            |    3 +-
 emulators/stella/distinfo         |   11 +-
 emulators/stella/patches/patch-aa |   44 ++++++---
 emulators/stella/patches/patch-ab |  169 ++-----------------------------------
 emulators/stella/patches/patch-ac |   13 --
 7 files changed, 88 insertions(+), 248 deletions(-)

diffs (truncated from 388 to 300 lines):

diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/Makefile
--- a/emulators/stella/Makefile Fri Aug 13 15:10:48 2004 +0000
+++ b/emulators/stella/Makefile Fri Aug 13 16:12:25 2004 +0000
@@ -1,14 +1,47 @@
-# $NetBSD: Makefile,v 1.17 2004/06/05 11:56:31 dillo Exp $
+# $NetBSD: Makefile,v 1.18 2004/08/13 16:12:25 dillo Exp $
 
+STELLA_VERSION=        1.4
+DISTNAME=      stella-${STELLA_VERSION}-src
 PKGNAME=       stella-${STELLA_VERSION}
-CONFLICTS=     stella-sdl-[0-9]*
+CATEGORIES=    emulators
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=stella/}
+
+MAINTAINER=    dillo%NetBSD.org@localhost
+HOMEPAGE=      http://stella.sourceforge.net/
+COMMENT=       Multi-platform Atari 2600 VCS emulator
 
-.include "Makefile.common"
+PATCHDIR=               ${.CURDIR}/../stella/patches
+DISTINFO_FILE=          ${.CURDIR}/../stella/distinfo
+
+WRKSRC=                ${WRKDIR}/stella-${STELLA_VERSION}/src/build
+USE_LANGUAGES= c c++
+USE_GNU_TOOLS+=        make
+USE_BUILDLINK3=        YES
+USE_INSTALL=   YES
+UNLIMIT_RESOURCES=datasize
 
-USE_X11=       yes
-MAKE_ENV+=     SOUND_OSS=1
-ALL_TARGET=    unix-x
-STELLA=                stella.x11
+MAKEFILE=      makefile
+ALL_TARGET=    linux
+
+.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
+GCC_REQD+=     3.0
+.endif
+
+MAKE_ENV=      CXXFLAGS="${CXXFLAGS} -fno-rtti"
+
+DOCDIR=${PREFIX}/share/doc/html/stella
+DATADIR=${PREFIX}/share/stella
 
-.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/stella ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${DOCDIR}
+       ${INSTALL_DATA_DIR} ${DOCDIR}/graphics
+       ${INSTALL_DATA} ${WRKSRC}/../../docs/stella.html ${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/../../docs/graphics/* ${DOCDIR}/graphics
+       ${INSTALL_DATA_DIR} ${DATADIR}
+       ${INSTALL_DATA} ${WRKSRC}/../emucore/stella.pro ${DATADIR}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/Makefile.common
--- a/emulators/stella/Makefile.common  Fri Aug 13 15:10:48 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-# $NetBSD: Makefile.common,v 1.2 2004/06/16 01:14:33 dillo Exp $
-
-STELLA_VERSION=        1.3
-DISTNAME=      stella-${STELLA_VERSION}-src
-CATEGORIES=    emulators
-MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=stella/}
-
-MAINTAINER=    dillo%NetBSD.org@localhost
-HOMEPAGE=      http://stella.sourceforge.org/
-COMMENT=       Multi-platform Atari 2600 VCS emulator
-
-PATCHDIR=               ${.CURDIR}/../stella/patches
-DISTINFO_FILE=          ${.CURDIR}/../stella/distinfo
-
-WRKSRC=                ${WRKDIR}/stella-${STELLA_VERSION}/src/build
-USE_LANGUAGES= c c++
-USE_GNU_TOOLS+=        make
-USE_BUILDLINK3=        YES
-USE_INSTALL=   YES
-UNLIMIT_RESOURCES=datasize
-
-MAKEFILE=      makefile
-
-.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
-GCC_REQD+=     3.0
-.endif
-
-MAKE_ENV=      CXXFLAGS="${CXXFLAGS} -fno-rtti"
-
-DOCDIR=${PREFIX}/share/doc/html/stella
-EGDIR=${PREFIX}/share/examples/stella
-DATADIR=${PREFIX}/share/stella
-
-CONF_FILES=     ${EGDIR}/stellarc.default ${PKG_SYSCONFDIR}/stellarc
-
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/${STELLA} ${PREFIX}/bin/stella
-       ${INSTALL_DATA_DIR} ${DOCDIR}
-       ${INSTALL_DATA_DIR} ${DOCDIR}/graphics
-       ${INSTALL_DATA} ${WRKSRC}/../../docs/stella.html ${DOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/../../docs/graphics/* ${DOCDIR}/graphics
-       ${INSTALL_DATA_DIR} ${DATADIR}
-       ${INSTALL_DATA} ${WRKSRC}/../emucore/stella.pro ${DATADIR}
-       ${INSTALL_DATA_DIR} ${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/../stellarc ${EGDIR}/stellarc.default
-
-.include "../../graphics/png/buildlink3.mk"
diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/PLIST
--- a/emulators/stella/PLIST    Fri Aug 13 15:10:48 2004 +0000
+++ b/emulators/stella/PLIST    Fri Aug 13 16:12:25 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2004/06/05 11:56:31 dillo Exp $
+@comment $NetBSD: PLIST,v 1.3 2004/08/13 16:12:25 dillo Exp $
 bin/stella
 share/doc/html/stella/graphics/chucky_cheese.png
 share/doc/html/stella/graphics/circuit.png
@@ -8,7 +8,6 @@
 share/doc/html/stella/graphics/secret_quest.png
 share/doc/html/stella/graphics/space_invaders.png
 share/doc/html/stella/stella.html
-share/examples/stella/stellarc.default
 share/stella/stella.pro
 @dirrm share/doc/html/stella/graphics
 @dirrm share/doc/html/stella
diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/distinfo
--- a/emulators/stella/distinfo Fri Aug 13 15:10:48 2004 +0000
+++ b/emulators/stella/distinfo Fri Aug 13 16:12:25 2004 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.3 2004/06/05 11:56:31 dillo Exp $
+$NetBSD: distinfo,v 1.4 2004/08/13 16:12:25 dillo Exp $
 
-SHA1 (stella-1.3-src.tar.gz) = ed4d12890f734eaa23b6ebbb17a4f14640c65d35
-Size (stella-1.3-src.tar.gz) = 433201 bytes
-SHA1 (patch-aa) = 3c194bb611192330cfcd7f48e3ce75d350e8daf6
-SHA1 (patch-ab) = 10d3430cb5ac29be284f84bc50d1b5aeffe7ef26
-SHA1 (patch-ac) = 74d58b272d82d83567cd1883040445927720c615
+SHA1 (stella-1.4-src.tar.gz) = 3dd22f47d421fd425c795edce09e4e7bf99b1a8e
+Size (stella-1.4-src.tar.gz) = 670366 bytes
+SHA1 (patch-aa) = 893d5ad5165f02c2dfde5d07c348362aba36d340
+SHA1 (patch-ab) = 5fd5d2c911e22827faa9b7c550750adbf50ed228
diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/patches/patch-aa
--- a/emulators/stella/patches/patch-aa Fri Aug 13 15:10:48 2004 +0000
+++ b/emulators/stella/patches/patch-aa Fri Aug 13 16:12:25 2004 +0000
@@ -1,20 +1,32 @@
-$NetBSD: patch-aa,v 1.3 2004/06/05 11:56:31 dillo Exp $
+$NetBSD: patch-aa,v 1.4 2004/08/13 16:12:25 dillo Exp $
 
---- ../ui/sound/SoundOSS.cxx.orig      2003-02-18 02:19:44.000000000 +0100
-+++ ../ui/sound/SoundOSS.cxx
-@@ -22,13 +22,9 @@
- #include <sys/ioctl.h>
- #include <sys/types.h>
+--- makefile.orig      2004-07-14 18:49:45.000000000 +0200
++++ makefile
+@@ -48,13 +48,13 @@ OPTIMIZATIONS  = 
+ ## No configurable options below this line ...
+ ##============================================================================
+ 
+-CXX   = g++
+-LD    = g++
++#CXX  = g++
++#LD   = g++
  
--#ifdef __FreeBSD__
--  #include <machine/soundcard.h>
--#else
--  #include <sys/soundcard.h>
--#endif
-+#include <soundcard.h>
+-LDFLAGS  = `sdl-config --cflags`
++LDFLAGS  += `sdl-config --cflags`
+ LDLIBS   = `sdl-config --libs`
+ OBJECTS  =  mainSDL.o SoundSDL.o FrameBufferSDL.o FrameBufferSoft.o
+-OPTIONS  =
++OPTIONS  = -DPKG_SYSCONFDIR=\\\"${PKG_SYSCONFDIR}\\\" -DDATADIR=\\\"${PREFIX}/share/stella\\\"
+ EXE_NAME =
+ SMP      =
  
--#define DSP_DEVICE "/dev/dsp"
-+/* #define DSP_DEVICE "/dev/dsp" */
- #define MIXER_DEVICE "/dev/mixer"
+@@ -155,8 +155,7 @@ CORE_OBJS = Booster.o Cart.o Cart2K.o Ca
+             $(M6502_OBJS)
  
- #include "SoundOSS.hxx"
+ stella: $(CORE_OBJS) $(OBJS)
+-      $(LD) -o $(EXE_NAME) $(CORE_OBJS) $(OBJS) $(LDFLAGS) $(LDLIBS)
+-      strip $(EXE_NAME)
++      $(CXX) -o $(EXE_NAME) $(CORE_OBJS) $(OBJS) $(LDLIBS)
+ 
+ M6502Low.ins: $(CORE)/m6502/src/M6502Low.m4 $(CORE)/m6502/src/M6502.m4
+       m4 $(CORE)/m6502/src/M6502Low.m4 $(CORE)/m6502/src/M6502.m4 > $(CORE)/m6502/src/M6502Low.ins
diff -r 330f63c7d64e -r 17ec7d411f68 emulators/stella/patches/patch-ab
--- a/emulators/stella/patches/patch-ab Fri Aug 13 15:10:48 2004 +0000
+++ b/emulators/stella/patches/patch-ab Fri Aug 13 16:12:25 2004 +0000
@@ -1,159 +1,16 @@
-$NetBSD: patch-ab,v 1.2 2004/06/05 11:56:31 dillo Exp $
+$NetBSD: patch-ab,v 1.3 2004/08/13 16:12:25 dillo Exp $
 
---- makefile.orig      2003-02-18 02:19:44.000000000 +0100
-+++ makefile
-@@ -43,7 +43,7 @@ OPTIMIZATIONS    = -O2 -Wall -Wno-unused
- ### comment out all lines to completely disable sound
- ###
- #SOUND_ALSA = 1
--SOUND_OSS  = 1
-+#SOUND_OSS  = 1
- #SOUND_SDL  = 1
- 
- ### if your C++ compiler doesn't support the bool type
-@@ -61,7 +61,7 @@ SOUND_OSS  = 1
- ### to include support for saving snapshots in png format
- ### (requires PNG library)
- ### Only X11 and SDL ports supported for now
--# SNAPSHOT_SUPPORT = 1
-+SNAPSHOT_SUPPORT = 1
- 
- ### comment this out if your system doesn't
- ### have the gettimeofday function
-@@ -72,23 +72,26 @@ HAVE_GETTIMEOFDAY = 1
- ### enables some extra commandline options that allow the user
- ### to override some emulation defaults
- ### Only X11 and SDL ports supported for now
--# DEVELOPER_SUPPORT = 1
-+DEVELOPER_SUPPORT = 1
- 
- ##============================================================================
- ## All done, type make to get a list of frontends
- ## No configurable options below this line ...
- ##============================================================================
- 
--CXX   = g++
--LD    = g++
-+#CXX  = g++
-+#LD   = g++
- 
--LDFLAGS = 
-+#LDFLAGS = 
- LDLIBS        = 
- 
-+CFLAGS+=      -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR}\" \
-+              -DDATADIR=\"${PREFIX}/share/stella\"
-+
- OBJS.X11   =
- OPTS.X11   =
--LIBS.X11   =
--CFLAGS.X11 =
-+LIBS.X11   = 
-+CFLAGS.X11 = 
- 
- OBJS.SDL   =
- OPTS.SDL   =
-@@ -152,8 +155,11 @@ endif
- ifeq ($(SOUND_OSS), 1)
-   OPTS.X11 += -DSOUND_OSS=1
-   OBJS.X11 += SoundOSS.o
-+  LIBS.X11 += ${LIBOSSAUDIO}
-   OPTS.SDL += -DSOUND_OSS=1
-   OBJS.SDL += SoundOSS.o
-+  LIBS.SDL += ${LIBOSSAUDIO}
-+  CFLAGS   += -DDSP_DEVICE=\"${DEVOSSSOUND}\"
- endif
- 
- ifeq ($(SOUND_SDL), 1)
-@@ -207,11 +213,10 @@ unix-x:
-           SYS_INCLUDES="" \
-           OPTIONS="-DBSPF_UNIX=1" \
-           OPTIONS+="$(OPTS.X11)" \
--          LDFLAGS="-L/usr/X11R6/lib" \
--          LDFLAGS+="$(CFLAGS.X11)" \
-+          CFLAGS+="$(CFLAGS.X11)" \
-           LDLIBS="-lX11 -lXext" \
-           LDLIBS+="$(LIBS.X11)" \
--          OBJS="mainX11.o"
-+          OBJS="mainX11.o" \
-           OBJS+="$(OBJS.X11)"
+--- ../unix/SettingsUNIX.cxx.orig      2004-07-05 02:53:48.000000000 +0200
++++ ../unix/SettingsUNIX.cxx
+@@ -43,9 +43,9 @@ SettingsUNIX::SettingsUNIX()
+     mkdir(myStateDir.c_str(), 0777);
  
- linux-x:
-@@ -233,9 +238,7 @@ linux-sdl:
-           SYS_INCLUDES="" \
-           OPTIONS="-DBSPF_UNIX=1" \
-           OPTIONS+="$(OPTS.SDL)" \
--          LDFLAGS="-L/usr/X11R6/lib" \
--          LDFLAGS+="$(CFLAGS.SDL)" \
--          LDLIBS="-lX11 -lXext" \
-+          CFLAGS+="$(CFLAGS.SDL)" \
-           LDLIBS+="$(LIBS.SDL)" \
-           OBJS="mainSDL.o RectList.o" \
-           OBJS+="$(OBJS.SDL)"
-@@ -290,10 +293,10 @@ stella.exe: $(CORE_OBJS) $(OBJS)
-       del a.exe
- 
- stella.x11: $(CORE_OBJS) $(OBJS)



Home | Main Index | Thread Index | Old Index