2012-09-11 15:06:31 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= supertux
|
2016-01-05 22:50:35 +01:00
|
|
|
PORTVERSION= 0.4.0
|
2012-09-11 15:06:31 +02:00
|
|
|
CATEGORIES= games
|
2015-05-16 12:06:43 +02:00
|
|
|
MASTER_SITES= https://github.com/SuperTux/supertux/releases/download/v${PORTVERSION}/
|
2016-01-05 22:50:35 +01:00
|
|
|
PKGNAMESUFFIX= 2
|
2012-09-11 15:06:31 +02:00
|
|
|
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2013-10-23 15:08:41 +02:00
|
|
|
COMMENT= Side-scroller game similar to Super Mario Brothers
|
2012-09-11 15:16:43 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
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
|
2012-09-11 15:06:31 +02:00
|
|
|
|
2016-02-09 17:06:04 +01:00
|
|
|
BROKEN_FreeBSD_10= does not build on 10.x
|
|
|
|
|
2015-05-16 12:06:43 +02:00
|
|
|
USE_SDL= sdl2 image2
|
2012-09-11 15:16:43 +02:00
|
|
|
USE_GL= glew
|
2016-01-05 22:50:35 +01:00
|
|
|
USES= cmake:outsource compiler:c++11-lib dos2unix iconv \
|
|
|
|
openal:al pkgconfig tar:bzip2
|
2015-05-16 12:06:43 +02:00
|
|
|
# Unhide std::to_string() to fix build with GCC (see ports/193528 for details)
|
|
|
|
CFLAGS+= -D_GLIBCXX_USE_C99
|
2016-01-05 22:50:35 +01:00
|
|
|
CMAKE_ARGS= -DINSTALL_SUBDIR_BIN=bin \
|
|
|
|
-DBUILD_SHARED_LIBS=off
|
|
|
|
DOS2UNIX_FILES= external/squirrel/CMakeLists.txt
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
2015-05-16 12:06:43 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-09-11 15:06:31 +02:00
|
|
|
|
|
|
|
post-patch:
|
2016-01-05 22:50:35 +01:00
|
|
|
${REINPLACE_CMD} -e '/^Icon=/s,supertux.png,supertux2,' \
|
2012-09-11 15:16:43 +02:00
|
|
|
${WRKSRC}/supertux2.desktop
|
2012-09-11 15:06:31 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|