blob: 024eaf76a56c87b0518f072897bab3d9292d7527 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: slrn
# Date created: 28 March 1997
# Whom: Carey Jones <mcj@acquiesce.org>
#
# $FreeBSD$
#
PORTNAME= slrn
PORTVERSION= 0.9.9p1
PORTREVISION= 3
CATEGORIES= news ipv6
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
ftp://angel.sovam.com/pub/tools/net/news/ \
ftp://ftp.fu-berlin.de/pub/unix/news/slrn/ \
ftp://ftp.ntua.gr/pub/lang/slang/slrn/ \
ftp://ftp.plig.org/pub/slrn/
MAINTAINER= johans@FreeBSD.org
COMMENT= SLang-based newsreader
LIB_DEPENDS= slang:${PORTSDIR}/devel/libslang2
CONFLICTS_INSTALL= ja-slrn-[0-9]*
USE_GMAKE= yes
USE_ICONV= yes
OPTIONS_DEFINE= SSL DEVIEW
OPTIONS_DEFAULT=SSL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-ipv6 --disable-inews --with-slrnpull \
--with-libiconv-prefix=${LOCALBASE}
.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= YES
CONFIGURE_ARGS+= --with-ssl
.endif
.if ${PORT_OPTIONS:MDEVIEW}
LIB_DEPENDS+= uu:${PORTSDIR}/converters/uulib
CONFIGURE_ARGS+= --with-uulib
.endif
.if empty(PORT_OPTIONS:MDOCS)
# Use dummy target rather than rewriting makefile
CONFIGURE_ARGS+= --with-docdir=${WRKSRC}/dummy
.endif
ALL_TARGET= all
MAN1= slrn.1 slrnpull.1
post-patch:
@${REINPLACE_CMD} -e 's,/usr/lib/sendmail,/usr/sbin/sendmail,' \
${WRKSRC}/src/slrnfeat.hin
@${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,' \
${WRKSRC}/src/jdmacros.h
.include <bsd.port.mk>
|