summaryrefslogtreecommitdiff
path: root/net/bredbandskollen/Makefile
blob: 34feb32a0c140992296b1890a373a2f4122bfb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

PORTNAME=	bredbandskollen
PORTVERSION=	0.20190705
PORTREVISION=	1
CATEGORIES=	net

MAINTAINER=	zeising@FreeBSD.org
COMMENT=	Command line tool to check internet connection speed

LICENSE=	GPLv2

USES=		compiler:c++11-lang gmake

USE_GITHUB=	yes
GH_ACCOUNT=	dotse
GH_PROJECT=	bbk
GH_TAGNAME=	7b810a6

BUILD_WRKSRC=	${WRKSRC}/src/cli

PLIST_FILES=	bin/bbk_cli \
		bin/bredbandskollen

OPTIONS_DEFINE=	GNUTLS

GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
GNUTLS_MAKE_ARGS=	GNUTLS=1

.include <bsd.port.pre.mk>

.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 <bsd.port.post.mk>