aboutsummaryrefslogtreecommitdiffstats
path: root/games/imaze/Makefile
blob: 9758797acbbeb018590f15cb33555d06f1cb10ef (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Created by: Ronald Kuehn <rk@ronald.org>
# $FreeBSD$

PORTNAME=   imaze
PORTVERSION=    1.4
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   TUCOWS/x11/entertain/ \
        http://www.sourcefiles.org/Games/Arcade/
PKGNAMESUFFIX=  -${TOOLKIT}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multi-player network action game for TCP/IP with 3D graphics

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/Copyright

OPTIONS_DEFINE= AUDIO JOYSTICK
OPTIONS_RADIO=  GUI
OPTIONS_RADIO_GUI=  XVIEW MOTIF
OPTIONS_DEFAULT=    AUDIO JOYSTICK XVIEW
AUDIO_DESC= Audio support
JOYSTICK_DESC=  Joystick support
XVIEW_DESC= XView widget library support

CONFIGURE_WRKSRC=${WRKSRC}/source
BUILD_WRKSRC=   ${WRKSRC}/source

USE_XORG=   x11 xaw xt
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= ${TOOLKIT} X11Dir="${LOCALBASE}" CFlags="${CFLAGS}"
MAKE_ENV=   SOUNDDIR="${DATADIR}/sounds"
MAKE_JOBS_SAFE= yes

MAN6=       genlab.6 imaze.6 imazesrv.6 imazestat.6 ninja.6 xlabed.6

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MAUDIO)
CONFIGURE_ARGS+=noaudio
.endif

.if empty(PORT_OPTIONS:MJOYSTICK)
CONFIGURE_ARGS+=nojoystick
.endif

.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXVIEW)
TOOLKIT=    athena
.endif

.if ${PORT_OPTIONS:MMOTIF}
USES+=      motif
TOOLKIT=    motif
.endif

.if ${PORT_OPTIONS:MXVIEW}
LIB_DEPENDS+=   xview:${PORTSDIR}/x11-toolkits/xview
TOOLKIT=    xview
.endif

do-install:
.for i in genlab imaze imazesrv imazestat ninja xlabed
    (cd ${WRKSRC}/source && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin)
.endfor
.for i in ${MAN6}
    (cd ${WRKSRC}/man6 && ${INSTALL_MAN} ${i} ${MAN6PREFIX}/man/man6)
.endfor
    @${MKDIR} ${DATADIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} README ${DATADIR})
    @${MKDIR} ${DATADIR}/labs
    (cd ${WRKSRC}/labs && ${INSTALL_DATA} *.lab ${DATADIR}/labs)
    @${MKDIR} ${DATADIR}/sounds
    (cd ${WRKSRC}/sounds && ${INSTALL_DATA} *.au ${DATADIR}/sounds)
    @${ECHO_MSG} "Please read the file \"${DATADIR}/README\"."

.include <bsd.port.mk>