Re: UPDATE: games/openrct2 0.1.0 => 0.1.1

2017-09-09 Thread Adam Wolk
On Mon, Aug 28, 2017 at 10:56:05AM -0400, Brian Callahan wrote:
> 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
> 

OK awolk@

tested on amd64 -current (sept 9th) using a save from the previous
version.



UPDATE: games/openrct2 0.1.0 => 0.1.1

2017-08-28 Thread Brian Callahan

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

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 -	1.4
+++ Makefile	28 Aug 2017 14:37:05 -
@@ -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 
@@ -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 -	1.2
+++ distinfo	28 Aug 2017 14:37:05 -
@@ -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 -	1.1.1.1
+++ patches/patch-CMakeLists_txt	28 Aug 2017 14:37:05 -
@@ -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 -	1.1.1.1
+++ patches/patch-src_openrct2_CMakeLists_txt	28 Aug 2017 14:37:05 -
@@ -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
 ---