1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/games/openrct2/Makefile
2020-08-20 01:25:52 +00:00

63 lines
1.7 KiB
Makefile

# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
# $FreeBSD$
PORTNAME= openrct2
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
CATEGORIES= games
MAINTAINER= pkubaj@FreeBSD.org
COMMENT= Open source re-implementation of RollerCoaster Tycoon 2
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/licence.txt
BROKEN_FreeBSD_12_powerpc64= fails to build: src/openrct2/util/Endian.h:9:24: error: unused function 'ORCT_Swapu16'
BROKEN_FreeBSD_13_powerpc64= fails to build: openrct2/common.h:96:10: error: #error Unknown endianess!
LIB_DEPENDS= libpng.so:graphics/png \
libjansson.so:devel/jansson \
libzip.so:archivers/libzip \
libspeexdsp.so:audio/speexdsp \
libfontconfig.so:x11-fonts/fontconfig \
libcurl.so:ftp/curl \
libfreetype.so:print/freetype2 \
libicuuc.so:devel/icu \
libbenchmark.so:devel/grpc \
libduktape.so:lang/duktape-lib
USES= cmake compiler:c++17-lang desktop-file-utils gnome gl iconv \
localbase:ldflags pkgconfig sdl shared-mime-info ssl
USE_GITHUB= yes
GH_ACCOUNT= OpenRCT2
GH_PROJECT= OpenRCT2
GH_TUPLE= OpenRCT2:objects:v1.0.16:objects \
OpenRCT2:title-sequences:v0.1.2c:title_sequences
USE_GL= gl
USE_LDCONFIG= yes
USE_SDL= sdl2
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= DOWNLOAD_TITLE_SEQUENCES \
DOWNLOAD_OBJECTS
PORTDATA= *
PORTDOCS= changelog.txt contributors.md licence.txt openrct2.d.ts \
readme.txt scripting.md
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/src/openrct2/config/Config.cpp
post-install:
(cd ${WRKSRC_title_sequences}; \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/title)
(cd ${WRKSRC_objects}; \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/object)
.include <bsd.port.mk>