aboutsummaryrefslogtreecommitdiffstats
path: root/games/xmris/Makefile
blob: ab75eff3b36c7700a83c12cd616783f910a5a916 (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
# Created by: jmz
# $FreeBSD$

PORTNAME=   xmris
PORTVERSION=    4.04
PORTREVISION=   4
CATEGORIES= games
MASTER_SITES=   XCONTRIB/games
DISTNAME=   ${PORTNAME}.${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Version of the Mr Do video arcade game for X11

USES=       imake tar:tgz
USE_XORG=   x11 xext xaw xmu xt sm ice
MAKE_ARGS=  XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults
ALL_TARGET= xmris xmred

DESKTOP_ENTRIES="XMRis" "" "" "${PORTNAME}" "" ""

post-build:
    @${LN} -sf Xmris-ad.src ${WRKSRC}/Xmris

do-install:
.for i in xmred xmris
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
        ${STAGEDIR}${PREFIX}/bin)
.endfor
    @${LN} -sf xmris ${STAGEDIR}${PREFIX}/bin/xmsit
.for i in xmred xmris
    (cd ${WRKSRC} && ${INSTALL_MAN} ${i}.man \
        ${STAGEDIR}${MANPREFIX}/man/man6/${i}.6)
.endfor
    @${LN} -sf xmris.6 ${STAGEDIR}${MANPREFIX}/man/man6/xmsit.6
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults
    (cd ${WRKSRC} && ${INSTALL_DATA} Xmris \
        ${STAGEDIR}${PREFIX}/lib/X11/app-defaults)
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris
    (cd ${WRKSRC} && ${INSTALL_DATA} *.gdn \
        ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris)
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xmris

.include <bsd.port.mk>