382ca5f16e
Therefore it is not necessary to add the :Q modifier to this variable and several others. pkglint -r -Wall --autofix --only :Q
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.26 2018/01/14 15:26:47 rillig Exp $
|
|
|
|
DISTNAME= Maelstrom-3.0.6
|
|
PKGNAME= maelstrom-sdl-3.0.6
|
|
PKGREVISION= 1
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= http://www.libsdl.org/projects/Maelstrom/src/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.libsdl.org/projects/Maelstrom/
|
|
COMMENT= High resolution version of Asteroids (SDL version)
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
CONFLICTS= maelstrom-x11-[0-9]* maelstrom-[0-9]*
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_LANGUAGES= c c++
|
|
USE_GAMESGROUP= yes
|
|
|
|
MAKE_ENV+= CP=${CP:Q}
|
|
LIBS.SunOS+= -lsocket -lnsl
|
|
|
|
.if 0
|
|
# setgid
|
|
CFLAGS+= -DMAELSTROM_SETGID
|
|
SPECIAL_PERMS+= ${PREFIX}/bin/Maelstrom ${SETGID_GAMES_PERMS}
|
|
SCOREFILE_PERMS= ${GAMEDATA_PERMS}
|
|
.else
|
|
# not setgid, world-writeable score file (XXX)
|
|
SCOREFILE_PERMS= games games 666
|
|
.endif
|
|
BUILD_DEFS+= SCOREFILE_PERMS
|
|
|
|
# Put scorefile in VARBASE.
|
|
SCOREDIR= ${VARBASE}/games
|
|
SCOREFILE= ${SCOREDIR}/Maelstrom-Scores
|
|
ORIGSCOREFILE= ${PREFIX}/share/Maelstrom/Maelstrom-Scores
|
|
REQD_FILES_PERMS+= ${ORIGSCOREFILE} ${SCOREFILE} ${SCOREFILE_PERMS}
|
|
CFLAGS+= -DMAELSTROM_SCOREDIR=\"${SCOREDIR}\"
|
|
BUILD_DEFS+= VARBASE SCOREFILE
|
|
|
|
post-install:
|
|
${RM} ${DESTDIR}${PREFIX}/share/doc/Maelstrom/Docs/Makefile \
|
|
${DESTDIR}${PREFIX}/share/doc/Maelstrom/Docs/Makefile.in \
|
|
${DESTDIR}${PREFIX}/share/Maelstrom/Images/Makefile \
|
|
${DESTDIR}${PREFIX}/share/Maelstrom/Images/Makefile.in
|
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../net/SDL_net/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|