freebsd-ports/games/imaze/Makefile
Torsten Zuehlsdorff 29eac2606e games/imaze: unbreak and modernize port
This includes:
- Bump PORTREVISION
- Unbreak fetch
- Remove TUCOWS from MASTER_SITES
- Add ATHENA option and set it by default, instead of XVIEW
- Convert GUI's options from RADIO to SINGLE
- Switch to options helpers
- Add MOTIFLIB define with proper value to fix linkage
- Add xmu to USE_XORG
- Regenerate patches

PR:           210081
Submitted by: lightside <lightside@gmx.com>
Approved by:  junovitch (mentor)
2016-06-17 08:21:16 +00:00

55 lines
1.7 KiB
Makefile

# Created by: Ronald Kuehn <rk@ronald.org>
# $FreeBSD$
PORTNAME= imaze
PORTVERSION= 1.4
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= 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= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/Copyright
OPTIONS_DEFINE= AUDIO JOYSTICK
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI= ATHENA MOTIF XVIEW
OPTIONS_DEFAULT= ATHENA AUDIO JOYSTICK
ATHENA_DESC= Athena widget library support
ATHENA_VARS= TOOLKIT=athena
AUDIO_DESC= Audio support
AUDIO_CONFIGURE_OFF= noaudio
JOYSTICK_DESC= Joystick support
JOYSTICK_CONFIGURE_OFF= nojoystick
MOTIF_USES= motif
MOTIF_VARS= MOTIFLIB="-L${LOCALBASE}/lib -lXm -lXt" TOOLKIT=motif
XVIEW_DESC= XView widget library support
XVIEW_LIB_DEPENDS= libxview.so:x11-toolkits/xview
XVIEW_VARS= TOOLKIT=xview
CONFIGURE_WRKSRC=${WRKSRC}/source
BUILD_WRKSRC= ${WRKSRC}/source
USE_XORG= x11 xaw xmu xt
HAS_CONFIGURE= yes
CONFIGURE_ARGS= ${TOOLKIT} X11Dir="${LOCALBASE}" CFlags="${CFLAGS}"
MAKE_ENV= SOUNDDIR="${DATADIR}/sounds"
do-install:
.for i in genlab imaze imazesrv imazestat ninja xlabed
(cd ${WRKSRC}/source && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
(cd ${WRKSRC}/man6 && ${INSTALL_MAN} *.6 ${STAGEDIR}${MAN6PREFIX}/man/man6)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${DATADIR}/labs
(cd ${WRKSRC}/labs && ${INSTALL_DATA} *.lab ${STAGEDIR}${DATADIR}/labs)
@${MKDIR} ${STAGEDIR}${DATADIR}/sounds
(cd ${WRKSRC}/sounds && ${INSTALL_DATA} *.au ${STAGEDIR}${DATADIR}/sounds)
@${ECHO_MSG} "Please read the file \"${DATADIR}/README\"."
.include <bsd.port.mk>