Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 15:07:51 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421699 - in head/devel/cjose: . files
Message-ID:  <201609101507.u8AF7pNn082050@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Sep 10 15:07:51 2016
New Revision: 421699
URL: https://svnweb.freebsd.org/changeset/ports/421699

Log:
  devel/cjose: Allow building with LibreSSL
  
  This requires USES+=pkgconfig and to configure to the proper *ssl base
  as well as a patch to free cjose from being openssl-specific.
  
  Approved by:	SSL blanket

Added:
  head/devel/cjose/files/
  head/devel/cjose/files/patch-include_cjose_util.h   (contents, props changed)
Modified:
  head/devel/cjose/Makefile

Modified: head/devel/cjose/Makefile
==============================================================================
--- head/devel/cjose/Makefile	Sat Sep 10 14:55:31 2016	(r421698)
+++ head/devel/cjose/Makefile	Sat Sep 10 15:07:51 2016	(r421699)
@@ -11,7 +11,7 @@ LICENSE=	MIT
 
 LIB_DEPENDS+=	libjansson.so:devel/jansson
 
-USES=		libtool pathfix ssl
+USES=		libtool pathfix pkgconfig ssl
 USE_LDCONFIG=	yes
 INSTALL_TARGET=	install-strip
 
@@ -20,6 +20,6 @@ GH_ACCOUNT=	cisco
 GH_PROJECT=	cjose
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-jansson=${PREFIX} --with-openssl=${PREFIX}
+CONFIGURE_ARGS=	--with-jansson=${PREFIX} --with-openssl=${OPENSSLBASE}
 
 .include <bsd.port.mk>

Added: head/devel/cjose/files/patch-include_cjose_util.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cjose/files/patch-include_cjose_util.h	Sat Sep 10 15:07:51 2016	(r421699)
@@ -0,0 +1,12 @@
+--- include/cjose/util.h.orig	2016-08-04 17:08:47 UTC
++++ include/cjose/util.h
+@@ -25,7 +25,9 @@ extern "C"
+ {
+ #endif
+ 
++#ifndef LIBRESSL_VERSION_NUMBER
+ #define CJOSE_OPENSSL_11X  OPENSSL_VERSION_NUMBER >= 0x10100005L
++#endif
+ 
+ /**
+  * Macro to explicitly mark a parameter unused, and usable across multiple



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