1997-02-27 10:27:59 +01:00
|
|
|
# New ports collection makefile for: fMSX
|
|
|
|
# Date created: 15 Oct 1996
|
|
|
|
# Whom: dk
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-02-27 10:37:33 +01:00
|
|
|
#
|
1997-02-27 10:27:59 +01:00
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= fmsx
|
2005-08-28 12:41:28 +02:00
|
|
|
PORTVERSION= 3.0
|
1997-02-27 10:27:59 +01:00
|
|
|
CATEGORIES= emulators
|
2005-08-28 12:41:28 +02:00
|
|
|
MASTER_SITES= http://www.mavetju.org/download/adopted/:code \
|
|
|
|
http://fms.komkon.org/fMSX/:code \
|
|
|
|
http://fms.komkon.org/fMSX/src/:rom
|
|
|
|
DIST_SUBDIR= fmsx30
|
|
|
|
DISTFILES= fMSX30.tar.Z:code \
|
|
|
|
MSX.ROM:rom MSX2.ROM:rom MSX2EXT.ROM:rom MSX2P.ROM:rom \
|
|
|
|
MSX2PEXT.ROM:rom FMPAC.ROM:rom DISK.ROM:rom MSXDOS2.ROM:rom \
|
|
|
|
PAINTER.ROM:rom KANJI.ROM:rom
|
1997-02-27 10:27:59 +01:00
|
|
|
MAINTAINER= dk@farm.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= The Portable MSX/MSX2/MSX2+ Emulator
|
1997-02-27 10:27:59 +01:00
|
|
|
|
2004-02-28 01:35:27 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
|
1998-12-01 09:07:55 +01:00
|
|
|
USE_XLIB= yes
|
1997-02-27 10:27:59 +01:00
|
|
|
RESTRICTED= Legal status of distributed ROM images unclear
|
2001-01-16 18:33:20 +01:00
|
|
|
WRKSRC= ${WRKDIR}/MSX
|
1997-02-27 10:27:59 +01:00
|
|
|
|
2004-08-09 17:48:55 +02:00
|
|
|
OPTIONS= BPP8 "With BPP8" Off \
|
|
|
|
BPP16 "With BPP16" Off \
|
2004-02-28 01:35:27 +01:00
|
|
|
BPP24 "With BPP24" Off \
|
|
|
|
BPP32 "With BPP32 (see pkg-message)" On
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
2004-03-08 11:06:07 +01:00
|
|
|
.ifdef(WITH_BPP32) || defined(PACKAGE_BUILDING) || defined(BATCH)
|
2004-02-28 01:35:27 +01:00
|
|
|
${REINPLACE_CMD} -e 's/%%BPP%%/BPP32/' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
.ifdef(WITH_BPP24)
|
|
|
|
${REINPLACE_CMD} -e 's/%%BPP%%/BPP24/' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
.ifdef(WITH_BPP16)
|
|
|
|
${REINPLACE_CMD} -e 's/%%BPP%%/BPP16/' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2004-08-09 17:48:55 +02:00
|
|
|
.ifdef(WITH_BPP8)
|
|
|
|
${REINPLACE_CMD} -e 's/%%BPP%%/BPP8/' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
2004-02-28 01:35:27 +01:00
|
|
|
|
1997-02-27 10:27:59 +01:00
|
|
|
do-install:
|
1997-07-21 21:28:46 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/fmsx ${PREFIX}/bin
|
2004-02-28 01:35:27 +01:00
|
|
|
${REINPLACE_CMD} "s,PREFIX,${PREFIX},g" ${PREFIX}/bin/fmsx
|
1997-02-27 10:27:59 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fmsx ${PREFIX}/bin/fmsx.bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rddsk ${PREFIX}/bin/fmsx-rddsk
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/wrdsk ${PREFIX}/bin/fmsx-wrdsk
|
1997-03-24 19:44:29 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/fmsx
|
2005-08-28 12:41:28 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.FNT ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.ROM ${DATADIR}
|
1997-02-27 10:27:59 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-09 17:48:55 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
|
1997-02-27 10:27:59 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-28 01:35:27 +01:00
|
|
|
.include <bsd.port.post.mk>
|