PORTNAME=	bomns
PORTVERSION=	0.99.3
PORTREVISION=	3
CATEGORIES=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Best old-school Deathmatch game ever (only for two players)
WWW=		https://github.com/keithfancher/Bomns-for-Linux

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfreetype.so:print/freetype2

USE_GITHUB=	yes
GH_ACCOUNT=	keithfancher
GH_PROJECT=	Bomns-for-Linux
GH_TAGNAME=	113be27

USES=		cmake gnome localbase sdl
CMAKE_ARGS=	-Wno-dev
USE_CXXSTD=	gnu++98
USE_SDL=	mixer sdl
USE_GNOME=	gtk20
USE_CSTD=	gnu89

PORTDOCS=	AUTHORS ChangeLog README

OPTIONS_DEFINE=	DOCS

post-install:
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
