Date: Fri, 21 Oct 2005 02:00:10 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/87736: Update port: emulators/stella to 2.0 Message-ID: <20051021020010.68782e9e.tkato432@yahoo.com> Resent-Message-ID: <200510201710.j9KHAE1N048294@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 87736 >Category: ports >Synopsis: Update port: emulators/stella to 2.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 20 17:10:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 4.11-RELEASE-p13 i386 >Organization: >Environment: >Description: - Update to version 2.0 Remove file: files/patch-src::common::mainSDL.cxx files/patch-src::emucore::TIASound.c >How-To-Repeat: >Fix: diff -urN /usr/ports/emulators/stella/Makefile emulators/stella/Makefile --- /usr/ports/emulators/stella/Makefile Sat Feb 26 15:56:11 2005 +++ emulators/stella/Makefile Mon Oct 17 18:06:03 2005 @@ -6,7 +6,7 @@ # PORTNAME= stella -PORTVERSION= 1.4.2 +PORTVERSION= 2.0 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -18,23 +18,24 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -BUILD_WRKSRC= ${WRKSRC}/src/build -USE_GNOME= pkgconfig +USE_GCC= 3.4+ USE_SDL= sdl +USE_REINPLACE= yes USE_GMAKE= yes -MAKEFILE= makefile -MAKE_ARGS= CXX="${CXX}" LD="${CXX}" OPTIMIZATIONS="${CXXFLAGS}" \ - SYS_INCLUDES="${CPPFLAGS}" LDFLAGS="" LDLIBS="${LDFLAGS}" -ALL_TARGET= linux-gl - -CPPFLAGS= `${SDL_CONFIG} --cflags` `pkg-config --cflags libpng12` \ - -I${X11BASE}/include -LDFLAGS= `${SDL_CONFIG} --libs` `pkg-config --libs libpng12` \ - -L${X11BASE}/lib +HAS_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + +CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib + +post-patch: + @${REINPLACE_CMD} -e 's|sdlconfigs=.*$$|sdlconfigs=${SDL_CONFIG:T}|g' \ + ${WRKSRC}/configure + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/build/stella ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/stella ${PREFIX}/bin @${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/src/emucore/stella.pro ${DATADIR} .if !defined(NOPORTDOCS) diff -urN /usr/ports/emulators/stella/distinfo emulators/stella/distinfo --- /usr/ports/emulators/stella/distinfo Sat Feb 26 15:56:11 2005 +++ emulators/stella/distinfo Mon Oct 17 17:10:54 2005 @@ -1,2 +1,2 @@ -MD5 (stella-1.4.2-src.tar.gz) = c23614f5fd3d963e308dc82916b98734 -SIZE (stella-1.4.2-src.tar.gz) = 706631 +MD5 (stella-2.0-src.tar.gz) = f506069ede75eda38d657d7c32d3b182 +SIZE (stella-2.0-src.tar.gz) = 1000574 diff -urN /usr/ports/emulators/stella/files/patch-src::common::Snapshot.cxx emulators/stella/files/patch-src::common::Snapshot.cxx --- /usr/ports/emulators/stella/files/patch-src::common::Snapshot.cxx Tue Oct 12 19:28:11 2004 +++ emulators/stella/files/patch-src::common::Snapshot.cxx Thu Jan 1 09:00:00 1970 @@ -1,14 +0,0 @@ ---- src/common/Snapshot.cxx.orig Wed Jun 23 09:15:32 2004 -+++ src/common/Snapshot.cxx Thu Sep 30 21:01:54 2004 -@@ -73,7 +73,11 @@ - uInt32 width = myFrameBuffer.imageWidth(); - uInt32 height = myFrameBuffer.imageHeight(); - -+#if defined(__GNUC__) && __GNUC__ < 3 -+ ofstream* out = new ofstream(filename.c_str(), ios::binary); -+#else - ofstream* out = new ofstream(filename.c_str(), ios_base::binary); -+#endif - if(!out) - return "Couldn't create snapshot file"; - diff -urN /usr/ports/emulators/stella/files/patch-src::common::mainSDL.cxx emulators/stella/files/patch-src::common::mainSDL.cxx --- /usr/ports/emulators/stella/files/patch-src::common::mainSDL.cxx Tue Oct 12 19:28:11 2004 +++ emulators/stella/files/patch-src::common::mainSDL.cxx Thu Jan 1 09:00:00 1970 @@ -1,14 +0,0 @@ ---- src/common/mainSDL.cxx.orig Fri Aug 6 10:51:15 2004 -+++ src/common/mainSDL.cxx Thu Sep 30 21:00:45 2004 -@@ -822,7 +822,11 @@ - const char* file = argv[argc - 1]; - - // Open the cartridge image and read it in -+#if defined(__GNUC__) && __GNUC__ < 3 -+ ifstream in(file, ios::binary); -+#else - ifstream in(file, ios_base::binary); -+#endif - if(!in) - { - cerr << "ERROR: Couldn't open " << file << "..." << endl; diff -urN /usr/ports/emulators/stella/files/patch-src::emucore::TIASound.c emulators/stella/files/patch-src::emucore::TIASound.c --- /usr/ports/emulators/stella/files/patch-src::emucore::TIASound.c Wed Jul 21 13:33:45 2004 +++ emulators/stella/files/patch-src::emucore::TIASound.c Thu Jan 1 09:00:00 1970 @@ -1,16 +0,0 @@ ---- src/emucore/TIASound.c.orig Mon Jun 14 04:22:45 2004 -+++ src/emucore/TIASound.c Sun Jul 18 18:43:44 2004 -@@ -173,10 +173,12 @@ - uint8 chan; - int16 n; - -+ srandom(time(NULL)); -+ - /* fill the 9bit polynomial with random bits */ - for (n=0; n<POLY9_SIZE; n++) - { -- Bit9[n] = rand() & 0x01; /* fill poly9 with random bits */ -+ Bit9[n] = random() & 0x01; /* fill poly9 with random bits */ - } - - /* calculate the sample 'divide by N' value based on the playback freq. */ diff -urN /usr/ports/emulators/stella/pkg-plist emulators/stella/pkg-plist --- /usr/ports/emulators/stella/pkg-plist Wed Jul 21 13:33:45 2004 +++ emulators/stella/pkg-plist Mon Oct 17 17:48:13 2005 @@ -1,9 +1,22 @@ bin/stella +%%PORTDOCS%%%%DOCSDIR%%/cheat.html +%%PORTDOCS%%%%DOCSDIR%%/debugger.html %%PORTDOCS%%%%DOCSDIR%%/graphics/chucky_cheese.png %%PORTDOCS%%%%DOCSDIR%%/graphics/circuit.png %%PORTDOCS%%%%DOCSDIR%%/graphics/console.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/eventmapping.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/eventmapping_remap.png %%PORTDOCS%%%%DOCSDIR%%/graphics/jr_pacman.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/launcher.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/launcher_options_rom.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/launcher_options_snap.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/options_about.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/options_audio.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/options_gameinfo.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/options_help.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/options_video.png %%PORTDOCS%%%%DOCSDIR%%/graphics/pacman.png +%%PORTDOCS%%%%DOCSDIR%%/graphics/rom_browser.png %%PORTDOCS%%%%DOCSDIR%%/graphics/secret_quest.png %%PORTDOCS%%%%DOCSDIR%%/graphics/space_invaders.png %%PORTDOCS%%%%DOCSDIR%%/stella.html >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051021020010.68782e9e.tkato432>