[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / maelstrom-sdl

File: [cvs.NetBSD.org] / pkgsrc / games / maelstrom-sdl / Makefile (download)

Revision 1.26, Sun Jan 14 15:26:47 2018 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.25: +2 -2 lines

pkgsrc doesn't support PREFIX with spaces or other special characters.
Therefore it is not necessary to add the :Q modifier to this variable
and several others.

pkglint -r -Wall --autofix --only :Q

# $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"