1
0
forked from ports/contrib

waylandpp: updated for gcc 13

This commit is contained in:
Tim Biermann 2023-08-24 23:06:10 +02:00
parent 01a1819c1a
commit 746e92dc65
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 47 additions and 5 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35lOVnO2NAycC93YR+c8sDHQqqo/ViEGH8Ku4VqFTXAXPjNj/XUSZZiImdjKcS1klMRJWretlpN6uOYLWQeaPgI=
SHA256 (Pkgfile) = b0fd4d1848a4475e006d948f5611ecc2ce615aa326e6678d6fdb132cd1be9b9d
RWSagIOpLGJF37G4shVEt0yFXDpq/cyHsore1G9rZ8CoKOX/WdF/KDMTpraPC6NP7eRnTVg0CCqJnjZZKRTZdNfN8SgOLPfUZgE=
SHA256 (Pkgfile) = 27395b8d1268d3aa993f2f19f93d821ff327eaf30adae23b9ae71b2da71099b4
SHA256 (.footprint) = 1c73a59462c88b07af80b2b4127facc1b136e10bda1d10986d4605bb700530af
SHA256 (waylandpp-1.0.0.zip) = e4efa35ba5752fb740c53c9edea74daa96eb2401fb63e5dc4d11cbc250ff653a
SHA256 (waylandpp-1.0.0.tar.gz) = b20b45917382c6b87e9380130c9a1a1c563da2f498de5830df12fbce326dd9f5
SHA256 (waylandpp-1.0.0-gcc13.patch) = b4693658f07e2c1d1779786aa5d4ecf04194251ac11cfd00018424ec109a2b69

View File

@ -1,14 +1,17 @@
# Description: Wayland C++ bindings
# URL: https://github.com/NilsBrause/waylandpp
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: egl-wayland pugixml wayland-protocols
# Depends on: egl-wayland pugixml
name=waylandpp
version=1.0.0
release=1
source=(https://github.com/NilsBrause/waylandpp/archive/$version/$name-$version.zip)
source=(https://github.com/NilsBrause/waylandpp/archive/$version/$name-$version.tar.gz
waylandpp-1.0.0-gcc13.patch)
build() {
patch -Np1 -d $name-$version -i $SRC/waylandpp-1.0.0-gcc13.patch
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \

View File

@ -0,0 +1,38 @@
diff -up ./include/wayland-client.hpp.orig ./include/wayland-client.hpp
--- ./include/wayland-client.hpp.orig 2022-04-25 18:04:33.000000000 +0200
+++ ./include/wayland-client.hpp 2023-03-26 11:58:50.003952654 +0200
@@ -29,6 +29,7 @@
/** \file */
#include <atomic>
+#include <cstdint>
#include <functional>
#include <memory>
#include <string>
diff -up ./scanner/scanner.cpp.orig ./scanner/scanner.cpp
--- ./scanner/scanner.cpp.orig 2022-04-25 18:04:33.000000000 +0200
+++ ./scanner/scanner.cpp 2023-03-26 11:49:29.853386221 +0200
@@ -23,6 +23,7 @@
#include <vector>
#include <cctype>
#include <cmath>
+#include <cstdint>
#include <stdexcept>
#include "pugixml.hpp"
@@ -1106,6 +1107,7 @@ int main(int argc, char *argv[])
wayland_hpp << "#pragma once" << std::endl
<< std::endl
<< "#include <array>" << std::endl
+ << "#include <cstdint>" << std::endl
<< "#include <functional>" << std::endl
<< "#include <memory>" << std::endl
<< "#include <string>" << std::endl
@@ -1125,6 +1127,7 @@ int main(int argc, char *argv[])
wayland_server_hpp << "#pragma once" << std::endl
<< std::endl
<< "#include <array>" << std::endl
+ << "#include <cstdint>" << std::endl
<< "#include <functional>" << std::endl
<< "#include <memory>" << std::endl
<< "#include <string>" << std::endl