summaryrefslogtreecommitdiff
path: root/games/supertux2/Makefile
blob: f4aaf805c508630fa5c15faf3c056c7d3f6171e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $FreeBSD$

PORTNAME=	supertux
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.0
DISTVERSIONSUFFIX=	-Source
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	https://github.com/SuperTux/supertux/releases/download/v${PORTVERSION}/
PKGNAMESUFFIX=	2
DISTNAME=	SuperTux-${DISTVERSIONFULL}

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Side-scroller game similar to Super Mario Brothers

LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libfreetype.so:print/freetype2 \
		libogg.so:audio/libogg \
		libphysfs.so:devel/physfs \
		libpng.so:graphics/png \
		libcurl.so:ftp/curl \
		libvorbis.so:audio/libvorbis

USES=		cmake:noninja compiler:c++14-lang dos2unix gl iconv \
		openal:al pkgconfig sdl
USE_GL=		gl glew glu
USE_SDL=	sdl2 image2 ttf2

CMAKE_ARGS=	-DINSTALL_SUBDIR_BIN=bin \
		-DBUILD_SHARED_LIBS=off
LLD_UNSAFE=	yes

DOS2UNIX_FILES=	external/squirrel/CMakeLists.txt \
		external/squirrel/squirrel/sqvm.cpp
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}

OPTIONS_DEFINE=	DOCS

.include <bsd.port.mk>