Update games/gbottler to version 0.1.7_2
[dports.git] / games / xconq / Makefile
1 # Created by: Don Croyle <croyle@gelemna.org>
2 # $FreeBSD$
3
4 PORTNAME=       xconq
5 DISTVERSION=    7.5.0-0pre.0.20050612
6 PORTREVISION=   1
7 CATEGORIES=     games tcl tk
8 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${DISTNAME}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Graphical multi-player strategy game and game design system
12
13 LICENSE=        GPLv2 # (or later)
14
15 OPTIONS_DEFINE= SDL
16
17 USES=           compiler gmake makeinfo tar:bzip2
18 USE_XORG=       x11
19 GNU_CONFIGURE=  yes
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
24 MAKE_JOBS_UNSAFE=       yes
25
26 PLIST_SUB=      SCOREDIR="${SCOREDIR}"
27
28 INFO=           xconq
29
30 DESKTOP_ENTRIES="${PORTNAME}" "${COMMENT}" "" "${PORTNAME}" \
31                 "Game;StrategyGame;" false
32
33 SCOREDIR?=      /var/games/xconq
34
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MSDL}
38 USE_SDL=        sdl
39 CONFIGURE_ARGS+=--enable-default-ui=sdl
40 PLIST_SUB+=     NOSDL="@comment "
41 .else
42 USES+=          tk
43 USE_XORG+=      xext xmu xt xaw
44 CONFIGURE_ARGS+=--with-tclconfig=${TCL_LIBDIR} \
45                 --with-tkconfig=${TK_LIBDIR}
46 PLIST_SUB+=     NOSDL=""
47 .endif
48
49 .include <bsd.port.pre.mk>
50
51 .if ${COMPILER_TYPE} == clang
52 CFLAGS+=        -Wno-deprecated-writable-strings
53 .else
54 CFLAGS+=        -Wno-write-strings
55 .endif
56
57 post-patch:
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/^   */   /'
63
64 post-build:
65         (cd ${WRKSRC}/doc && makeinfo xconq.texi)
66
67 post-install:
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}
74 .endfor
75 .endif
76         @${FIND} ${STAGEDIR}${DATADIR} -empty -delete
77         @${MKDIR} ${STAGEDIR}${SCOREDIR}
78
79 .include <bsd.port.post.mk>