Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2016 03:54:07 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421784 - head/security/netpgp
Message-ID:  <201609110354.u8B3s7mH077920@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609110354.u8B3s7mH077920>