blob: 677edbc9209e06949eeb60222dbf0307efe2330e (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# New ports collection makefile for: tin
# Date created: 25 July 1996
# Whom: obrien@cs.ucdavis.edu
#
# $FreeBSD$
#
PORTNAME= tin
PORTVERSION= 1.6.2
PORTREVISION= 1
CATEGORIES+= news ipv6
MASTER_SITES= http://mirrors.rcn.net/pub/news/tin/v1.6/ \
ftp://mirrors.rcn.net/pub/news/tin/v1.6/ \
ftp://ftp.tin.org/pub/news/clients/tin/v1.6/ \
ftp://ftp.sunet.se/pub/news/readers/tin/v1.6/
MAINTAINER?= ache@FreeBSD.org
COMMENT= Easy-to-use threaded newsreader with NOV/NNTP support
LIB_DEPENDS= uu.3:${PORTSDIR}/converters/uulib \
iconv.3:${PORTSDIR}/converters/libiconv \
intl.5:${PORTSDIR}/devel/gettext-old \
pcre.0:${PORTSDIR}/devel/pcre
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
TIN_EDITOR?= /usr/bin/ee
# --with-mime-default-charset=US-ASCII needed to build tin in the non-ascii
# national environment.
CONFIGURE_ARGS= --with-nntp-default-server=news \
--with-spooldir=/var/news \
--with-libdir=${PREFIX}/news/lib \
--with-defaults-dir=${PREFIX}/etc \
--with-editor=${TIN_EDITOR} \
--enable-nls \
--with-pcre=yes \
--with-screen=ncurses \
--enable-break-long-lines \
--with-libiconv-prefix=${LOCALBASE} \
--with-mime-default-charset=US-ASCII
CONFIGURE_ENV= CFLAGS='${CFLAGS} -DNNTP_SERVER_FILE="\"${PREFIX}/etc/nntpserver\""' \
CPPFLAGS='${CPPFLAGS} -I${LOCALBASE}/include' \
LDFLAGS='${LDFLAGS} -L${LOCALBASE}/lib'
ALL_TARGET= build
MAN1= tin.1 w2r.pl.1 opt-case.pl.1
MAN5= tin.5 mbox.5 mmdf.5
MLINKS= tin.1 rtin.1
.if defined(WITH_TIN_NNTP_ONLY)
CONFIGURE_ARGS+= --enable-nntp-only
.endif
.include <bsd.port.pre.mk>
.if defined(WITHOUT_TIN_PGP_GPG)
CONFIGURE_ARGS+= --disable-pgp-gpg
.elif defined(WITH_TIN_GPG) || \
(exists(${LOCALBASE}/bin/gpg) && !defined(WITH_TIN_PGP))
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
CONFIGURE_ARGS+= --with-gpg=${PREFIX}/bin/gpg \
--without-pgp --without-pgpk
.elif defined(WITH_TIN_PGP) || exists(${LOCALBASE}/bin/pgp)
RUN_DEPENDS+= pgp:${PORTSDIR}/security/pgp6
CONFIGURE_ARGS+= --with-pgp=${PREFIX}/bin/pgp \
--without-pgpk --without-gpg
.elif defined(WITH_TIN_PGP5) || exists(${LOCALBASE}/bin/pgpk)
RUN_DEPENDS+= pgpk:${PORTSDIR}/security/pgp5
CONFIGURE_ARGS+= --with-pgpk=${PREFIX}/bin/pgpk \
--without-pgp --without-gpg
.else
CONFIGURE_ARGS+= --disable-pgp-gpg
.endif
.if defined(WITH_TIN_ISPELL) || \
(exists(${LOCALBASE}/bin/ispell) && !defined(WITHOUT_TIN_ISPELL))
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
CONFIGURE_ARGS+= --with-ispell=${PREFIX}/bin/ispell
.endif
.if defined(WITH_TIN_METAMAIL) || \
(exists(${LOCALBASE}/bin/metamail) && !defined(WITHOUT_TIN_METAMAIL))
RUN_DEPENDS+= metamail:${PORTSDIR}/mail/metamail
CONFIGURE_ARGS+= --with-metamail=${PREFIX}/bin/metamail
.endif
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
post-patch:
@${MV} ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.1.dist
@${SED} -e 's:/var/spool/news:/var/news:' \
-e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:' \
-e 's:/usr/lib/news:${PREFIX}/news/lib:' \
<${WRKSRC}/doc/tin.1.dist >${WRKSRC}/doc/tin.1
.if defined(WITH_TIN_CANLOCK)
${PATCH} ${PATCH_ARGS} ${WRKSRC}/src/Makefile.in -i ${FILESDIR}/canlock.patch
.endif
pre-build:
.if defined(WITH_TIN_CANLOCK)
cd ${WRKSRC}/src; ${GMAKE} canlock
.endif
post-build:
cd ${WRKSRC}/po; ${GMAKE}
post-install:
cd ${WRKSRC}/doc; ${INSTALL_DATA} tin.defaults ${PREFIX}/etc/tin.defaults.dist
if [ ! -f ${PREFIX}/etc/tin.defaults ] ; then \
${CP} ${PREFIX}/etc/tin.defaults.dist ${PREFIX}/etc/tin.defaults; \
fi
cd ${WRKSRC}/doc; ${INSTALL_DATA} mime.types ${PREFIX}/etc/tin.mime.types.dist
if [ ! -f ${PREFIX}/etc/mime.types ] ; then \
${CP} ${PREFIX}/etc/tin.mime.types.dist ${PREFIX}/etc/mime.types; \
fi
.include <bsd.port.post.mk>
|