File:  [cvs.NetBSD.org] / pkgsrc / games / xbat / Makefile
Revision 1.18: download - view: text, annotated - select for diffs
Sun Jan 14 17:34:02 2018 UTC (6 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, HEAD
games/*: fix alignment of variable values

pkglint -Wall -r --autofix --only aligned

After running the above command, three packages had to be adjusted
manually:

In maelstrom-x11, pkglint didn't see that a commented variable
assignment should have been re-aligned as well.

In netmaze, there was a single line that didn't align well with all the
others, but pkglint decided to adjust the whole paragraph to this single
line. The result would have been ok, but not good.

In tscp, there was a paragraph where some of the lines were indented
one space more than the others. This rule is useful when one variable
name is very long compared to the others, but not in this case.

# $NetBSD: Makefile,v 1.18 2018/01/14 17:34:02 rillig Exp $

DISTNAME=	xev111
PKGNAME=	xbat-1.11
PKGREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/
MASTER_SITES+=	${MASTER_SITE_FREEBSD}

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://www.nemoto.ecei.tohoku.ac.jp/~wai/index_e.html
COMMENT=	XEVIOUS like shooting game

RESTRICTED=		Possible copyright infringement
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_SRC_ON_FTP=		${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}

WRKSRC=		${WRKDIR}/Xev111
USE_IMAKE=	yes
BUILD_TARGET=	xbat

MAKE_FLAGS+=	INSTLINFLAGS="-o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}"
MAKE_FLAGS+=	INSTPGMFLAGS="-o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}"
MAKE_FLAGS+=	VARBASE=${VARBASE}

SCORE_DIR=	share/games/Xbat/Score

SETGIDGAME=		yes
SPECIAL_PERMS=		bin/xbat ${SETGID_GAMES_PERMS}
REQD_DIRS_PERMS+=	${VARBASE}/games/Xbat ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
.for n in 0 1 2 3 4
REQD_FILES_PERMS+=	${SCORE_DIR}/top10-${n}.txt			\
			${VARBASE}/games/Xbat/top10-${n}.txt 		\
			${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
.endfor

BUILD_DEFS+=	VARBASE
BUILD_DEFS+=	GAMEDATAMODE
BUILD_DEFS+=	GAMEMODE

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
MAKE_FLAGS+=	UNION=0
.elif ${MACHINE_ENDIAN} == "little"
MAKE_FLAGS+=	UNION=1
.else
BROKEN=		Unknown endianness
.endif

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${SCORE_DIR}
.for n in 0 1 2 3 4
	${INSTALL_DATA} ${WRKSRC}/Score/top10-${n}.txt	\
		${DESTDIR}${PREFIX}/${SCORE_DIR}/top10-${n}.txt
.endfor

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>