2001-04-08 10:51:45 +00:00
|
|
|
# New ports collection makefile for: newsx
|
2001-04-08 18:51:32 +00:00
|
|
|
# Date created: 10th February, 2001
|
2001-04-08 10:51:45 +00:00
|
|
|
# Whom: Thierry Thomas <tthomas@mail.dotcom.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= newsx
|
2003-05-18 05:50:16 +00:00
|
|
|
PORTVERSION= 1.6
|
2003-06-13 17:35:00 +00:00
|
|
|
PORTREVISION= 1
|
2001-04-08 10:51:45 +00:00
|
|
|
CATEGORIES= news
|
2003-06-13 17:35:00 +00:00
|
|
|
MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2002-01-20 22:32:44 +00:00
|
|
|
MAINTAINER= thierry@pompo.net
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= A program to fetch news from and post news to a remote NNTP server
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2002-02-23 14:23:48 +00:00
|
|
|
.if defined(WITH_CNEWS)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
|
|
|
|
.else !defined(WITHOUT_INN_2-X)
|
2001-08-07 16:25:27 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
|
2002-02-23 14:23:48 +00:00
|
|
|
.endif
|
|
|
|
|
2002-07-07 18:19:52 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-02-23 14:23:48 +00:00
|
|
|
.if !defined(WITH_CNEWS)
|
|
|
|
.if !defined(WITHOUT_INN_2-X)
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/news/include"
|
|
|
|
.endif
|
|
|
|
.endif
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2001-08-07 16:25:27 +00:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
|
|
|
|
|
2002-02-23 14:23:48 +00:00
|
|
|
post-patch:
|
2003-05-18 05:50:16 +00:00
|
|
|
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
|
2001-04-08 10:51:45 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${ECHO} "*********************************************************"
|
|
|
|
@${ECHO} "If the configure step fails, then you probably don't have"
|
|
|
|
@${ECHO} "a news server package installed. Try installing INN from"
|
|
|
|
@${ECHO} "${PORTSDIR}/news/inn, and then try building this port"
|
|
|
|
@${ECHO} "again."
|
|
|
|
@${ECHO} "*********************************************************"
|
|
|
|
|
2003-05-18 05:50:16 +00:00
|
|
|
pre-install:
|
|
|
|
@${STRIP_CMD} ${WRKSRC}/src/newsx
|
|
|
|
|
2001-08-07 16:25:27 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO} "Documentation installed in ${DOCSDIR}."
|
|
|
|
.endif
|
|
|
|
|
2001-04-08 10:51:45 +00:00
|
|
|
MAN1= newsq.1
|
|
|
|
MAN5= newsx.conf.5 in.hosts.5
|
|
|
|
MAN8= newsx.8
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|