summaryrefslogtreecommitdiff
path: root/mail/kbiff/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/kbiff/Makefile')
-rw-r--r--mail/kbiff/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/kbiff/Makefile b/mail/kbiff/Makefile
index 2a789ba053b6..62b326947fd2 100644
--- a/mail/kbiff/Makefile
+++ b/mail/kbiff/Makefile
@@ -7,7 +7,7 @@
PORTNAME= kbiff
PORTVERSION= 3.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -23,9 +23,19 @@ CONFIGURE_ARGS= --disable-fast-perl
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
MAN1= kbiff.1
+OPTIONS= SSL "SSL support" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SSL)
+CONFIGURE_ARGS+=--enable-ssl
+.else
+CONFIGURE_ARGS+=--disable-ssl
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g' ${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>