Return to Makefile CVS log | Up to [cvs.NetBSD.org] / pkgsrc / games / maelstrom-x11 |
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.31 2018/01/14 17:34:00 rillig Exp $ DISTNAME= Maelstrom-1.4.3-L2.0.6-src.tar.gz PKGNAME= maelstrom-x11-2.0.6 PKGREVISION= 4 CATEGORIES= games x11 MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/ MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Maelstrom-binaries/ MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Add-Ons/ DISTFILES= ${DISTNAME} ${STREK} ${SWARS} ${ESOUND} MAINTAINER= pkgsrc-users@NetBSD.org #HOMEPAGE= http://www.ambrosiasw.com/Products/Maelstrom.html COMMENT= High resolution graphics version of Asteroids (X11 version) ESOUND= Maelstrom-Sounds-L2.0.0.tar.gz STREK= Star_Trek.tar.gz SWARS= Star_Wars.tar.gz CONFLICTS= maelstrom-[0-9]* maelstrom-sdl-[0-9]* EXTRACT_ONLY= ${DISTNAME} WRKSRC= ${WRKDIR}/Maelstrom USE_LANGUAGES= c c++ USE_TOOLS+= pax LDFLAGS.SunOS+= -lsocket -lnsl LIBS.SunOS+= -lsocket -lnsl MAKE_FLAGS+= EXTRALIBS=${LIBS:Q} MAKE_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP} XPMDIR=${BUILDLINK_PREFIX.libXpm} MAKE_ENV+= GAMEOWN=${GAMEOWN} GAMEGRP=${GAMEGRP} MAKE_ENV+= GAMEMODE=${GAMEMODE} GAMEDATAMODE=${GAMEDATAMODE} MAKE_ENV+= VARBASE=${VARBASE} USE_GAMESGROUP= yes SCOREDIR= ${VARBASE}/games SCOREFILE= ${SCOREDIR}/Maelstrom-Scores ORIGSCOREFILE= ${PREFIX}/share/maelstrom/Maelstrom-Scores MAKE_DIRS_PERMS+= ${SCOREDIR} ${GAMEDIR_PERMS} REQD_FILES_PERMS+= ${ORIGSCOREFILE} ${SCOREFILE} ${GAMEDATA_PERMS} BUILD_DEFS+= VARBASE SCOREFILE SPECIAL_PERMS+= bin/Maelstrom ${SETGID_GAMES_PERMS} INSTALLATION_DIRS+= bin share/maelstrom post-install: cd ${DESTDIR}${PREFIX}/share/maelstrom && \ pax -O -pm -zrf ${DISTDIR}/${ESOUND} && \ pax -O -pm -zrf ${DISTDIR}/${STREK} && \ pax -O -pm -zrf ${DISTDIR}/${SWARS} ${INSTALL_DATA} ${WRKSRC}/README.* ${DESTDIR}${PREFIX}/share/maelstrom ${INSTALL_PROGRAM} ${WRKSRC}/netplayd/netplayd \ ${DESTDIR}${PREFIX}/bin/Maelstrom_netplayd .include "../../x11/libXext/buildlink3.mk" .include "../../x11/libXpm/buildlink3.mk" .include "../../mk/oss.buildlink3.mk" .include "../../mk/bsd.pkg.mk"