1 # Created by: Will Andrews <andrews@technologist.com>
8 MASTER_SITES= http://sed.free.fr/rubix/ \
9 http://mirror.mcx2.org/
11 MAINTAINER= ports@FreeBSD.org
12 COMMENT= Another Rubik's cube game with a rather interesting interface
14 USES= compiler:nestedfct gmake tar:bzip2 xorg
16 MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DENGLISH" \
17 XINC="-I${LOCALBASE}/include" XLIB="-L${LOCALBASE}/lib -lX11"
18 ALL_TARGET= ${PORTNAME}
20 PORTDOCS= AUTHORS BUGS INSTALL README TODO
21 PLIST_FILES= bin/rubix
25 .include <bsd.port.pre.mk>
27 .if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
28 CFLAGS+= -fnested-functions
32 ${INSTALL_PROGRAM} ${WRKSRC}/rubix ${STAGEDIR}${PREFIX}/bin
35 @${MKDIR} ${STAGEDIR}${DOCSDIR}
36 .for file in ${PORTDOCS}
37 ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
40 .include <bsd.port.post.mk>