# Created by: Mark Murray 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 .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