blob: 9b7a14efebc2486575ffbbe6005df06074affbb5 (
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
|
# $FreeBSD$
PORTNAME= supertux
PORTVERSION= 0.4.0
PORTREVISION= 16
CATEGORIES= games
MASTER_SITES= https://github.com/SuperTux/supertux/releases/download/v${PORTVERSION}/
PKGNAMESUFFIX= 2
MAINTAINER= ports@FreeBSD.org
COMMENT= Side-scroller game similar to Super Mario Brothers
BUILD_DEPENDS= ${LOCALBASE}/include/boost/smart_ptr.hpp:devel/boost-libs
LIB_DEPENDS= libphysfs.so:devel/physfs \
libcurl.so:ftp/curl \
libvorbis.so:audio/libvorbis
LLD_UNSAFE= yes
USE_SDL= sdl2 image2
USE_GL= glew
USES= cmake compiler:c++11-lib dos2unix iconv \
openal:al pkgconfig tar:bzip2
# Unhide std::to_string() to fix build with GCC (see ports/193528 for details)
CFLAGS+= -D_GLIBCXX_USE_C99
CMAKE_ARGS= -DINSTALL_SUBDIR_BIN=bin \
-DBUILD_SHARED_LIBS=off
DOS2UNIX_FILES= external/squirrel/CMakeLists.txt \
external/squirrel/squirrel/sqvm.cpp
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e '/^Icon=/s,supertux.png,supertux2,' \
${WRKSRC}/supertux2.desktop
.include <bsd.port.mk>
|