aboutsummaryrefslogtreecommitdiffstats
path: root/games/xnibbles/Makefile
blob: 98c73b8f314c83481582f90168cd0daf8608a93b (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:    xnibbles
# Date created:             2 March 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   xnibbles
PORTVERSION=    1.0.b3
CATEGORIES= games
MASTER_SITES=   http://www.tjhsst.edu/xnibbles/
DISTNAME=   xnibbles-1.0BETA3

MAINTAINER= ports@FreeBSD.org

ALL_TARGET= linux
USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_XPM=    yes
WRKSRC=     ${WRKDIR}/xnibbles

MAN6=       xnibbles.6

CFLAGS+=    -I ${X11BASE}/include -L ${X11BASE}/lib

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${PREFIX}/man/man6
    @${MKDIR} ${PREFIX}/share/xnibbles/sounds
    @${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
    @${MKDIR} ${PREFIX}/share/xnibbles/levels
    @if [ -f ${PREFIX}/share/xnibbles/levels/LEVELS ]; then \
        ${RM} ${PREFIX}/share/xnibbles/levels/LEVELS; \
     fi
    @${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
.for file in 001 002 003 004 005 006 007 008 009 010 011 012
    @${ECHO} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
    @${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
.endfor
    @${MKDIR} ${PREFIX}/share/doc/xnibbles
    @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
    @${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
    @${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels

.include <bsd.port.mk>