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
This commit is contained in:
John Marino 2016-09-11 03:54:07 +00:00
parent 3b4b23de6a
commit 3991de13b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421784

View file

@ -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 <bsd.port.pre.mk>
CPPFLAGS+= -I${OPENSSLINC}
CFLAGS+= -I${OPENSSLINC} -Wno-error
LDFLAGS+= -L${OPENSSLLIB}
.if !exists(${OPENSSLINC}/openssl/idea.h)
CFLAGS+= -DOPENSSL_NO_IDEA
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>