Skip to content

Commit

Permalink
games/pink-pony: Fix build with protobuf 22+
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Dec 14, 2023
1 parent 6f106eb commit f379f77
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
6 changes: 4 additions & 2 deletions games/pink-pony/Makefile
Expand Up @@ -19,12 +19,14 @@ LIB_DEPENDS= libIL.so:graphics/devil \
USE_GITHUB= yes
GH_ACCOUNT= ginkgo

USES= pkgconfig scons compiler:c++11-lang gl sdl
USE_CXXSTD= c++11
USES= pkgconfig scons compiler:c++17-lang gl sdl
USE_CXXSTD= c++17
USE_GL= gl glu
USE_SDL= mixer
SUB_FILES= pink-pony.sh

LDFLAGS+= -labsl_log_internal_check_op -labsl_log_internal_message

PORTDOCS= *
PORTDATA= *

Expand Down
22 changes: 22 additions & 0 deletions games/pink-pony/files/patch-protobuf
@@ -0,0 +1,22 @@
--- src/Menu.hh.orig 2014-01-01 01:39:36 UTC
+++ src/Menu.hh
@@ -28,7 +28,7 @@ class Menu
Config* config;
Skydome* skydome;

- auto_ptr<Heightmap> heightmap;
+ unique_ptr<Heightmap> heightmap;

Camera camera;

--- src/cinquo.hh.orig 2014-01-01 01:39:36 UTC
+++ src/cinquo.hh
@@ -29,7 +29,7 @@ using std::cerr;
using std::vector;
using std::list;
using std::map;
-using std::auto_ptr;
+using std::unique_ptr;
using std::max;
using std::min;

0 comments on commit f379f77

Please sign in to comment.