freebsd-ports/emulators/fmsx/Makefile

72 lines
2 KiB
Makefile
Raw Normal View History

# 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
#
2000-04-12 06:56:17 +02:00
PORTNAME= fmsx
2008-05-26 07:58:54 +02:00
PORTVERSION= 3.5.1
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://www.mavetju.org/download/adopted/:code \
http://fms.komkon.org/fMSX/:code \
http://fms.komkon.org/fMSX/src/:rom
2008-05-26 07:58:54 +02:00
DISTFILES= fMSX351.zip: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
2008-05-26 07:58:54 +02:00
DIST_SUBDIR= fmsx351
EXTRACT_ONLY= fMSX351.zip
2005-08-28 12:42:15 +02:00
MAINTAINER= dk@farm.org
2003-02-21 13:06:51 +01:00
COMMENT= The Portable MSX/MSX2/MSX2+ Emulator
USE_XORG= xi x11
2008-05-26 07:58:54 +02:00
USE_ZIP= yes
USE_GMAKE= yes
USE_DOS2UNIX= EMULib/NetUnix.c EMULib/Rules.Unix
RESTRICTED= Legal status of distributed ROM images unclear
2008-05-26 07:58:54 +02:00
WRKSRC= ${WRKDIR}
OPTIONS= BPP8 "With BPP8" Off \
BPP16 "With BPP16" Off \
BPP24 "With BPP24" Off \
BPP32 "With BPP32 (see pkg-message)" On
.include <bsd.port.pre.mk>
post-patch:
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
${WRKSRC}/fMSX/Unix/Makefile \
${WRKSRC}/EMULib/Rules.Unix
.ifdef(WITH_BPP32) || defined(PACKAGE_BUILDING) || defined(BATCH)
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -e 's/BPP16/BPP32/' ${WRKSRC}/fMSX/Unix/Makefile
.endif
.ifdef(WITH_BPP24)
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -e 's/BPP16/BPP24/' ${WRKSRC}/fMSX/Unix/Makefile
.endif
.ifdef(WITH_BPP16)
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -e 's/BPP16/BPP16/' ${WRKSRC}/fMSX/Unix/Makefile
.endif
.ifdef(WITH_BPP8)
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -e 's/BPP16/BPP8/' ${WRKSRC}/fMSX/Unix/Makefile
.endif
2008-05-26 07:58:54 +02:00
do-build:
cd ${WRKSRC}/fMSX/Unix && ${GMAKE}
do-install:
1997-07-21 21:28:46 +02:00
${INSTALL_SCRIPT} ${FILESDIR}/fmsx ${PREFIX}/bin
2008-05-26 07:58:54 +02:00
${REINPLACE_CMD} -i "" -e "s,PREFIX,${PREFIX},g" ${PREFIX}/bin/fmsx
${INSTALL_PROGRAM} ${WRKSRC}/fMSX/Unix/fmsx ${PREFIX}/bin/fmsx.bin
1997-03-24 19:44:29 +01:00
${MKDIR} ${PREFIX}/share/fmsx
2008-05-26 07:58:54 +02:00
${INSTALL_DATA} ${WRKSRC}/fMSX/ROMs/*.FNT ${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.ROM ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
2008-05-26 07:58:54 +02:00
${INSTALL_DATA} ${WRKSRC}/fMSX/*.html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>