--- Makefile.orig +++ Makefile @@ -24,6 +24,10 @@ TOOLS_ONLY_DESC= Do not install window manager, only tools .include +.if ${ARCH} == "armv6" +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_Toolbar.cc +.endif + .if ${PORT_OPTIONS:MTOOLS_ONLY} PKGNAMESUFFIX= -tools COMMENT+= (tools only) --- /dev/null +++ files/extra-patch-src_Toolbar.cc.orig @@ -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)))); + } +