aboutsummaryrefslogtreecommitdiffstats
path: root/games/omega/Makefile
blob: 9ae90f82f9e6d908282a19d4a5b3a4344aaad190 (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
# New ports collection makefile for:    omega
# Date created:             14 May 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   omega
PORTVERSION=    0.90.4
CATEGORIES= games
MASTER_SITES=   http://www.alcyone.com/binaries/omega/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    A complex rogue-style game of dungeon exploration

WRKSRC=     ${WRKDIR}/${PORTNAME}
ALL_TARGET= # empty
MAN6=       omega.6

PORTDOCS=   buglist.txt docs/compile.all docs/omega.txt docs/readme.1st \
        docs/readme3 docs/readme4

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=     "Does not compile"
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/omega ${PREFIX}/bin/omega-game
    @${CHOWN} root:games ${PREFIX}/bin/omega-game
    @${CHMOD} 2711 ${PREFIX}/bin/omega-game
    ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${PREFIX}/man/man6
    @${MKDIR} ${PREFIX}/share/omega
    ${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/share/omega
    @${RM} ${PREFIX}/share/omega/license.old
    @${CHMOD} 0460 ${PREFIX}/share/omega/omega.hi
    @${CHMOD} 0460 ${PREFIX}/share/omega/omega.log
    ${CP} ${PREFIX}/share/omega/omega.hi ${PREFIX}/share/omega/omegahi.bak
    @${CHMOD} 0460 ${PREFIX}/share/omega/omegahi.bak
    @${CHOWN} -R root:games ${PREFIX}/share/omega
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/omega
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/omega
.endfor
.endif

.include <bsd.port.post.mk>