aboutsummaryrefslogtreecommitdiffstats
path: root/games/miscom/Makefile
blob: c70cca1eda2f7f740d55df037b131b029d637a26 (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
# New ports collection makefile for:    miscom
# Date created:             6 August 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=       miscom
PORTVERSION=        1.0
CATEGORIES=     games
MASTER_SITES=       ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/arcade
DISTNAME=       ${PORTNAME}

MAINTAINER=     ports@FreeBSD.org
COMMENT=    Atari "Missile Command" clone

ALL_TARGET=
WRKSRC=         ${WRKDIR}/miscom
MAN6=           miscom.6

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
CFLAGS+=    -DSOUNDSDIR='\"$(DATADIR)\"' -DSOUND_SUPPORT -DMORE_SOUNDBUF
.endif

MAKE_ARGS=  CC="${CC}" DATADIR="${DATADIR}" \
        CFLAGS="${CFLAGS}"

do-install:
    @ ${INSTALL_PROGRAM} ${WRKSRC}/miscom ${PREFIX}/bin
    @ ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${PREFIX}/man/man6
    @ ${MKDIR} ${PREFIX}/share/miscom
    @ ${INSTALL_DATA} ${WRKSRC}/sounds/* ${PREFIX}/share/miscom

post-install:
.if !defined(NOPORTDOCS)
    @ ${MKDIR} ${PREFIX}/share/doc/miscom
.for file in COPYING ChangeLog README TODO
    @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/miscom
.endfor
.endif

.include <bsd.port.post.mk>