From 3991de13b27d7cf9175c1183b439eb728cad27fc Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 11 Sep 2016 03:54:07 +0000 Subject: [PATCH] security/netpgp: Document SSL requirement and support ports SSL libraries The FreeBSD 10+ check for IDEA was hardcoded against the base library. While all ports SSL library options likely have idea.h, extending the check generically enables the port to build correctly on all platforms when SSL_DEFAULT is set to something other than "base". Approved by: SSL blanket --- security/netpgp/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/security/netpgp/Makefile b/security/netpgp/Makefile index a7a88b3f4ed2..0bf63845d1a3 100644 --- a/security/netpgp/Makefile +++ b/security/netpgp/Makefile @@ -8,15 +8,18 @@ MASTER_SITES= ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/LOCAL_PORTS/ MAINTAINER= johans@FreeBSD.org COMMENT= PGP signing, verification, encryption, and decryption program -USES= libtool -USE_OPENSSL= yes +USES= libtool ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALL_TARGET= install-strip -CFLAGS+= -Wno-error -.if !exists(/usr/include/openssl/idea.h) +.include + +CPPFLAGS+= -I${OPENSSLINC} +CFLAGS+= -I${OPENSSLINC} -Wno-error +LDFLAGS+= -L${OPENSSLLIB} +.if !exists(${OPENSSLINC}/openssl/idea.h) CFLAGS+= -DOPENSSL_NO_IDEA .endif -.include +.include