# $FreeBSD: branches/RELEASE_8_4_0/games/supertux-devel/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	supertux
PORTVERSION=	0.3.3
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
PKGNAMESUFFIX=	-devel

MAINTAINER=	makc@FreeBSD.org
COMMENT=	SuperTux is a side-scroller similar to Super Mario Brothers

BUILD_DEPENDS=	${LOCALBASE}/include/boost/smart_ptr.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS=	physfs.1:${PORTSDIR}/devel/physfs \
		curl.6:${PORTSDIR}/ftp/curl \
		vorbis.4:${PORTSDIR}/audio/libvorbis

USE_BZIP2=	yes
USE_SDL=	image mixer
USE_OPENAL=	al
USE_GL=		glew
USES=		cmake
MAKE_JOBS_SAFE=	yes

post-patch:
	${REINPLACE_CMD} -e '/^#.*<curl\/types.h>/d' \
		${WRKSRC}/src/addon/addon_manager.cpp
	${REINPLACE_CMD} -e '/^Icon=/s,supertux.png,supertux2.png,' \
		${WRKSRC}/supertux2.desktop

.include <bsd.port.mk>
