diff --git a/net/bredbandskollen/Makefile b/net/bredbandskollen/Makefile index 896e7c58d731..3a20be52d35a 100644 --- a/net/bredbandskollen/Makefile +++ b/net/bredbandskollen/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= bredbandskollen -PORTVERSION= 0.20181210 +PORTVERSION= 0.20190705 CATEGORIES= net MAINTAINER= zeising@FreeBSD.org @@ -9,12 +9,12 @@ COMMENT= Command line tool to check internet connection speed LICENSE= GPLv2 -USES= gmake +USES= compiler:c++11-lang gmake USE_GITHUB= yes GH_ACCOUNT= dotse GH_PROJECT= bbk -GH_TAGNAME= 39b47a1 +GH_TAGNAME= 7b810a6 BUILD_WRKSRC= ${WRKSRC}/src/cli @@ -26,8 +26,18 @@ OPTIONS_DEFINE= GNUTLS GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls GNUTLS_MAKE_ARGS= GNUTLS=1 +.include + +.if ${ARCH:Mpowerpc*} +EXTRA_PATCHES= ${FILESDIR}/extra-src_framework_socketreceiver.h +.endif + +post-patch: + ${REINPLACE_CMD} -e 's/CXX = c++/CXX ?= c++/g' \ + ${WRKSRC}/src/framework/mk.inc + do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cli ${STAGEDIR}/${PREFIX}/bin/bbk_cli ${LN} -sf bbk_cli ${STAGEDIR}/${PREFIX}/bin/bredbandskollen -.include +.include diff --git a/net/bredbandskollen/distinfo b/net/bredbandskollen/distinfo index a66e392007c0..293749b8c272 100644 --- a/net/bredbandskollen/distinfo +++ b/net/bredbandskollen/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1544469797 -SHA256 (dotse-bbk-0.20181210-39b47a1_GH0.tar.gz) = 20e66a5acb806125dca45fc2563bea28b308f90873c85a4b109db6a067b91147 -SIZE (dotse-bbk-0.20181210-39b47a1_GH0.tar.gz) = 3636881 +TIMESTAMP = 1562346059 +SHA256 (dotse-bbk-0.20190705-7b810a6_GH0.tar.gz) = 69e09fb17ce3f4efc586ad5529b2205b060d6183cb3334f57dabb16302ef82dd +SIZE (dotse-bbk-0.20190705-7b810a6_GH0.tar.gz) = 133836 diff --git a/net/bredbandskollen/files/extra-src_framework_socketreceiver.h b/net/bredbandskollen/files/extra-src_framework_socketreceiver.h new file mode 100644 index 000000000000..48e009b4e424 --- /dev/null +++ b/net/bredbandskollen/files/extra-src_framework_socketreceiver.h @@ -0,0 +1,12 @@ +--- src/framework/socketreceiver.h.orig 2019-07-05 19:04:13 UTC ++++ src/framework/socketreceiver.h +@@ -3,6 +3,9 @@ + + #pragma once + ++// work around broken? _ALIGN/_ALIGNBYTES on FreeBSD powerpc ++#include ++ + #include + #include "serversocket.h" + class SocketConnection; diff --git a/net/bredbandskollen/files/patch-src_framework_engine.h b/net/bredbandskollen/files/patch-src_framework_engine.h new file mode 100644 index 000000000000..eb2fd844f5fa --- /dev/null +++ b/net/bredbandskollen/files/patch-src_framework_engine.h @@ -0,0 +1,11 @@ +--- src/framework/engine.h.orig 2019-07-05 17:52:32 UTC ++++ src/framework/engine.h +@@ -6,6 +6,8 @@ + + #pragma once + ++#include ++ + #include + #include + #include