# Created by: Ceri Davies (ceri@FreeBSD.org) # $FreeBSD: head/games/robotfindskitten/Makefile 539394 2020-06-17 00:35:29Z skreuzer $ PORTNAME= robotfindskitten PORTVERSION= 2.8284271.702 PORTEPOCH= 1 CATEGORIES= games MAINTAINER= skreuzer@FreeBSD.org COMMENT= Yet another zen simulation LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= autoreconf libtool makeinfo ncurses GNU_CONFIGURE= YES USE_GITHUB= yes GH_ACCOUNT= robotfindskitten OPTIONS_DEFINE= EXTRANKI MEGAHYPERDEATH EXTRANKI_DESC= Install additional Non Kitten Items MEGAHYPERDEATH_DESC= Add the possibility of MEGA. HYPER. DEATH! OPTIONS_DEFAULT= EXTRANKI .include .if ${PORT_OPTIONS:MEXTRANKI} SUB_FILES= freebsd.nki nethack.nki PLIST_SUB+= EXTRANKI="" .else PLIST_SUB+= EXTRANKI="@comment " .endif .if ${PORT_OPTIONS:MMEGAHYPERDEATH} EXTRA_PATCHES+= ${FILESDIR}/extrapatch-megahyperdeath .endif post-patch: @${REINPLACE_CMD} -e 's,/usr/share/games/robotfindskitten,${DATADIR},' \ ${WRKSRC}/doc/robotfindskitten.6 do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/src/robotfindskitten ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/nki/vanilla.nki ${STAGEDIR}${DATADIR} ${INSTALL_MAN} ${WRKSRC}/doc/robotfindskitten.6 ${STAGEDIR}${MANPREFIX}/man/man6 .if ${PORT_OPTIONS:MEXTRANKI} .for NKI in ${SUB_FILES} ${INSTALL_DATA} ${WRKDIR}/${NKI} ${STAGEDIR}${DATADIR} .endfor .endif .include