aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/adamem/Makefile
blob: 15e9279479337d516b4d1b4edf428de5a17f2d07 (plain) (blame)
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
# Created by: Jeremy Karlson
# $FreeBSD$

PORTNAME=   adamem
PORTVERSION=    1.0
PORTREVISION=   4
CATEGORIES= emulators
MASTER_SITES=   http://www.komkon.org/~dekogel/files/coleco/
DISTNAME=   ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    ADAMEm is a portable Coleco ADAM and ColecoVision emulator

BROKEN=     Does not fetch
NO_WRKSUBDIR=   yes
USE_XORG=   sm x11 xau xext xfixes xi xrandr

MAKE_ARGS=  CC="${CC}" LD="${CC}"
ALL_TARGET= x

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/ADAMEm.c \
        ${WRKSRC}/Coleco.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/adamem ${STAGEDIR}${PREFIX}/bin
    ${LN} -s adamem ${STAGEDIR}${PREFIX}/bin/cvem
    @${MKDIR} ${STAGEDIR}${DATADIR}
.for f in adamem.snd OS7.rom WP.rom EOS.rom
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/adamem.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>