Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2019 07:35:45 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502934 - in head/net/bredbandskollen: . files
Message-ID:  <201905290735.x4T7ZjP2019112@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed May 29 07:35:44 2019
New Revision: 502934
URL: https://svnweb.freebsd.org/changeset/ports/502934

Log:
  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

Added:
  head/net/bredbandskollen/files/
  head/net/bredbandskollen/files/patch-src_framework_engine.h   (contents, props changed)
  head/net/bredbandskollen/files/patch-src_framework_socketreceiver.h   (contents, props changed)
Modified:
  head/net/bredbandskollen/Makefile
  head/net/bredbandskollen/pkg-descr

Modified: head/net/bredbandskollen/Makefile
==============================================================================
--- head/net/bredbandskollen/Makefile	Wed May 29 07:33:24 2019	(r502933)
+++ head/net/bredbandskollen/Makefile	Wed May 29 07:35:44 2019	(r502934)
@@ -9,7 +9,7 @@ COMMENT=	Command line tool to check internet connectio
 
 LICENSE=	GPLv2
 
-USES=		gmake
+USES=		compiler:c++11-lang gmake
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	dotse
@@ -25,6 +25,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

Added: head/net/bredbandskollen/files/patch-src_framework_engine.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/bredbandskollen/files/patch-src_framework_engine.h	Wed May 29 07:35:44 2019	(r502934)
@@ -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"
+ 

Added: head/net/bredbandskollen/files/patch-src_framework_socketreceiver.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/bredbandskollen/files/patch-src_framework_socketreceiver.h	Wed May 29 07:35:44 2019	(r502934)
@@ -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 {

Modified: head/net/bredbandskollen/pkg-descr
==============================================================================
--- head/net/bredbandskollen/pkg-descr	Wed May 29 07:33:24 2019	(r502933)
+++ head/net/bredbandskollen/pkg-descr	Wed May 29 07:35:44 2019	(r502934)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905290735.x4T7ZjP2019112>