# $NetBSD: Makefile,v 1.1 2020/05/11 10:46:12 micha Exp $ DISTNAME= woof_1.2.1 PKGNAME= ${DISTNAME:S/_/-/} CATEGORIES= games MASTER_SITES= ${MASTER_SITE_GITHUB:=fabiangreffrath/} GITHUB_TAG= ${DISTNAME} EXTRACT_USING= bsdtar MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/fabiangreffrath/woof/ COMMENT= Continuation of Lee Killough's Doom source port MBF LICENSE= gnu-gpl-v2 USE_LANGUAGES= c99 USE_CMAKE= yes CMAKE_ARGS+= -G "Unix Makefiles" .. CONFIGURE_DIRS= build WRKSRC= ${WRKDIR}/woof-${DISTNAME} # DOOMWADDIR is intentionally shared with other Doom packages DOOMWADDIR= share/doom # Add DOOMWADDIR to search path SUBST_CLASSES+= waddir SUBST_STAGE.waddir= pre-configure SUBST_MESSAGE.waddir= Preparing d_iwad.c file ... SUBST_FILES.waddir= Source/d_iwad.c SUBST_SED.waddir= -e 's,PKGSRC_PREFIX,"${PREFIX}",' SUBST_SED.waddir+= -e 's,PKGSRC_DOOMWADDIR,"/${DOOMWADDIR}",' pre-configure: cd ${WRKSRC}; mkdir build ${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR} post-install: ${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \ ${DESTDIR}${PREFIX}/share/doc/woof/INSTALL.pkgsrc .include "../../audio/SDL2_mixer/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../devel/SDL2/buildlink3.mk" .include "../../graphics/SDL2_image/buildlink3.mk" .include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../net/SDL2_net/buildlink3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" .include "../../mk/bsd.pkg.mk"