svn commit: r421699 - in head/devel/cjose: . files

John Marino marino at FreeBSD.org
Sat Sep 10 15:07:52 UTC 2016


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


More information about the svn-ports-all mailing list