Skip to content

Commit

Permalink
- Update to 0.98.13
Browse files Browse the repository at this point in the history
PR:		ports/78094
Submitted by:	Greg J. <xcas@cox.net> (maintainer)
  • Loading branch information
Pav Lucistnik authored and Pav Lucistnik committed Feb 27, 2005
1 parent c0b9c99 commit 8005d62
Showing 18 changed files with 128 additions and 22,334 deletions.
86 changes: 29 additions & 57 deletions emulators/fceu/Makefile
Original file line number Diff line number Diff line change
@@ -6,86 +6,58 @@
#

PORTNAME= fceu
PORTVERSION= 0.98.12
PORTVERSION= 0.98.13
CATEGORIES= emulators
MASTER_SITES= http://www.mavetju.org/download/adopted/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MASTER_SITES= http://bsd-unix.org/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}-pre.src

MAINTAINER= xcas@cox.net
COMMENT= A portable NES/Famicom emulator based on Bero's original FCE

USE_SDL= sdl
MAN6= fceu.6
WRKSRC= ${WRKDIR}/fceu
USE_X_PREFIX= yes
USE_BZIP2= yes
USE_GCC= 3.4
USE_GMAKE= yes
USE_REINPLACE= yes
USE_SDL= sdl
USE_X_PREFIX= yes

WRKSRC= ${WRKDIR}/fceu

GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}

DOCS= cheat.html faq.html fceultra.html fcm.txt fcs.txt protocol.txt
TECHDOCS= README.now README.sound UNIF_current.txt nsfspec.txt
TECHCPUDOCS= 4017.txt 6502_cpu.txt NESSOUND-4th.txt NESSOUND.txt dmc.txt
TECHEXPDOCS= SMB2j.txt mmc5-e.txt mmc5_bank_switch.txt namco.txt taito.txt \
tengen.txt vrcvi.txt vrcvii.txt
TECHPPUDOCS= "2C02_technical_operation.TXT" loopy1.txt loopy2.txt
MAN6= fceu.6

PLIST_FILES= bin/fceu %%DOCSDIR%%/cheat.html %%DOCSDIR%%/faq.html \
%%DOCSDIR%%/fceultra.html %%DOCSDIR%%/fcm.txt \
%%DOCSDIR%%/fcs.txt %%DOCSDIR%%/protocol.txt
PLIST_DIRS= %%DOCSDIR%%

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.if ${ARCH} == "amd64"
BROKEN= "Does not configure"
.endif

pre-everything::
.if !defined(NOPORTDOCS) && !defined(TECH_DOC_INSTALL)
@${ECHO_MSG} "You can install technical documents"
@${ECHO_MSG} "by defining TECH_DOC_INSTALL"
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif

.if !defined(NOPORTDOCS) && defined(TECH_DOC_INSTALL)
PLIST_SUB= TECHDOCS=""
.else
PLIST_SUB= TECHDOCS="@comment "
.endif
post-extract:
${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/src/drivers/common/vidblit.c

pre-build:
@${CP} ${WRKSRC}/Documentation/fceu-sdl.6 ${WRKSRC}/Documentation/fceu.6

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/fceu ${PREFIX}/bin

.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.if !defined(NOPORTDOCS)
.for docs in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/Documentation/${docs} ${DOCSDIR}
.endfor
.endif

.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/Documentation/fceu.6 ${PREFIX}/man/man6
.if defined(TECH_DOC_INSTALL)
@${MKDIR} ${DOCSDIR}/tech
.for docs in ${TECHDOCS}
${INSTALL_DATA} ${WRKSRC}/Documentation/tech/${docs} ${DOCSDIR}/tech
.endfor
@${MKDIR} ${DOCSDIR}/tech/cpu
.for docs in ${TECHCPUDOCS}
${INSTALL_DATA} ${WRKSRC}/Documentation/tech/cpu/${docs} \
${DOCSDIR}/tech/cpu
.endfor
@${MKDIR} ${DOCSDIR}/tech/exp
.for docs in ${TECHEXPDOCS}
${INSTALL_DATA} ${WRKSRC}/Documentation/tech/exp/${docs} \
${DOCSDIR}/tech/exp
.endfor
@${MKDIR} ${DOCSDIR}/tech/ppu
.for docs in ${TECHPPUDOCS}
${INSTALL_DATA} ${WRKSRC}/Documentation/tech/ppu/${docs:S|_| |g} \
${DOCSDIR}/tech/ppu/${docs}
.endfor
.endif
.endif
.endif
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/cheat.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/faq.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/fceultra.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/fcm.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/fcs.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Documentation/protocol.txt ${DOCSDIR}

.include <bsd.port.post.mk>
4 changes: 2 additions & 2 deletions emulators/fceu/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MD5 (fceu-0.98.12.src.tar.bz2) = 0fd2175b1f929e8b4d456789c4d7fc2b
SIZE (fceu-0.98.12.src.tar.bz2) = 559571
MD5 (fceu-0.98.13-pre.src.tar.bz2) = 1977214a15a341a4fd8bad14eda76866
SIZE (fceu-0.98.13-pre.src.tar.bz2) = 570842
11 changes: 11 additions & 0 deletions emulators/fceu/files/patch-configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- configure.orig Tue Dec 21 13:25:09 2004
+++ configure Tue Dec 21 13:25:36 2004
@@ -5130,7 +5130,7 @@
fi


-if expr match "$target_cpu" 'i.86' > /dev/null; then
+if echo ${target_cpu} | grep -q 'i.86' > /dev/null; then
cat >>confdefs.h <<\_ACEOF
#define C80x86 1
_ACEOF
11 changes: 11 additions & 0 deletions emulators/fceu/files/patch-src-drivers-common-vidblit.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/drivers/common/vidblit.c.orig Tue Dec 21 15:43:20 2004
+++ src/drivers/common/vidblit.c Tue Dec 21 15:43:44 2004
@@ -79,7 +79,7 @@
{
if(specfilt == 2 || specfilt == 4) // scale2x and scale3x
{
- int multi;
+ int multi = 0;

if(specfilt == 2) multi = 2 * 2;
else if(specfilt == 4) multi = 3 * 3;
38 changes: 0 additions & 38 deletions emulators/fceu/files/patch-src-drivers-pc-unix-netplay.c

This file was deleted.

Loading
Oops, something went wrong.

0 comments on commit 8005d62

Please sign in to comment.