[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / bearssl

File: [cvs.NetBSD.org] / pkgsrc / security / bearssl / Makefile (download)

Revision 1.7, Tue Jul 28 08:49:54 2020 UTC (2 months, 4 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
Changes since 1.6: +2 -1 lines

bearssl: honor CFLAGS and LDFLAGS

# $NetBSD: Makefile,v 1.7 2020/07/28 08:49:54 wiz Exp $

DISTNAME=	bearssl-0.6
PKGREVISION=	1
CATEGORIES=	security
MASTER_SITES=	https://bearssl.org/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://bearssl.org/
COMMENT=	Implementation of the SSL/TLS protocol (RFC 5246)
LICENSE=	mit

INSTALLATION_DIRS=	bin include lib

LDFLAGS.SunOS+=	-lsocket -lnsl

do-install:
	cd ${WRKSRC}/build && \
		${INSTALL_PROGRAM} brssl ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC}/inc && \
		${INSTALL_DATA} *.h ${DESTDIR}${PREFIX}/include
	cd ${WRKSRC}/build && \
		${INSTALL_LIB} libbearssl.* ${DESTDIR}${PREFIX}/lib

do-test:
	cd ${WRKSRC} && \
		./build/testcrypto all && \
		./build/testspeed all && \
		./build/testx509

.include "../../mk/bsd.pkg.mk"