From 65e2b09e203793a4b84951b457e7e73247c06db1 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 31 May 2002 20:51:48 +0000 Subject: - get rid of duplicate code in Makefiles. - Fix USE_OPENSSL_PORT and USE_OPENSSL_BASE - drop obsolete/broken USE_OPENSSL --- news/suck/Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'news/suck/Makefile') diff --git a/news/suck/Makefile b/news/suck/Makefile index 51691083a12f..92f4c61eb287 100644 --- a/news/suck/Makefile +++ b/news/suck/Makefile @@ -14,9 +14,6 @@ MAINTAINER= dinoex@FreeBSD.org USE_GMAKE= yes GNU_CONFIGURE= yes -.if defined(SUCK_WITH_SSL) || defined(WITH_SSL) -USE_OPENSSL= yes -.endif MAN1= suck.1 rpost.1 testhost.1 lmove.1 EX_SCRIPTS= get.news.generic get.news.inn perl_kill.pl perl_xover.pl \ post_filter.pl put.news put.news.pl put.news.sm put.news.sm.pl @@ -34,14 +31,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn .include .if defined(SUCK_WITH_SSL) || defined(WITH_SSL) -USE_OPENSSL= yes -.if ${OSVERSION} < 430000 || exists(${LOCALBASE}/lib/libcrypto.so.3) -OPENSSLBASE= /usr/local -OPENSSLDIR= ${OPENSSLBASE}/openssl -LIB_DEPENDS+= crypto.3:${PORTSDIR}/security/openssl -OPENSSLLIB= ${OPENSSLBASE}/lib -OPENSSLINC= ${OPENSSLBASE}/include -.endif +.include <${PORTSDIR}/security/openssl/Makefile.ssl> MAKE_ENV+= SSL_LIB="-lssl -lcrypto" MAKE_ENV+= SSL_DEFS="-I${OPENSSLINC} -DHAVE_LIBSSL" MAKE_ENV+= SSL_LIB_LOC="-L${OPENSSLLIB}" -- cgit v1.2.3