1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/games/bsdgames/Makefile
Steve Wills 1463db795b games/bsdgames: update to 5.2.2
Added bcd, boggle, ppt, tetris
Pet portlint
While here, pass maintainership to submitter

PR:		232051
Submitted by:	Joachim Werner <jockl@pianojockl.org>
2018-11-01 15:10:29 +00:00

90 lines
2.4 KiB
Makefile

# Created by: Mark Murray <markm@FreeBSD.org>
# $FreeBSD$
PORTNAME= bsdgames
PORTVERSION= 5.2.2
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= LOCAL/swills
MAINTAINER= jockl@pianojockl.org
COMMENT= Traditional BSD games taken from DragonFly BSD
LICENSE= BSD3CLAUSE
USES= ncurses tar:xz uidfix
CONFLICTS= hangman-[0-9]*
MAKE_ENV= NO_WERROR=1
MAKE_ARGS= BINGRP=${BINGRP}
# contain /usr/share/games
SHAREPATH_FILES=atc/atc.6 \
atc/pathnames.h \
boggle/boggle/bog.h \
boggle/boggle/boggle.6 \
cribbage/cribbage.6 \
cribbage/pathnames.h \
fish/pathnames.h \
larn/pathnames.h \
quiz/datfiles/index \
quiz/pathnames.h \
quiz/quiz.6 \
wump/pathnames.h
# contain /usr/games/*
GAMESPATH_FILES=backgammon/backgammon/backgammon.6 \
backgammon/common_source/init.c \
canfield/canfield/canfield.6 \
cribbage/cribbage.6 \
hunt/hunt/hunt.6 \
hunt/huntd/huntd.6 \
phantasia/pathnames.h \
wargames/wargames.sh
.include <bsd.port.pre.mk>
post-patch:
@for f in ${SHAREPATH_FILES}; do \
${REINPLACE_CMD} -e 's|/usr/share/games|${PREFIX}/share/games|g' \
${WRKSRC}/$${f}; \
done
@for f in ${GAMESPATH_FILES}; do \
${REINPLACE_CMD} -e 's|/usr/games|${PREFIX}/bin|g' \
${WRKSRC}/$${f}; \
done
pre-install:
.for d in atc larn quiz.db boggle
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/$d
.endfor
.for d in atc battlestar hackdir/save larn phantasia
@${MKDIR} ${STAGEDIR}/var/games/$d
.endfor
post-install:
# avoid conflict with games/bs and shells/fish
.for prog in bs fish
${MV} ${STAGEDIR}${PREFIX}/bin/${prog} ${STAGEDIR}${PREFIX}/bin/${prog}-game
${MV} ${STAGEDIR}${MAN6PREFIX}/man/man6/${prog}.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6/${prog}-game.6.gz
.endfor
@${TOUCH} ${STAGEDIR}/var/games/atc_score
@${FIND} ${STAGEDIR}/var/games -type f -exec ${MV} {} {}.sample \;
dist:
${FETCH_CMD} -o- https://github.com/DragonFlyBSD/DragonFlyBSD/archive/v${PORTVERSION}.zip | \
${TAR_CMD} xfv - DragonFlyBSD-${PORTVERSION}/games/\*
${MV} DragonFlyBSD-${PORTVERSION}/games bsdgames-${PORTVERSION}
${RMDIR} DragonFlyBSD-${PORTVERSION}
${TAR_CMD} -cvf bsdgames-${PORTVERSION}.tar bsdgames-${PORTVERSION}
${XZ_CMD} -v bsdgames-${PORTVERSION}.tar
@${ECHO_CMD}
@${ECHO_CMD} '======================================='
@${ECHO_CMD} ' UPLOAD THE DISTFILE BEFORE YOU FORGET '
@${ECHO_CMD} '======================================='
@${ECHO_CMD} 'bsdgames-${PORTVERSION} can be deleted!'
.include <bsd.port.post.mk>