aboutsummaryrefslogtreecommitdiffstats
path: root/games/imaze/Makefile
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2001-12-22 22:46:05 +0800
committerkevlo <kevlo@FreeBSD.org>2001-12-22 22:46:05 +0800
commitb5a8cff647b47ff90c297ca67fef1cd8a20b0871 (patch)
tree7a67504d53f0843cc320678d289cb7faa8df5a8f /games/imaze/Makefile
parentdf35488d7c4c6d1e0bf53c0e6f685b45a8633f9b (diff)
downloadfreebsd-ports-gnome-b5a8cff647b47ff90c297ca67fef1cd8a20b0871.tar.gz
freebsd-ports-gnome-b5a8cff647b47ff90c297ca67fef1cd8a20b0871.tar.zst
freebsd-ports-gnome-b5a8cff647b47ff90c297ca67fef1cd8a20b0871.zip
- Update to version 1.4
- Add WWW - Takeover maintainership PR: 32811 Submitted by: Ronald Kuehn <rk@ronald.org>
Diffstat (limited to 'games/imaze/Makefile')
-rw-r--r--games/imaze/Makefile88
1 files changed, 44 insertions, 44 deletions
diff --git a/games/imaze/Makefile b/games/imaze/Makefile
index 5c9b38c7fd5c..fc5794dfae28 100644
--- a/games/imaze/Makefile
+++ b/games/imaze/Makefile
@@ -1,68 +1,68 @@
# New ports collection makefile for: imaze
# Date created: 27. April 1996
-# Whom: Ronald Kuehn <kuehn@rz.tu-clausthal.de>
+# Whom: Ronald Kuehn <rk@ronald.org>
#
# $FreeBSD$
#
PORTNAME= imaze
-PORTVERSION= 1.3
+PORTVERSION= 1.4
CATEGORIES= games
-MASTER_SITES= ftp://ftp.tu-clausthal.de/pub/misc/games/imaze/ \
- ftp://ftp.tu-clausthal.de/pub/misc/games/imaze/sounds/
-DISTFILES= imaze1.3.tar.Z imaze.tar
+MASTER_SITES= http://home.tu-clausthal.de/student/iMaze/files/
+PKGNAMESUFFIX= -${TOOLKIT}
-MAINTAINER= ports@freebsd.org
+MAINTAINER= rk@ronald.org
-#
-# Sound support currently only exists for the XView version (apperently
-# broken for the pcm driver; worked for voxware). The not yet released
-# version 1.4 will add sound support for the Motif version too.
-# XView is the default. If you want the Motif version, define FORCE_MOTIF=yes.
-#
-.if !(defined(HAVE_MOTIF) && defined(FORCE_MOTIF) && ${FORCE_MOTIF} == "yes") \
- || defined(PACKAGE_BUILDING)
+.if defined(WITH_MOTIF) && defined(HAVE_MOTIF)
+USE_MOTIF= yes
+TOOLKIT= motif
+.elif defined(WITH_ATHENA)
+TOOLKIT= athena
+.else
LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview
+TOOLKIT= xview
.endif
-WRKSRC= ${WRKDIR}/imaze
-EXTRACT_ONLY= imaze1.3.tar.Z
USE_X_PREFIX= yes
-MAN6= genlab.6 imaze.6 imazesrv.6 ninja.6
-MANCOMPRESSED= maybe
+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
-SOUNDDIR=${PREFIX}/share/imaze/sounds
-
-.if !defined(NOMANCOMPRESS)
-compresscommand=gzip -9nf
-.else
-compresscommand=":"
+.if defined(WITHOUT_AUDIO)
+CONFIGURE_ARGS+=noaudio
+.endif
+.if defined(WITHOUT_JOYSTICK)
+CONFIGURE_ARGS+=nojoystick
.endif
-post-extract:
- @tar xf ${DISTDIR}/imaze.tar -C ${WRKDIR}/imaze
+PROGRAMS= imaze imazesrv imazestat ninja genlab xlabed
+SOUNDDIR= ${PREFIX}/share/imaze/sounds
-do-build:
- @(cd ${WRKSRC}/source; ${MAKE} SOUNDDIR=${SOUNDDIR} \
- FORCE_MOTIF=${FORCE_MOTIF} MOTIFLIB="${MOTIFLIB}" \
- X11BASE=${X11BASE} freebsd)
+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\""
do-install:
- @(cd ${WRKSRC}/source && for f in imaze imazesrv ninja genlab;\
- do ${INSTALL_PROGRAM} $$f ${PREFIX}/bin; done)
- @(cd ${WRKSRC}/man6 && for f in *.6;\
- do ${INSTALL_MAN} $$f ${PREFIX}/man/man6;\
- ${compresscommand} ${PREFIX}/man/man6/$$f; done)
+ @(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)
@${MKDIR} ${PREFIX}/share/imaze/labs
- @(cd ${WRKSRC}/labs && for f in *.lab;\
- do ${INSTALL_DATA} $$f ${PREFIX}/share/imaze/labs; done)
+ @(cd ${WRKSRC}/labs && for f in *.lab; do \
+ ${INSTALL_DATA} $$f ${PREFIX}/share/imaze/labs; done)
@${MKDIR} ${SOUNDDIR}
- @(cd ${WRKSRC}/sounds && for f in *.au;\
- do ${INSTALL_DATA} $$f ${SOUNDDIR}; done)
- @(cd ${WRKSRC} && for f in Xdefaults.Motif Xdefaults.OpenWindows;\
- do ${INSTALL_DATA} $$f ${PREFIX}/share/imaze/$$f.example;\
- done; \
- ${INSTALL_DATA} README ${PREFIX}/share/imaze)
- @${ECHO_MSG} "Please read the file \"README\" in \"${PREFIX}/share/imaze\"."
+ @(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\"."
.include <bsd.port.mk>