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.
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2018/01/14 17:34:00 rillig Exp $
|
|
|
|
DISTNAME= neverball-1.6.0
|
|
PKGREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://neverball.org/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://neverball.org/
|
|
COMMENT= Puzzle/action game similar to Super Monkey Ball
|
|
|
|
USE_TOOLS+= gmake pax
|
|
|
|
# Avoiding multiples patches...
|
|
BUILDLINK_FNAME_TRANSFORM.SDL+= -e "s|/SDL/|/|g"
|
|
BUILDLINK_FNAME_TRANSFORM.SDL_ttf+= -e "s|/SDL/|/|g"
|
|
|
|
MAKE_ENV+= ENABLE_NLS=0
|
|
|
|
SHAREDIR= ${PREFIX}/share/${PKGBASE}
|
|
|
|
INSTALLATION_DIRS= bin share/doc/${PKGBASE} share/${PKGBASE}
|
|
|
|
LDFLAGS.DragonFly= -lX11 -lm
|
|
LDFLAGS.SunOS+= -lX11 -lm
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/manual.txt \
|
|
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/neverball ${WRKSRC}/neverputt \
|
|
${DESTDIR}${PREFIX}/bin
|
|
for d in `${FIND} ${WRKSRC}/data -type d -print`; do \
|
|
${CHMOD} ${PKGDIRMODE} $${d}; \
|
|
done
|
|
for f in `${FIND} ${WRKSRC}/data -type f -print`; do \
|
|
${CHMOD} ${SHAREMODE} $${f}; \
|
|
done
|
|
cd ${WRKSRC} && ${PAX} -rwppm data ${DESTDIR}${SHAREDIR}
|
|
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.include "../../fonts/SDL2_ttf/buildlink3.mk"
|
|
.include "../../devel/physfs/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|