1 # Created by: Don Croyle <croyle@gelemna.org>
5 DISTVERSION= 7.5.0-0pre.0.20050612
7 CATEGORIES= games tcl tk
8 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Graphical multi-player strategy game and game design system
13 LICENSE= GPLv2 # (or later)
17 USES= compiler gmake makeinfo tar:bzip2
20 CONFIGURE_ARGS= --enable-alternate-scoresdir=${SCOREDIR} \
21 --enable-alternate-gameuser=root \
22 --enable-alternate-gamegroup=games
23 MAKE_ARGS= GAMEPERM=755 DIRPERM=775 FILEPERM=664
26 PLIST_SUB= SCOREDIR="${SCOREDIR}"
30 DESKTOP_ENTRIES="${PORTNAME}" "${COMMENT}" "" "${PORTNAME}" \
31 "Game;StrategyGame;" false
33 SCOREDIR?= /var/games/xconq
35 .include <bsd.port.options.mk>
37 .if ${PORT_OPTIONS:MSDL}
39 CONFIGURE_ARGS+=--enable-default-ui=sdl
40 PLIST_SUB+= NOSDL="@comment "
43 USE_XORG+= xext xmu xt xaw
44 CONFIGURE_ARGS+=--with-tclconfig=${TCL_LIBDIR} \
45 --with-tkconfig=${TK_LIBDIR}
49 .include <bsd.port.pre.mk>
51 .if ${COMPILER_TYPE} == clang
52 CFLAGS+= -Wno-deprecated-writable-strings
54 CFLAGS+= -Wno-write-strings
58 @${REINPLACE_CMD} -e \
59 '/^HFLAGS/s| $${debugging}||' ${WRKSRC}/configure
60 # Fix for gmake >= 3.82
61 @${FIND} ${WRKSRC} -name Makefile.in -print | ${XARGS} \
62 ${REINPLACE_CMD} -e 's/^ */ /'
65 (cd ${WRKSRC}/doc && makeinfo xconq.texi)
68 ${INSTALL_DATA} ${WRKSRC}/doc/xconq.info \
69 ${STAGEDIR}${PREFIX}/${INFO_PATH}
70 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xconq
71 .if empty(PORT_OPTIONS:MSDL)
72 .for i in imf2x imfapp x2imf
73 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
76 @${FIND} ${STAGEDIR}${DATADIR} -empty -delete
77 @${MKDIR} ${STAGEDIR}${SCOREDIR}
79 .include <bsd.port.post.mk>