net/bredbandskollen: fix build with GCC-based architectures, fix pkg-descr
This port needs USES=compiler:c++11-lang to build on GCC architectures. It also specifies directly CXX with =, replace that with ?=. Add missing includes (sys/types.h and sys/select.h) that GCC doesn't include by default. Also fix double https in pkg-descr. PR: 234216 Approved by: tcberner (mentor), zeising (maintainer timeout) Differential Revision: https://reviews.freebsd.org/D20442
This commit is contained in:
parent
041bfc707b
commit
55825b8173
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502934
4 changed files with 31 additions and 2 deletions
|
@ -9,7 +9,7 @@ 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
|
||||
|
@ -26,6 +26,10 @@ OPTIONS_DEFINE= GNUTLS
|
|||
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
||||
GNUTLS_MAKE_ARGS= GNUTLS=1
|
||||
|
||||
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
|
||||
|
|
12
net/bredbandskollen/files/patch-src_framework_engine.h
Normal file
12
net/bredbandskollen/files/patch-src_framework_engine.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- src/framework/engine.h.orig 2018-12-20 14:37:12 UTC
|
||||
+++ src/framework/engine.h
|
||||
@@ -10,6 +10,9 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/select.h>
|
||||
+#endif
|
||||
|
||||
#include "logger.h"
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
--- src/framework/socketreceiver.h.orig 2018-12-20 14:40:17 UTC
|
||||
+++ src/framework/socketreceiver.h
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include "serversocket.h"
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+
|
||||
class SocketConnection;
|
||||
|
||||
class SocketReceiver : public ServerSocket {
|
|
@ -4,5 +4,5 @@ In Sweden.
|
|||
|
||||
This is a command line tool that can be used instead of the web application.
|
||||
|
||||
WWW: https://https://github.com/dotse/bbk
|
||||
WWW: https://github.com/dotse/bbk
|
||||
http://bredbandskollen.se
|
||||
|
|
Loading…
Reference in a new issue