pkgsrc/games/bastet/Makefile
kamil eac1e56671 Update bastet from 0.41 to 0.43.1
pkgsrc changes:
 - Switch to GitHub framework
 - Update HOMEPAGE
 - Set LICENSE (GPLv3)
 - Upstream switched from C to C++
 - Require boost-libs and boost-headers
 - SETGIDGAME -> USE_GAMESGROUP
 - Need to fix VARBASE differently (now with SUBST framework)
 - Drop unneded patches
 - Enforce any curses library (with a patch)

upstream changelog
==================
==0.43.1==
Small fixes: appdata and desktop file, moved to an unordered_set header that
should work on most compilers. Should still port to autotools or something
similar sometimes in the future.

==0.43==
Complete code rewrite. As I go on trying to grok C++, algorithms and data
structures, and as I started to understand more of Peter's code, I found
it useful to rewrite all this stuff from scratch.
This should solve some issues and probably introduce new ones. Therefore this
version needs a lot of playtesting and bug-hunting.
The algorithm has been split into two, one with the next block preview (normal)
and one without (harder).
New and more sophisticated techniques are now used to write the  block-choosing
algorithms, which should not be fooled as easily as before.
2016-10-15 00:45:15 +00:00

34 lines
962 B
Makefile

# $NetBSD: Makefile,v 1.8 2016/10/15 00:45:15 kamil Exp $
DISTNAME= bastet-0.43.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=fph/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fph.altervista.org/prog/bastet.html
COMMENT= Bastard Tetris
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
BUILD_DEFS+= VARBASE
USE_GAMESGROUP= yes
SPECIAL_PERMS= bin/bastet ${SETGID_GAMES_PERMS}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
USE_LANGUAGES= c++
SUBST_CLASSES+= vardir
SUBST_STAGE.vardir= pre-configure
SUBST_FILES.vardir= Config.cpp
SUBST_MESSAGE.vardir= Fixing VARBASE.
SUBST_SED.vardir= -e "s|/var/games|${VARBASE}/games|1"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bastet ${DESTDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/bastet.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"