aboutsummaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorMichael Moll <mmoll@FreeBSD.org>2015-11-29 21:53:12 +0000
committerMichael Moll <mmoll@FreeBSD.org>2015-11-29 21:53:12 +0000
commitc217cd891fcc60112455b8e0bf3d4e9155a78c45 (patch)
treeac2aa9dd7d6acc81f3f039ac28a0f5a7dfb841aa /x11-wm
parentc89322dc4b06a0d2714d27abb65896b4dc9381e1 (diff)
downloadports-c217cd891fcc60112455b8e0bf3d4e9155a78c45.tar.gz
ports-c217cd891fcc60112455b8e0bf3d4e9155a78c45.zip
Notes
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/blackbox/Makefile4
-rw-r--r--x11-wm/blackbox/files/extra-patch-src_Toolbar.cc11
2 files changed, 15 insertions, 0 deletions
diff --git a/x11-wm/blackbox/Makefile b/x11-wm/blackbox/Makefile
index 9a737c36bb6c..849b0a9b27c9 100644
--- a/x11-wm/blackbox/Makefile
+++ b/x11-wm/blackbox/Makefile
@@ -24,6 +24,10 @@ TOOLS_ONLY_DESC= Do not install window manager, only tools
.include <bsd.port.options.mk>
+.if ${ARCH} == "armv6" || ${ARCH} == "armv6hf"
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_Toolbar.cc
+.endif
+
.if ${PORT_OPTIONS:MTOOLS_ONLY}
PKGNAMESUFFIX= -tools
COMMENT+= (tools only)
diff --git a/x11-wm/blackbox/files/extra-patch-src_Toolbar.cc b/x11-wm/blackbox/files/extra-patch-src_Toolbar.cc
new file mode 100644
index 000000000000..a28ee9cfe505
--- /dev/null
+++ b/x11-wm/blackbox/files/extra-patch-src_Toolbar.cc
@@ -0,0 +1,11 @@
+--- src/Toolbar.cc.orig 2015-05-11 11:54:54 UTC
++++ src/Toolbar.cc
+@@ -44,7 +44,7 @@ long nextTimeout(int resolution)
+ {
+ timeval now;
+ gettimeofday(&now, 0);
+- return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
++ return (std::max(1000ll, ((((resolution - (now.tv_sec % resolution)) * 1000l))
+ - (now.tv_usec / 1000l))));
+ }
+