freebsd-ports/games/bsdgames/Makefile
Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

53 lines
1.2 KiB
Makefile

# Created by: Mark Murray <markm@FreeBSD.org>
PORTNAME= bsdgames
PORTVERSION= 0.75
DISTVERSIONPREFIX= v
PORTEPOCH= 2
CATEGORIES= games
MAINTAINER= jockl@pianojockl.org
COMMENT= Traditional BSD games taken mostly from DragonFly BSD
LICENSE= BSD3CLAUSE
USES= ncurses tar:xz uidfix
USE_GITHUB= yes
GH_ACCOUNT= pianojockl
MAKE_ARGS= BINGRP=${BINGRP}
MAKE_ENV= WITHOUT_WERROR=yes
CFLAGS+= -fcommon
CONFLICTS= hangman
INFO= wump
INFO_PATH= share/games
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300134
MAKE_ARGS+= NO_WERROR=yes
.endif
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 \;
.include <bsd.port.post.mk>