pkgsrc/games/chocolate-doom/Makefile
2020-08-18 17:57:24 +00:00

49 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2020/08/18 17:57:49 leot Exp $
DISTNAME= chocolate-doom-3.0.1
PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.chocolate-doom.org/downloads/${PKGVERSION_NOREV}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.chocolate-doom.org/
COMMENT= Doom/Heretic/Hexen/Strife source port
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
.include "../../mk/bsd.prefs.mk"
# no inb/outb
.if ${OPSYS} == NetBSD
CONFIGURE_ENV+= ac_cv_lib_i386_i386_iopl=no
CONFIGURE_ENV+= ac_cv_lib_amd64_amd64_iopl=no
.endif
PYTHON_FOR_BUILD_ONLY= yes
CONFIGURE_ENV+= ac_cv_prog_HAVE_PYTHON=python${PYVERSSUFFIX}
REPLACE_PYTHON+= data/convert-icon
REPLACE_PYTHON+= man/docgen
REPLACE_PYTHON+= man/simplecpp
INSTALLATION_DIRS+= share/icons/hicolor/48x48/apps
INSTALLATION_DIRS+= share/icons/hicolor/128x128/apps
post-install:
${INSTALL_DATA} ${WRKSRC}/pkg/osx/Resources/app.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/chocolate-doom.png
${MV} ${DESTDIR}${PREFIX}/share/icons/chocolate-doom.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps
${MV} ${DESTDIR}${PREFIX}/share/icons/chocolate-setup.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/128x128/apps
.include "../../lang/python/application.mk"
.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../net/SDL2_net/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"