pkgsrc/games/teeworlds/Makefile

49 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2020/01/18 21:49:31 jperkin Exp $
DISTNAME= teeworlds-0.7.4-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 1
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"