Lines 1-72
Link Here
|
1 |
# New ports collection makefile for: imaze |
1 |
# Created by: Ronald Kuehn <rk@ronald.org> |
2 |
# Date created: 27. April 1996 |
|
|
3 |
# Whom: Ronald Kuehn <rk@ronald.org> |
4 |
# |
5 |
# $FreeBSD: head/games/imaze/Makefile 300896 2012-07-14 13:54:48Z beat $ |
2 |
# $FreeBSD: head/games/imaze/Makefile 300896 2012-07-14 13:54:48Z beat $ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= imaze |
4 |
PORTNAME= imaze |
9 |
PORTVERSION= 1.4 |
5 |
PORTVERSION= 1.4 |
10 |
PORTREVISION= 3 |
6 |
PORTREVISION= 3 |
11 |
CATEGORIES= games |
7 |
CATEGORIES= games |
12 |
MASTER_SITES= http://home.tu-clausthal.de/student/iMaze/files/ |
8 |
MASTER_SITES= TUCOWS/x11/entertain/ \ |
|
|
9 |
http://www.sourcefiles.org/Games/Arcade/ |
13 |
PKGNAMESUFFIX= -${TOOLKIT} |
10 |
PKGNAMESUFFIX= -${TOOLKIT} |
14 |
|
11 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= A multi-player network action game for TCP/IP with 3D graphics |
13 |
COMMENT= Multi-player network action game for TCP/IP with 3D graphics |
17 |
|
14 |
|
18 |
.if defined(WITH_MOTIF) && defined(HAVE_MOTIF) |
15 |
LICENSE= BSD |
19 |
USE_MOTIF= yes |
16 |
LICENSE_FILE= ${WRKSRC}/Copyright |
20 |
TOOLKIT= motif |
17 |
|
21 |
.elif defined(WITH_ATHENA) |
18 |
OPTIONS_DEFINE= AUDIO JOYSTICK |
22 |
TOOLKIT= athena |
19 |
OPTIONS_RADIO= GUI |
23 |
USE_XORG+= xaw |
20 |
OPTIONS_RADIO_GUI= XVIEW MOTIF |
24 |
.else |
21 |
OPTIONS_DEFAULT= AUDIO JOYSTICK XVIEW |
25 |
LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview |
22 |
AUDIO_DESC= Audio support |
26 |
TOOLKIT= xview |
23 |
JOYSTICK_DESC= Joystick support |
27 |
USE_XORG+= xaw |
24 |
XVIEW_DESC= XView widget library support |
28 |
.endif |
|
|
29 |
|
25 |
|
30 |
HAS_CONFIGURE= yes |
|
|
31 |
CONFIGURE_ARGS= ${TOOLKIT} X11Dir=${LOCALBASE} CFlags="${CFLAGS}" |
32 |
CONFIGURE_WRKSRC=${WRKSRC}/source |
26 |
CONFIGURE_WRKSRC=${WRKSRC}/source |
33 |
BUILD_WRKSRC= ${WRKSRC}/source |
27 |
BUILD_WRKSRC= ${WRKSRC}/source |
34 |
MAKE_ENV= SOUNDDIR=${SOUNDDIR} |
28 |
|
|
|
29 |
USE_XORG= x11 xaw xt |
30 |
HAS_CONFIGURE= yes |
31 |
CONFIGURE_ARGS= ${TOOLKIT} X11Dir="${LOCALBASE}" CFlags="${CFLAGS}" |
32 |
MAKE_ENV= SOUNDDIR="${DATADIR}/sounds" |
33 |
MAKE_JOBS_SAFE= yes |
34 |
|
35 |
MAN6= genlab.6 imaze.6 imazesrv.6 imazestat.6 ninja.6 xlabed.6 |
35 |
MAN6= genlab.6 imaze.6 imazesrv.6 imazestat.6 ninja.6 xlabed.6 |
36 |
MANCOMPRESSED= no |
|
|
37 |
USE_XORG+= x11 xt |
38 |
|
36 |
|
39 |
.if defined(WITHOUT_AUDIO) |
37 |
.include <bsd.port.options.mk> |
|
|
38 |
|
39 |
.if empty(PORT_OPTIONS:MAUDIO) |
40 |
CONFIGURE_ARGS+=noaudio |
40 |
CONFIGURE_ARGS+=noaudio |
41 |
.endif |
41 |
.endif |
42 |
.if defined(WITHOUT_JOYSTICK) |
42 |
|
|
|
43 |
.if empty(PORT_OPTIONS:MJOYSTICK) |
43 |
CONFIGURE_ARGS+=nojoystick |
44 |
CONFIGURE_ARGS+=nojoystick |
44 |
.endif |
45 |
.endif |
45 |
|
46 |
|
46 |
PROGRAMS= imaze imazesrv imazestat ninja genlab xlabed |
47 |
.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXVIEW) |
47 |
SOUNDDIR= ${PREFIX}/share/imaze/sounds |
48 |
TOOLKIT= athena |
|
|
49 |
.endif |
50 |
|
51 |
.if ${PORT_OPTIONS:MMOTIF} |
52 |
USE_MOTIF= yes |
53 |
TOOLKIT= motif |
54 |
.endif |
48 |
|
55 |
|
49 |
pre-everything:: |
56 |
.if ${PORT_OPTIONS:MXVIEW} |
50 |
@$(ECHO_MSG) "iMaze can be built with XView (default), Motif or" \ |
57 |
LIB_DEPENDS+= xview:${PORTSDIR}/x11-toolkits/xview |
51 |
"Athena widgets." |
58 |
TOOLKIT= xview |
52 |
@$(ECHO_MSG) "Use \"-DWITH_MOTIF\" or \"-DWITH_ATHENA\" to select" \ |
59 |
.endif |
53 |
"Motif or Athena widgets." |
|
|
54 |
@$(ECHO_MSG) "Audio and joystick support can be disabled with" \ |
55 |
"\"-DWITHOUT_AUDIO\"" |
56 |
@$(ECHO_MSG) "and/or \"-DWITHOUT_JOYSTICK\"" |
57 |
|
60 |
|
58 |
do-install: |
61 |
do-install: |
59 |
@(cd ${WRKSRC}/source && for f in ${PROGRAMS}; do \ |
62 |
.for i in genlab imaze imazesrv imazestat ninja xlabed |
60 |
${INSTALL_PROGRAM} $$f ${PREFIX}/bin; done) |
63 |
(cd ${WRKSRC}/source && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin) |
61 |
@(cd ${WRKSRC}/man6 && for f in *.6; do \ |
64 |
.endfor |
62 |
${INSTALL_MAN} $$f ${PREFIX}/man/man6; done) |
65 |
.for i in ${MAN6} |
63 |
@${MKDIR} ${PREFIX}/share/imaze/labs |
66 |
(cd ${WRKSRC}/man6 && ${INSTALL_MAN} ${i} ${MAN6PREFIX}/man/man6) |
64 |
@(cd ${WRKSRC}/labs && for f in *.lab; do \ |
67 |
.endfor |
65 |
${INSTALL_DATA} $$f ${PREFIX}/share/imaze/labs; done) |
68 |
@${MKDIR} ${DATADIR} |
66 |
@${MKDIR} ${SOUNDDIR} |
69 |
(cd ${WRKSRC} && ${INSTALL_DATA} README ${DATADIR}) |
67 |
@(cd ${WRKSRC}/sounds && for f in *.au; do \ |
70 |
@${MKDIR} ${DATADIR}/labs |
68 |
${INSTALL_DATA} $$f ${SOUNDDIR}; done) |
71 |
(cd ${WRKSRC}/labs && ${INSTALL_DATA} *.lab ${DATADIR}/labs) |
69 |
@(cd ${WRKSRC} && ${INSTALL_DATA} README ${PREFIX}/share/imaze) |
72 |
@${MKDIR} ${DATADIR}/sounds |
70 |
@$(ECHO_MSG) "Please read the file \"${PREFIX}/share/imaze/README\"." |
73 |
(cd ${WRKSRC}/sounds && ${INSTALL_DATA} *.au ${DATADIR}/sounds) |
|
|
74 |
@${ECHO_MSG} "Please read the file \"${DATADIR}/README\"." |
71 |
|
75 |
|
72 |
.include <bsd.port.mk> |
76 |
.include <bsd.port.mk> |