summaryrefslogtreecommitdiff
path: root/news/tin/Makefile
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-02-11 11:13:54 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-02-11 11:13:54 +0000
commite5daca68866275474e6738fdb8e501d4aee92ddd (patch)
tree34799cd2493388c947f0322512af144b3efd0f1e /news/tin/Makefile
parentremove hack uu.h -> uudeview.h, I alredy fix uulib (diff)
fix configure mistakes
use uulib
Notes
Notes: svn path=/head/; revision=16614
Diffstat (limited to 'news/tin/Makefile')
-rw-r--r--news/tin/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/news/tin/Makefile b/news/tin/Makefile
index e6f4a036dce0..1a14bed1b4b1 100644
--- a/news/tin/Makefile
+++ b/news/tin/Makefile
@@ -4,7 +4,7 @@
# Date created: 25 July 1996
# Whom: obrien@cs.ucdavis.edu
#
-# $Id: Makefile,v 1.63 1998/10/14 04:06:31 jseger Exp $
+# $Id: Makefile,v 1.64 1998/10/15 00:07:04 jseger Exp $
#
DISTNAME= tinpre-1.4-980818
@@ -14,6 +14,8 @@ MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/current/ \
ftp://ftp.nuxi.com/pub/tin/
EXTRACT_SUFX= .tgz
+LIB_DEPENDS= uu.1:${PORTSDIR}/converters/uulib
+
MAINTAINER= ache@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME:S/pre-1.4//}
@@ -27,12 +29,17 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-nntp-default-server=news \
--with-spooldir=/var/news \
--with-libdir=${PREFIX}/news/lib \
+ --with-defaults-dir=${PREFIX}/etc \
+ --with-editor=/usr/bin/ee \
--with-mime-default-charset=ISO-8859-1 \
--enable-forgery \
--enable-break-long-lines \
--with-pgp=${PREFIX}/bin/pgp \
--with-ispell=${PREFIX}/bin/ispell \
--with-metamail=${PREFIX}/bin/metamail
+CONFIGURE_ENV= CFLAGS='${CFLAGS} -I${PREFIX}/include -DNNTP_SERVER_FILE="\"${PREFIX}/etc/nntpserver\""' \
+ CPPFLAGS='${CPPFLAGS} -I${PREFIX}/include' \
+ LDFLAGS='${LDFLAGS} -L${PREFIX}/lib'
MAKEFILE= makefile
ALL_TARGET= build
MAN1= tin.1
@@ -48,8 +55,10 @@ post-patch:
-e 's:/usr/lib/news:${PREFIX}/news/lib:' \
<${WRKSRC}/doc/tin.1.dist >${WRKSRC}/doc/tin.1
-post-configure:
- ${ECHO} '#define NNTP_SERVER_FILE "${PREFIX}/etc/nntpserver"' >>${WRKSRC}/include/autoconf.h
- ${ECHO} '#define SMTP_SERVER_FILE "${PREFIX}/etc/smtpserver"' >>${WRKSRC}/include/autoconf.h
+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
.include <bsd.port.mk>