svn commit: r421784 - head/security/netpgp

John Marino marino at FreeBSD.org
Sun Sep 11 03:54:08 UTC 2016


Author: marino
Date: Sun Sep 11 03:54:07 2016
New Revision: 421784
URL: https://svnweb.freebsd.org/changeset/ports/421784

Log:
  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

Modified:
  head/security/netpgp/Makefile

Modified: head/security/netpgp/Makefile
==============================================================================
--- head/security/netpgp/Makefile	Sun Sep 11 03:28:18 2016	(r421783)
+++ head/security/netpgp/Makefile	Sun Sep 11 03:54:07 2016	(r421784)
@@ -8,15 +8,18 @@ MASTER_SITES=	ftp://ftp.netbsd.org/pub/p
 MAINTAINER=	johans at 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>


More information about the svn-ports-head mailing list