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