freebsd-ports/emulators/fmsx/Makefile
2004-03-19 01:58:30 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: fMSX
# Date created: 15 Oct 1996
# Whom: dk
#
# $FreeBSD$
#
PORTNAME= fmsx
PORTVERSION= 2.7
CATEGORIES= emulators
MASTER_SITES= http://www.mavetju.org/download/adopted/ \
http://fms.komkon.org/fMSX/
DISTNAME= fMSX27
EXTRACT_SUFX= .tar.Z
MAINTAINER= dk@farm.org
COMMENT= The Portable MSX/MSX2/MSX2+ Emulator
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
USE_XLIB= yes
RESTRICTED= Legal status of distributed ROM images unclear
WRKSRC= ${WRKDIR}/MSX
OPTIONS= BPP16 "With BPP16" Off \
BPP24 "With BPP24" Off \
BPP32 "With BPP32 (see pkg-message)" On
.include <bsd.port.pre.mk>
post-patch:
.ifdef(WITH_BPP32) || defined(PACKAGE_BUILDING) || defined(BATCH)
${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
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/fmsx ${PREFIX}/bin
${REINPLACE_CMD} "s,PREFIX,${PREFIX},g" ${PREFIX}/bin/fmsx
${INSTALL_PROGRAM} ${WRKSRC}/fmsx ${PREFIX}/bin/fmsx.bin
${INSTALL_PROGRAM} ${WRKSRC}/rddsk ${PREFIX}/bin/fmsx-rddsk
${INSTALL_PROGRAM} ${WRKSRC}/wrdsk ${PREFIX}/bin/fmsx-wrdsk
${MKDIR} ${PREFIX}/share/fmsx
${INSTALL_DATA} ${WRKSRC}/*.ROM ${WRKSRC}/*.FNT ${PREFIX}/share/fmsx
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/fmsx
${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/fmsx
.endif
.include <bsd.port.post.mk>