pkgsrc/games/maelstrom-sdl/Makefile
snj 9d62617e79 Update to 3.0.6. Freshen up HOMEPAGE and MASTER_SITES. Add LICENSE.
Changes:
* Added support for MacBinary resource files
* Updated README.joystick to reflect joystick support
* Fixed volume lockup bug on MacOS X
* Fixed network bug with more than one player
2015-02-09 21:53:10 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2015/02/09 21:53:10 snj Exp $
DISTNAME= Maelstrom-3.0.6
PKGNAME= maelstrom-sdl-3.0.6
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:Q}\"
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"