aboutsummaryrefslogtreecommitdiffstats
path: root/games/inform7/Makefile
blob: 9956a24d13907d75e6ccf4759011c68e92977cc2 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Andy Kosela <akosela@andykosela.com>
# $FreeBSD$

PORTNAME=   inform7
PORTVERSION=    6L38
CATEGORIES= games
MASTER_SITES=   http://ftp.ifarchive.org/if-archive/infocom/compilers/inform7/executables/ \
        http://ifarchive.heanet.ie/if-archive/infocom/compilers/inform7/executables/
DISTNAME=   I7_6L38_FreeBSD

MAINTAINER= akosela@andykosela.com
COMMENT=    Inform 7 programming language (CLI edition)

RUN_DEPENDS=    frotz:games/frotz

ONLY_FOR_ARCHS= i386 amd64

USES=       zip
SUB_FILES=  i7.sh
NO_BUILD=   yes

.include <bsd.port.pre.mk>

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/i7.sh ${STAGEDIR}${PREFIX}/bin/i7

    @${MKDIR} ${STAGEDIR}${DATADIR}
    @${CP} -R ${WRKSRC}/Internal ${STAGEDIR}${DATADIR}

    ${INSTALL_MAN} ${FILESDIR}/i7.6 ${STAGEDIR}${MAN6PREFIX}/man/man6

.if ${ARCH} == "i386"
    ${INSTALL_PROGRAM} ${WRKSRC}/ni.i386 ${STAGEDIR}${PREFIX}/bin/ni
    ${INSTALL_PROGRAM} ${WRKSRC}/inform6.i386 \
        ${STAGEDIR}${PREFIX}/bin/inform6
    ${INSTALL_PROGRAM} ${WRKSRC}/cBlorb.i386 \
        ${STAGEDIR}${PREFIX}/bin/cBlorb
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-frotz.i386 \
        ${STAGEDIR}${PREFIX}/bin/dumb-frotz
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-git.i386 \
        ${STAGEDIR}${PREFIX}/bin/dumb-git
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-glulxe.i386 \
        ${STAGEDIR}${PREFIX}/bin/dumb-glulxe
.else
    ${INSTALL_PROGRAM} ${WRKSRC}/ni.amd64 ${STAGEDIR}${PREFIX}/bin/ni
    ${INSTALL_PROGRAM} ${WRKSRC}/inform6.amd64 \
        ${STAGEDIR}${PREFIX}/bin/inform6
    ${INSTALL_PROGRAM} ${WRKSRC}/cBlorb.amd64 \
        ${STAGEDIR}${PREFIX}/bin/cBlorb
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-frotz.amd64 \
        ${STAGEDIR}${PREFIX}/bin/dumb-frotz
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-git.amd64 \
        ${STAGEDIR}${PREFIX}/bin/dumb-git
    ${INSTALL_PROGRAM} ${WRKSRC}/dumb-glulxe.amd64 \
        ${STAGEDIR}${PREFIX}/bin/dumb-glulxe
.endif

.include <bsd.port.post.mk>