summaryrefslogtreecommitdiff
path: root/devel/cjose/Makefile
blob: c1a52369bcaf1d43f8cab456dfb1964bd185d619 (plain) (blame)
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
PORTNAME=	cjose
PORTVERSION=	0.6.1
PORTREVISION=	2
CATEGORIES=	devel

MAINTAINER=	jamie@chair6.net
COMMENT=	C library implementing JavaScript Object Signing and Encryption (JOSE)
WWW=		https://github.com/cisco/cjose

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libjansson.so:devel/jansson

USES=		compiler:c++11-lang libtool pathfix pkgconfig ssl
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

USE_GITHUB=	yes
GH_ACCOUNT=	cisco

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-jansson=${PREFIX} --with-openssl=${OPENSSLBASE}

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
CFLAGS+=	-Wno-error=strict-prototypes
.endif

.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
CFLAGS+=	-Wno-error=deprecated-declarations
.endif


.include <bsd.port.post.mk>