blob: 567be54ebcac99fd10b6cf1f0d1b94be041a4da5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: fMSX
# Date created: 15 Oct 1996
# Whom: dk
#
# $FreeBSD$
#
PORTNAME= fmsx
PORTVERSION= 3.0
CATEGORIES= emulators
MASTER_SITES= http://www.mavetju.org/download/adopted/:code \
http://fms.komkon.org/fMSX/:code \
http://fms.komkon.org/fMSX/src/:rom
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
DIST_SUBDIR= fmsx30
EXTRACT_ONLY= fMSX30.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= 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:
.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
.ifdef(WITH_BPP8)
${REINPLACE_CMD} -e 's/%%BPP%%/BPP8/' ${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}/*.FNT ${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.ROM ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|