Monday, August 28, 2017

UPDATE: games/openrct2 0.1.0 => 0.1.1

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/openrct2/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile 15 Aug 2017 01:07:45 -0000 1.4
+++ Makefile 28 Aug 2017 14:37:05 -0000
@@ -1,12 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2017/08/15 01:07:45 naddy Exp $

-V = 0.1.0
+V = 0.1.1
COMMENT = open source re-implementation of RollerCoaster Tycoon 2
DISTNAME = openrct2-${V}
CATEGORIES = games x11
-REVISION = 1
-
-SHARED_LIBS += openrct2 1.0 # 1.0

HOMEPAGE = https://openrct2.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
@@ -23,7 +20,7 @@ WANTLIB += ${COMPILER_LIBCXX}
MASTER_SITES = https://devio.us/~bcallah/source/

# Doesn't build with gcc-4.9.4
-COMPILER = clang
+COMPILER = base-clang ports-clang

MODULES = devel/cmake

@@ -39,8 +36,7 @@ RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+3,-guic

# -DOPENRCT2_COMMIT_SHA1_SHORT is a lie but still useful.
-CONFIGURE_ARGS = -DCMAKE_SHARED_LINKER_FLAGS="-L${X11BASE}/lib" \
- -DDOWNLOAD_TITLE_SEQUENCES=OFF \
+CONFIGURE_ARGS = -DDOWNLOAD_TITLE_SEQUENCES=OFF \
-DOPENRCT2_BRANCH=master \
-DOPENRCT2_COMMIT_SHA1_SHORT=`date +%Y%m%d`

@@ -48,9 +44,7 @@ CONFIGURE_ARGS = -DCMAKE_SHARED_LINKER_F
NO_TEST = Yes

pre-configure:
- sed -i -e 's,$${LIBopenrct2_VERSION},${LIBopenrct2_VERSION},g' \
- -e 's,-Werror,,g' \
- ${WRKSRC}/src/openrct2/CMakeLists.txt
+ sed -i 's,-Werror,,g' ${WRKSRC}/src/openrct2/CMakeLists.txt
sed -i 's,/usr/local,${TRUEPREFIX},g' \
${WRKSRC}/src/openrct2/platform/linux.c

Index: distinfo
===================================================================
RCS file: /cvs/ports/games/openrct2/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo 20 Jul 2017 17:06:48 -0000 1.2
+++ distinfo 28 Aug 2017 14:37:05 -0000
@@ -1,2 +1,2 @@
-SHA256 (openrct2-0.1.0.tar.gz) = xB8Tji7wD+j/o4CPKnjorggD5XWqQ1z9jX1wE2FmyGc=
-SIZE (openrct2-0.1.0.tar.gz) = 8006116
+SHA256 (openrct2-0.1.1.tar.gz) = G15uPhmW+rXQBZhKgZJYoeODLuLCvEZuyJR445aTR9k=
+SIZE (openrct2-0.1.1.tar.gz) = 8033025
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: /cvs/ports/games/openrct2/patches/patch-CMakeLists_txt,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 28 Jun 2017 16:43:46 -0000 1.1.1.1
+++ patches/patch-CMakeLists_txt 28 Aug 2017 14:37:05 -0000
@@ -1,12 +1,11 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2017/06/28 16:43:46 bcallah Exp $

-Don't gzip man page and put it in the right place.
Don't try to execute git.

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
-@@ -20,33 +20,9 @@ option(PORTABLE "Create a portable build (-rpath=$ORIG
+@@ -23,33 +23,9 @@ option(PORTABLE "Create a portable build (-rpath=$ORIG
option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." ON)

# Define current git branch
@@ -40,10 +39,3 @@ Index: CMakeLists.txt

# Tagged builds are not meant to display commit info
if (NOT OPENRCT2_COMMIT_SHA1_SHORT STREQUAL "HEAD")
-@@ -154,5 +130,4 @@ install(FILES "resources/logo/icon_x128.png" DESTINATI
- install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps" RENAME "openrct2.png")
- install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps" RENAME "openrct2.svg")
- install(FILES "distribution/linux/openrct2.desktop" DESTINATION "share/applications")
--install(DIRECTORY "distribution/man/" DESTINATION "share/man/man6" FILES_MATCHING PATTERN "*.6")
--install(CODE "execute_process(COMMAND find \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/man6 -type f -exec gzip -f \"{}\" \;)")
-+install(DIRECTORY "distribution/man/" DESTINATION "man/man6" FILES_MATCHING PATTERN "*.6")
Index: patches/patch-src_openrct2_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/games/openrct2/patches/patch-src_openrct2_CMakeLists_txt,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 patch-src_openrct2_CMakeLists_txt
--- patches/patch-src_openrct2_CMakeLists_txt 28 Jun 2017 16:43:46 -0000 1.1.1.1
+++ patches/patch-src_openrct2_CMakeLists_txt 28 Aug 2017 14:37:05 -0000
@@ -1,20 +1,11 @@
$OpenBSD: patch-src_openrct2_CMakeLists_txt,v 1.1.1.1 2017/06/28 16:43:46 bcallah Exp $

-Version the SO.
Don't define DEBUG.

Index: src/openrct2/CMakeLists.txt
--- src/openrct2/CMakeLists.txt.orig
+++ src/openrct2/CMakeLists.txt
-@@ -129,6 +129,7 @@ endif ()
- set(PROJECT libopenrct2)
- project(${PROJECT})
- add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES} ${OPENRCT2_CORE_MM_SOURCES} ${RCT2_SECTIONS})
-+set_target_properties(${PROJECT} PROPERTIES SOVERSION ${LIBopenrct2_VERSION})
- set_target_properties(${PROJECT} PROPERTIES PREFIX "")
- set_target_properties(${PROJECT} PROPERTIES COMPILE_FLAGS "-Wundef")
-
-@@ -189,7 +190,7 @@ endif ()
+@@ -195,7 +195,7 @@ endif ()

if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
@@ -23,7 +14,7 @@ Index: src/openrct2/CMakeLists.txt
endif()

# Includes
-@@ -218,7 +219,7 @@ endif()
+@@ -224,7 +224,7 @@ endif()
set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0â€"3.")
set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ")
set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow -Wmissing-declarations -Wnonnull")
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/openrct2/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 28 Jun 2017 16:43:46 -0000 1.1.1.1
+++ pkg/PLIST 28 Aug 2017 14:37:05 -0000
@@ -1,6 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/06/28 16:43:46 bcallah Exp $
@bin bin/openrct2
-@lib lib/libopenrct2.so.${LIBopenrct2_VERSION}
+lib/libopenrct2.a
@man man/man6/openrct2.6
share/applications/openrct2.desktop
share/doc/openrct2/
Hi ports --

Attached is an update to games/openrct2. It is mostly a bugfix update.
Upstream now offers the choice to have a static or shared libopenrct2,
which it seems that the default cmake flags on OpenBSD gets us a static
library. It doesn't matter much to me either way, as I can't imagine
anything ever linking to libopenrct2 except for the openrct2 binary. The
static library does simply the port a tiny bit on the plus side.

Works well here.

OK?

~Brian

No comments:

Post a Comment