From 1c5af7e3afb921c6482b46e92d20e24a176fe193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 15 Feb 2021 11:54:06 +0100 Subject: [PATCH] doxygen: fix time64 support and cross build (wizard) --- srcpkgs/doxygen/patches/fix-time64.patch | 19 +++++++++++++++++++ srcpkgs/doxygen/template | 1 + 2 files changed, 20 insertions(+) create mode 100644 srcpkgs/doxygen/patches/fix-time64.patch diff --git a/srcpkgs/doxygen/patches/fix-time64.patch b/srcpkgs/doxygen/patches/fix-time64.patch new file mode 100644 index 00000000000..7f94c20ba48 --- /dev/null +++ b/srcpkgs/doxygen/patches/fix-time64.patch @@ -0,0 +1,19 @@ +--- qtools/qdatetime.cpp 2020-01-03 23:51:18.000000000 +0100 ++++ qtools/qdatetime.cpp 2020-12-02 10:48:03.245635836 +0100 +@@ -35,7 +35,6 @@ + ** + **********************************************************************/ + +-#define gettimeofday __hide_gettimeofday + #include "qdatetime.h" + #include "qdatastream.h" + #include +@@ -55,8 +54,6 @@ + #elif defined(_OS_UNIX_) || defined(_OS_MAC_) + #include + #include +-#undef gettimeofday +-extern "C" int gettimeofday( struct timeval *, struct timezone * ); + #endif + + static const uint FIRST_DAY = 2361222; // Julian day for 1752/09/14 diff --git a/srcpkgs/doxygen/template b/srcpkgs/doxygen/template index ea22d0d43a6..051c1568bbb 100644 --- a/srcpkgs/doxygen/template +++ b/srcpkgs/doxygen/template @@ -18,6 +18,7 @@ desc_option_wizard="build Qt5 GUI configuration tool, doxywizard" if [ "$build_option_wizard" ]; then configure_args+=" -Dbuild_wizard=1" + hostmakedepends+=" qt5-host-tools qt5-qmake" makedepends+=" qt5-devel" fi