aboutsummaryrefslogtreecommitdiffstats
path: root/games/xblast/Makefile
blob: 39b56b4d71f8c4ea78eb0ff3f843e0b7f59e0967 (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
59
60
61
# New ports collection makefile for:    xblast
# Date created:         Sat Nov 08 09:47:12 CET 1997
# Whom:                 se
#
# $FreeBSD$
#

PORTNAME=   xblast
PORTVERSION=    2.9.22
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xblast
.ifdef (WITHOUT_SOUND)
PKGNAMESUFFIX=  -nosound
.endif
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= image.tar.gz
DISTFILES+= level.tar.gz
.ifndef (WITHOUT_SOUND)
DISTFILES+= sounds.tar.gz
.endif
DIST_SUBDIR=    xblast

MAINTAINER= se@FreeBSD.org
COMMENT=    Multi-player real-time strategy game for X11

CFLAGS+=    -DGAME_DATADIR='\"${DATADIR}\"'
.ifndef (WITHOUT_SOUND)
CFLAGS+=    -DXBLAST_SOUND
.endif
USE_IMAKE=  yes
.ifndef (WITHOUT_SOUND)
ALL_TARGET= all xbsndsrv
.endif
MAN1=       xblast.1
.ifndef (WITHOUT_SOUND)
PLIST_SUB+=    WITH_SOUND=""
.else
PLIST_SUB+=    WITH_SOUND="@comment "
.endif

.ifndef (WITHOUT_SOUND)
SOUNDS=     sounds
.endif

post-install:
.ifndef (WITHOUT_SOUND)
        ${INSTALL_PROGRAM} ${WRKSRC}/xbsndsrv ${PREFIX}/bin
.endif
        ${MKDIR} ${DATADIR}
.for d in image level ${SOUNDS}
        cd ${WRKDIR}; \
        ${FIND} $d -type d | (cd ${DATADIR}; ${XARGS} ${MKDIR}); \
        ${FIND} $d -type f | ${EGREP} -f ${FILESDIR}/re-${d} | \
        while read f; do \
            ${INSTALL_DATA} $$f ${DATADIR}/$$f; \
        done
.endfor

.include <bsd.port.mk>