pkgsrc/games/freedoom/Makefile
2019-10-30 10:33:02 +00:00

42 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2019/10/30 10:33:02 micha Exp $
DISTNAME= freedoom-0.12.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=freedoom/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://freedoom.github.io/
COMMENT= Free content game for Doom engine
LICENSE= modified-bsd
USE_LANGUAGES= # none
# DOOMWADDIR is intentionally shared with other Doom packages
DOOMWADDIR= share/doom
INSTALLATION_DIRS= ${DOOMWADDIR} share/doc/freedoom
# Configure INSTALL.pkgsrc (formerly displayed as MESSAGE)
SUBST_CLASSES+= install
SUBST_STAGE.install= do-configure
SUBST_MESSAGE.install= Preparing INSTALL.pkgsrc file ...
SUBST_FILES.install= ${WRKDIR}/INSTALL.pkgsrc
SUBST_SED.install= -e 's,DOOMWADDIR,${PREFIX}/${DOOMWADDIR},'
NO_BUILD= yes
pre-configure:
${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR}
do-install:
${INSTALL_DATA} ${WRKSRC}/freedoom1.wad \
${DESTDIR}${PREFIX}/share/doom/freedoom1.wad
${INSTALL_DATA} ${WRKSRC}/freedoom2.wad \
${DESTDIR}${PREFIX}/share/doom/freedoom2.wad
${INSTALL_DATA} ${WRKSRC}/freedoom-manual.pdf \
${DESTDIR}${PREFIX}/share/doc/freedoom/freedoom-manual.pdf
${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \
${DESTDIR}${PREFIX}/share/doc/freedoom/INSTALL.pkgsrc
.include "../../mk/bsd.pkg.mk"