aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2019-03-03 09:19:32 +0800
committerhrs <hrs@FreeBSD.org>2019-03-03 09:19:32 +0800
commit2bfc265c2a55e49e61089bffa12c96133ce2f314 (patch)
tree0fe4a83c71082890d4b7d8c325481c5cd260c643 /graphics
parentf48e32d8c9a034e276e00aad821471e94b8944dc (diff)
downloadfreebsd-ports-gnome-2bfc265c2a55e49e61089bffa12c96133ce2f314.tar.gz
freebsd-ports-gnome-2bfc265c2a55e49e61089bffa12c96133ce2f314.tar.zst
freebsd-ports-gnome-2bfc265c2a55e49e61089bffa12c96133ce2f314.zip
Fix build on 32-bit arch.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/klatexformula/Makefile2
-rw-r--r--graphics/klatexformula/files/patch-src-main.cpp13
2 files changed, 14 insertions, 1 deletions
diff --git a/graphics/klatexformula/Makefile b/graphics/klatexformula/Makefile
index 122dbb4fbb0b..ea4314b95dbe 100644
--- a/graphics/klatexformula/Makefile
+++ b/graphics/klatexformula/Makefile
@@ -26,6 +26,6 @@ CMAKE_ARGS= -DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
post-patch:
${REINPLACE_CMD} '/CMAKE_SYSTEM_NAME STREQUAL/s,Linux,FreeBSD,' \
- ${WRKSRC}/src/klftools/CMakeLists.txt
+ ${WRKSRC}/src/klftools/CMakeLists.txt
.include <bsd.port.mk>
diff --git a/graphics/klatexformula/files/patch-src-main.cpp b/graphics/klatexformula/files/patch-src-main.cpp
new file mode 100644
index 000000000000..6bdb562a2116
--- /dev/null
+++ b/graphics/klatexformula/files/patch-src-main.cpp
@@ -0,0 +1,13 @@
+--- src/main.cpp.orig 2017-02-07 07:22:42 UTC
++++ src/main.cpp
+@@ -272,8 +272,8 @@ void signal_act(int sig)
+ fprintf(ftty, "Interrupt\n");
+ if (ftty != stderr) fprintf(stderr, "*** Interrupt\n");
+
+- static long last_sigint_time = 0;
+- long curtime;
++ static time_t last_sigint_time = 0;
++ time_t curtime;
+ time(&curtime);
+ bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
+ if (!isInsisted && qApp != NULL) {