# Created by: nbm

PORTNAME=	criticalmass
PORTVERSION=	1.5.0
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/Critical%20Mass/${PORTVERSION}-RC
DISTNAME=	CriticalMass-${PORTVERSION:R}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	SDL/OpenGL space shoot'em up game

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

BROKEN=		fails to build

LIB_DEPENDS=	libpng.so:graphics/png \
		libtinyxml.so:textproc/tinyxml

USES=		compiler:c++0x gl sdl tar:bzip2 xorg
USE_XORG=	x11
USE_GL=		gl
USE_SDL=	image mixer sdl
USE_CXXSTD=	gnu++98
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-optimize

CONFLICTS=	shaaft-[0-9]*

PLIST_FILES=	bin/Packer \
		bin/critter \
		man/man6/critter.6.gz \
		share/Critical_Mass/resource.dat
PLIST_DIRS=	share/Critical_Mass

DESKTOP_ENTRIES="CriticallMass" "" "" "critter" "" ""

.include <bsd.port.mk>
