1996-04-27 20:37:41 +02:00
|
|
|
# New ports collection makefile for: imaze
|
|
|
|
# Date created: 27. April 1996
|
2001-12-22 15:46:05 +01:00
|
|
|
# Whom: Ronald Kuehn <rk@ronald.org>
|
1996-04-27 20:37:41 +02:00
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1996-04-27 20:37:41 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= imaze
|
2001-12-22 15:46:05 +01:00
|
|
|
PORTVERSION= 1.4
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= games
|
2001-12-22 15:46:05 +01:00
|
|
|
MASTER_SITES= http://home.tu-clausthal.de/student/iMaze/files/
|
|
|
|
PKGNAMESUFFIX= -${TOOLKIT}
|
1996-04-27 20:37:41 +02:00
|
|
|
|
2001-12-22 15:46:05 +01:00
|
|
|
MAINTAINER= rk@ronald.org
|
1996-04-27 20:37:41 +02:00
|
|
|
|
2001-12-22 15:46:05 +01:00
|
|
|
.if defined(WITH_MOTIF) && defined(HAVE_MOTIF)
|
|
|
|
USE_MOTIF= yes
|
|
|
|
TOOLKIT= motif
|
|
|
|
.elif defined(WITH_ATHENA)
|
|
|
|
TOOLKIT= athena
|
|
|
|
.else
|
1999-05-05 01:18:39 +02:00
|
|
|
LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview
|
2001-12-22 15:46:05 +01:00
|
|
|
TOOLKIT= xview
|
1996-11-19 12:06:46 +01:00
|
|
|
.endif
|
1996-04-30 07:44:51 +02:00
|
|
|
|
1998-08-05 11:31:52 +02:00
|
|
|
USE_X_PREFIX= yes
|
2001-12-22 15:46:05 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= ${TOOLKIT} X11Dir=${X11BASE} CFlags="${CFLAGS}"
|
|
|
|
CONFIGURE_WRKSRC=${WRKSRC}/source
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/source
|
|
|
|
MAKE_ENV= SOUNDDIR=${SOUNDDIR}
|
|
|
|
MAN6= genlab.6 imaze.6 imazesrv.6 imazestat.6 ninja.6 xlabed.6
|
|
|
|
MANCOMPRESSED= no
|
1999-02-22 05:00:36 +01:00
|
|
|
|
2001-12-22 15:46:05 +01:00
|
|
|
.if defined(WITHOUT_AUDIO)
|
|
|
|
CONFIGURE_ARGS+=noaudio
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_JOYSTICK)
|
|
|
|
CONFIGURE_ARGS+=nojoystick
|
1999-02-22 05:00:36 +01:00
|
|
|
.endif
|
1996-04-27 20:37:41 +02:00
|
|
|
|
2001-12-22 15:46:05 +01:00
|
|
|
PROGRAMS= imaze imazesrv imazestat ninja genlab xlabed
|
|
|
|
SOUNDDIR= ${PREFIX}/share/imaze/sounds
|
1996-04-27 20:37:41 +02:00
|
|
|
|
2001-12-22 15:46:05 +01:00
|
|
|
pre-everything::
|
|
|
|
@$(ECHO_MSG) "iMaze can be built with XView (default), Motif or" \
|
|
|
|
"Athena widgets."
|
|
|
|
@$(ECHO_MSG) "Use \"-DWITH_MOTIF\" or \"-DWITH_ATHENA\" to select" \
|
|
|
|
"Motif or Athena widgets."
|
|
|
|
@$(ECHO_MSG) "Audio and joystick support can be disabled with" \
|
|
|
|
"\"-DWITHOUT_AUDIO\""
|
|
|
|
@$(ECHO_MSG) "and/or \"-DWITHOUT_JOYSTICK\""
|
1999-02-22 05:00:36 +01:00
|
|
|
|
|
|
|
do-install:
|
2001-12-22 15:46:05 +01:00
|
|
|
@(cd ${WRKSRC}/source && for f in ${PROGRAMS}; do \
|
|
|
|
${INSTALL_PROGRAM} $$f ${PREFIX}/bin; done)
|
|
|
|
@(cd ${WRKSRC}/man6 && for f in *.6; do \
|
|
|
|
${INSTALL_MAN} $$f ${PREFIX}/man/man6; done)
|
1999-08-23 01:33:47 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/imaze/labs
|
2001-12-22 15:46:05 +01:00
|
|
|
@(cd ${WRKSRC}/labs && for f in *.lab; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/share/imaze/labs; done)
|
1999-08-23 01:33:47 +02:00
|
|
|
@${MKDIR} ${SOUNDDIR}
|
2001-12-22 15:46:05 +01:00
|
|
|
@(cd ${WRKSRC}/sounds && for f in *.au; do \
|
|
|
|
${INSTALL_DATA} $$f ${SOUNDDIR}; done)
|
|
|
|
@(cd ${WRKSRC} && ${INSTALL_DATA} README ${PREFIX}/share/imaze)
|
|
|
|
@$(ECHO_MSG) "Please read the file \"${PREFIX}/share/imaze/README\"."
|
1999-02-22 05:00:36 +01:00
|
|
|
|
1996-04-27 20:37:41 +02:00
|
|
|
.include <bsd.port.mk>
|