1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/games/moria/Makefile
2021-04-06 16:31:07 +02:00

36 lines
935 B
Makefile

# Created by: glewis@FreeBSD.org
PORTNAME= moria
PORTVERSION= 5.5.2
CATEGORIES= games
MASTER_SITES= ftp://ftp.funet.fi/pub/unix/games/moria/source/ \
ftp://ftp.greyhelm.com/pub/Games/Moria/source/
DISTNAME= um${PORTVERSION}
EXTRACT_SUFX= .tar.Z
MAINTAINER= glewis@FreeBSD.org
COMMENT= Dungeon exploration game
USES= alias ncurses
WRKSRC= ${WRKDIR}/umoria
ALL_TARGET= moria
MAKE_ARGS= CURSES="${LDFLAGS} -lncurses"
MAKE_ENV+= DOCSDIR="${DOCSDIR}" MKDIR="${MKDIR}" TOUCH="${TOUCH}" \
STAGEDIR="${STAGEDIR}" DATADIR="${DATADIR}"
PORTDOCS= *
OPTIONS_DEFINE= DOCS
do-configure:
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:g" ${WRKSRC}/source/config.h
cd ${WRKSRC} && ${LN} -sf source/* unix/* .
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/moria.6 ${STAGEDIR}${PREFIX}/man/man6/
post-install-DOCS-on:
cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
.include <bsd.port.mk>