summaryrefslogtreecommitdiff
path: root/news/suck/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-05-31 20:51:48 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-05-31 20:51:48 +0000
commit65e2b09e203793a4b84951b457e7e73247c06db1 (patch)
tree26edfe514e1fc4e2b1fe7a97aa82411b26950d9f /news/suck/Makefile
parentadd py-rrdpipe 0.1 (diff)
- get rid of duplicate code in Makefiles.
- Fix USE_OPENSSL_PORT and USE_OPENSSL_BASE - drop obsolete/broken USE_OPENSSL
Notes
Notes: svn path=/head/; revision=60406
Diffstat (limited to 'news/suck/Makefile')
-rw-r--r--news/suck/Makefile12
1 files changed, 1 insertions, 11 deletions
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 <bsd.port.pre.mk>
.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}"