mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
4d90568ffa
and place it in the adopted directory on my website.
92 lines
2.4 KiB
Makefile
92 lines
2.4 KiB
Makefile
# New ports collection makefile for: fceu
|
|
# Date Created: 10 Mov 2002
|
|
# Whom: HIYAMA Takeshi <gibbon@cocoa.freemail.ne.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fceu
|
|
PORTVERSION= 0.98.12
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://www.mavetju.org/download/adopted/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.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_GMAKE= yes
|
|
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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= "Does not compile on sparc64"
|
|
.endif
|
|
|
|
pre-everything::
|
|
.if !defined(NOPORTDOCS) && !defined(TECH_DOC_INSTALL)
|
|
@${ECHO_MSG} "You can install technical documents"
|
|
@${ECHO_MSG} "by defining TECH_DOC_INSTALL"
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS) && defined(TECH_DOC_INSTALL)
|
|
PLIST_SUB= TECHDOCS=""
|
|
.else
|
|
PLIST_SUB= TECHDOCS="@comment "
|
|
.endif
|
|
|
|
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
|
|
|
|
.include <bsd.port.post.mk>
|