diff --git a/games/rubix/Makefile b/games/rubix/Makefile index ae7b6f5afa33..c1defcee06c7 100644 --- a/games/rubix/Makefile +++ b/games/rubix/Makefile @@ -1,38 +1,39 @@ # Created by: Will Andrews # $FreeBSD$ PORTNAME= rubix PORTVERSION= 1.0.6 CATEGORIES= games MASTER_SITES= http://sed.free.fr/rubix/ \ http://mirror.mcx2.org/ MAINTAINER= ports@FreeBSD.org COMMENT= Another Rubik's cube game with a rather interesting interface -USES= gmake tar:bzip2 +USES= compiler:nestedfct gmake tar:bzip2 USE_XORG= x11 MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DENGLISH" \ XINC="-I${LOCALBASE}/include" XLIB="-L${LOCALBASE}/lib -lX11" ALL_TARGET= ${PORTNAME} -USE_GCC= any -PORTDOCS= ${DOCFILES} +PORTDOCS= AUTHORS BUGS INSTALL README TODO PLIST_FILES= bin/rubix -DOCFILES= AUTHORS BUGS INSTALL README TODO - OPTIONS_DEFINE= DOCS -.include +.include + +.if (${ARCH} == mips || ${ARCH} == mips64) && ${COMPILER_TYPE} == gcc +CFLAGS+= -fnested-functions +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rubix ${STAGEDIR}${PREFIX}/bin -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for file in ${DOCFILES} +.for file in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor -.endif -.include +.include