pkgsrc/games/teeworlds/Makefile
nia 9124efe764 teeworlds: Update to 0.7.5
An exploit was discovered, that allows to crash any 0.7 Teeworlds server.
Though it does not compromise the security of the host (e.g. no arbitrary
accesses in memory) it lets an attacker force a server to repetitively shut
down (CVE-2020-12066).

The 0.7.5 release is a security update that aims to patch this server
exploit. As such, it is very light in features, and is mostly made of fixes.
2020-05-19 11:46:26 +00:00

48 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2020/05/19 11:46:26 nia Exp $
DISTNAME= teeworlds-0.7.5-src
PKGNAME= ${DISTNAME:S/-src//}
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=teeworlds/}
GITHUB_RELEASE= ${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.teeworlds.com/
COMMENT= Fast-paced retro multiplayer shooter
LICENSE= zlib AND 2-clause-bsd AND modified-bsd AND cc-by-sa-v3.0
USE_LANGUAGES= c c++03
USE_CMAKE= yes
USE_TOOLS+= pkg-config
CMAKE_ARGS+= -Wno-dev
TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
LDFLAGS.SunOS+= -lsocket -lnsl
INSTALLATION_DIRS+= share/appdata
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/pixmaps
PYTHON_FOR_BUILD_ONLY= tool
post-build:
${PREFIX}/bin/icotool -x -i 1 ${WRKSRC}/other/icons/teeworlds.ico -o ${WRKDIR}/teeworlds.png
post-install:
${INSTALL_DATA} ${WRKSRC}/other/teeworlds.desktop ${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/other/teeworlds.appdata.xml ${DESTDIR}${PREFIX}/share/appdata
${INSTALL_DATA} ${WRKDIR}/teeworlds.png ${DESTDIR}${PREFIX}/share/pixmaps
.include "../../audio/wavpack/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"