Changeset View
Changeset View
Standalone View
Standalone View
games/openrct2/Makefile
# Created by: Piotr Kubaj <pkubaj@anongoth.pl> | # Created by: Piotr Kubaj <pkubaj@anongoth.pl> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= openrct2 | PORTNAME= openrct2 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
DISTVERSION= 0.1.2 | DISTVERSION= 0.2.2 | ||||
PORTREVISION= 2 | |||||
CATEGORIES= games | CATEGORIES= games | ||||
MAINTAINER= pkubaj@anongoth.pl | MAINTAINER= pkubaj@anongoth.pl | ||||
COMMENT= Open source re-implementation of RollerCoaster Tycoon 2 | COMMENT= Open source re-implementation of RollerCoaster Tycoon 2 | ||||
LICENSE= GPLv3+ | LICENSE= GPLv3+ | ||||
LICENSE_FILE= ${WRKSRC}/licence.txt | LICENSE_FILE= ${WRKSRC}/licence.txt | ||||
LIB_DEPENDS= libpng.so:graphics/png \ | LIB_DEPENDS= libpng.so:graphics/png \ | ||||
libjansson.so:devel/jansson \ | libjansson.so:devel/jansson \ | ||||
libzip.so:archivers/libzip \ | libzip.so:archivers/libzip \ | ||||
libspeexdsp.so:audio/speexdsp \ | libspeexdsp.so:audio/speexdsp \ | ||||
libfontconfig.so:x11-fonts/fontconfig \ | libfontconfig.so:x11-fonts/fontconfig \ | ||||
libcurl.so:ftp/curl \ | libcurl.so:ftp/curl \ | ||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 \ | ||||
libicuuc.so:devel/icu | |||||
USES= compiler:c++14-lang cmake desktop-file-utils iconv localbase:ldflags pkgconfig shared-mime-info ssl | USES= cmake compiler:c++17-lang desktop-file-utils gnome gl iconv \ | ||||
localbase:ldflags pkgconfig sdl shared-mime-info ssl | |||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= OpenRCT2 | GH_ACCOUNT= OpenRCT2 | ||||
mat: This should not have been removed. | |||||
GH_PROJECT= OpenRCT2 | GH_PROJECT= OpenRCT2 | ||||
GH_TUPLE= OpenRCT2:objects:v1.0.10:objects \ | |||||
OpenRCT2:title-sequences:v0.1.2a:title_sequences | |||||
USE_GL= gl | USE_GL= gl | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_SDL= sdl2 | USE_SDL= sdl2 | ||||
INSTALLS_ICONS= yes | |||||
SUB_FILES= pkg-message | |||||
SUB_LIST= DISTVERSIONPREFIX=${DISTVERSIONPREFIX} \ | |||||
DISTVERSION=${DISTVERSION} \ | |||||
PORTNAME=${PORTNAME} | |||||
CMAKE_ON= BUILD_SHARED_LIBS | CMAKE_ON= BUILD_SHARED_LIBS | ||||
CMAKE_OFF= DOWNLOAD_TITLE_SEQUENCES | CMAKE_OFF= DOWNLOAD_TITLE_SEQUENCES \ | ||||
DOWNLOAD_OBJECTS | |||||
CXXFLAGS+= -D_GNU_SOURCE | |||||
PORTDATA= * | |||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
Not Done Inline ActionsWrong place in the Makefile. See Chapter 15. Order of Variables in Port Makefiles. mat: Wrong place in the Makefile. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
PORTDOCS= changelog.txt contributors.md licence.txt readme.txt | PORTDOCS= changelog.txt contributors.md licence.txt readme.txt | ||||
INSTALLS_ICONS= yes | |||||
Not Done Inline ActionsThe OPTIONS_DEFINE line is still too early. See Chapter 15. Order of Variables in Port Makefiles. mat: The OPTIONS_DEFINE line is still too early. See [[ https://www.freebsd. | |||||
SUB_FILES= pkg-message | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ | @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \ | ||||
${WRKSRC}/src/openrct2/config/Config.cpp | ${WRKSRC}/src/openrct2/config/Config.cpp | ||||
post-install: | |||||
(cd ${WRKDIR}/title-sequences-0.1.2a; \ | |||||
Done Inline ActionsAll those were at the right place, before OPTIONS_DEFINE. mat: All those were at the right place, before OPTIONS_DEFINE. | |||||
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/title) | |||||
(cd ${WRKDIR}/objects-1.0.10; \ | |||||
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/object) | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
This should not have been removed.