Update games/hexalate to version 1.1.6
[dports.git] / games / rubix / Makefile
1 # Created by: Will Andrews <andrews@technologist.com>
2 # $FreeBSD$
3
4 PORTNAME=       rubix
5 PORTVERSION=    1.0.6
6 PORTREVISION=   7
7 CATEGORIES=     games
8 MASTER_SITES=   http://sed.free.fr/rubix/ \
9                 http://mirror.mcx2.org/
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Another Rubik's cube game with a rather interesting interface
13
14 USES=           compiler:nestedfct gmake tar:bzip2 xorg
15 USE_XORG=       x11
16 MAKE_ARGS=      CC="${CC}" CFLAGS="${CFLAGS} -DENGLISH" \
17                 XINC="-I${LOCALBASE}/include" XLIB="-L${LOCALBASE}/lib -lX11"
18 ALL_TARGET=     ${PORTNAME}
19
20 PORTDOCS=       AUTHORS BUGS INSTALL README TODO
21 PLIST_FILES=    bin/rubix
22
23 OPTIONS_DEFINE= DOCS
24
25 .include <bsd.port.pre.mk>
26
27 .if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
28 CFLAGS+=        -fnested-functions
29 .endif
30
31 do-install:
32         ${INSTALL_PROGRAM} ${WRKSRC}/rubix ${STAGEDIR}${PREFIX}/bin
33
34 do-install-DOCS-on:
35         @${MKDIR} ${STAGEDIR}${DOCSDIR}
36 .for file in ${PORTDOCS}
37         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
38 .endfor
39
40 .include <bsd.port.post.mk>