Changeset View
Changeset View
Standalone View
Standalone View
head/games/supertux-devel/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= supertux | PORTNAME= supertux | ||||
PORTVERSION= 0.3.5 | PORTVERSION= 0.3.5 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= games | CATEGORIES= games | ||||
MASTER_SITES= https://github.com/SuperTux/supertux/releases/download/v${PORTVERSION}/ | MASTER_SITES= https://github.com/SuperTux/supertux/releases/download/v${PORTVERSION}/ | ||||
PKGNAMESUFFIX= -devel | PKGNAMESUFFIX= -devel | ||||
MAINTAINER= makc@FreeBSD.org | MAINTAINER= makc@FreeBSD.org | ||||
COMMENT= Side-scroller game similar to Super Mario Brothers | COMMENT= Side-scroller game similar to Super Mario Brothers | ||||
BUILD_DEPENDS= ${LOCALBASE}/include/boost/smart_ptr.hpp:${PORTSDIR}/devel/boost-libs | BUILD_DEPENDS= ${LOCALBASE}/include/boost/smart_ptr.hpp:${PORTSDIR}/devel/boost-libs | ||||
LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs \ | LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs \ | ||||
libcurl.so:${PORTSDIR}/ftp/curl \ | libcurl.so:${PORTSDIR}/ftp/curl \ | ||||
libvorbis.so:${PORTSDIR}/audio/libvorbis | libvorbis.so:${PORTSDIR}/audio/libvorbis | ||||
USE_SDL= sdl2 image2 | USE_SDL= sdl2 image2 | ||||
USE_GL= glew | USE_GL= glew | ||||
USES= cmake:outsource compiler:c++11-lib iconv openal:al pkgconfig tar:bzip2 | USES= cmake:outsource compiler:c++11-lib openal:al pkgconfig tar:bzip2 | ||||
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} | |||||
# Unhide std::to_string() to fix build with GCC (see ports/193528 for details) | # Unhide std::to_string() to fix build with GCC (see ports/193528 for details) | ||||
CFLAGS+= -D_GLIBCXX_USE_C99 | CFLAGS+= -D_GLIBCXX_USE_C99 | ||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e '/^Icon=/s,supertux.png,supertux2.png,' \ | ${REINPLACE_CMD} -e '/^Icon=/s,supertux.png,supertux2.png,' \ | ||||
${WRKSRC}/supertux2.desktop | ${WRKSRC}/supertux2.desktop | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |