summaryrefslogtreecommitdiff
path: root/security/libssh/Makefile
blob: 506f44976db76acf8adb9a60e46ab7fe8f26b8f5 (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
# $NetBSD: Makefile,v 1.39 2020/09/13 09:22:57 wiz Exp $
#
# history: upstream renamed 0.11 to 0.1.1;
# we have to use the old-style convention so that version compares work.

VER=		0.9.5
DISTNAME=	libssh-${VER}
PKGNAME=	libssh-0.95
CATEGORIES=	security
MASTER_SITES=	https://www.libssh.org/files/${VER:R}/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	is@NetBSD.org
HOMEPAGE=	https://www.libssh.org/
COMMENT=	SSHv2+v1 protocol library
LICENSE=	2-clause-bsd

USE_CMAKE=		yes
USE_LANGUAGES=		c c++
PKGCONFIG_OVERRIDE+=	libssh.pc.cmake
TEST_TARGET=		test

CONFIGURE_DIRS=		build
CMAKE_ARG_PATH=		${WRKSRC}
CMAKE_ARGS+=		-DUNIT_TESTING=ON
CMAKE_ARGS+=		-DWITH_EXAMPLES=OFF

LDFLAGS.SunOS+=		-lnsl -lsocket

BUILDLINK_TRANSFORM+=	rm:-Werror=strict-overflow

.include "options.mk"

post-extract:
	${MKDIR} ${WRKSRC}/build

.include "../../devel/argp/buildlink3.mk"
.include "../../devel/cmocka/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/krb5.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"