aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-10 23:07:51 +0800
committermarino <marino@FreeBSD.org>2016-09-10 23:07:51 +0800
commitcc4f0367e55c239e9dc941685c2dd4387683d093 (patch)
tree2c01bb70416bf8262ed0f2b8b1ae677cb9b92e51 /devel
parentd17fa3f6f0917f3d02fd2ad4ca12b9b459f4c915 (diff)
downloadfreebsd-ports-gnome-cc4f0367e55c239e9dc941685c2dd4387683d093.tar.gz
freebsd-ports-gnome-cc4f0367e55c239e9dc941685c2dd4387683d093.tar.zst
freebsd-ports-gnome-cc4f0367e55c239e9dc941685c2dd4387683d093.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/cjose/Makefile4
-rw-r--r--devel/cjose/files/patch-include_cjose_util.h12
2 files changed, 14 insertions, 2 deletions
diff --git a/devel/cjose/Makefile b/devel/cjose/Makefile
index 369dc015fdcc..43e28afab0d3 100644
--- a/devel/cjose/Makefile
+++ b/devel/cjose/Makefile
@@ -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>
diff --git a/devel/cjose/files/patch-include_cjose_util.h b/devel/cjose/files/patch-include_cjose_util.h
new file mode 100644
index 000000000000..9febcf3d85fd
--- /dev/null
+++ b/devel/cjose/files/patch-include_cjose_util.h
@@ -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