2001-04-08 12:51:45 +02:00
|
|
|
# New ports collection makefile for: newsx
|
2001-04-08 20:51:32 +02:00
|
|
|
# Date created: 10th February, 2001
|
2001-04-08 12:51:45 +02:00
|
|
|
# Whom: Thierry Thomas <tthomas@mail.dotcom.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= newsx
|
2002-08-05 01:26:09 +02:00
|
|
|
PORTVERSION= 1.4.8
|
2001-04-08 12:51:45 +02:00
|
|
|
CATEGORIES= news
|
|
|
|
MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
|
2002-08-05 01:26:09 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.8/pl6/}
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2002-01-20 23:32:44 +01:00
|
|
|
MAINTAINER= thierry@pompo.net
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= A program to fetch news from and post news to a remote NNTP server
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2002-02-23 15:23:48 +01:00
|
|
|
.if defined(WITH_CNEWS)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
|
|
|
|
.else !defined(WITHOUT_INN_2-X)
|
2001-08-07 18:25:27 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
|
2002-02-23 15:23:48 +01:00
|
|
|
.endif
|
|
|
|
|
2002-07-07 20:19:52 +02:00
|
|
|
USE_AUTOMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
2002-02-23 15:23:48 +01:00
|
|
|
CONFIGURE_ENV= PATH="${PATH}:${LOCALBASE}/news/bin"
|
|
|
|
.if !defined(WITH_CNEWS)
|
|
|
|
.if !defined(WITHOUT_INN_2-X)
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/news/include"
|
|
|
|
CONFIGURE_ARGS= --with-newslib=${LOCALBASE}/news/lib
|
|
|
|
.endif
|
|
|
|
.endif
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2002-02-23 15:23:48 +01:00
|
|
|
HDR_DIR= ${LOCALBASE}/news/include
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2001-08-07 18:25:27 +02:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
|
|
|
|
|
2002-02-23 15:23:48 +01:00
|
|
|
post-patch:
|
2002-07-07 20:19:52 +02:00
|
|
|
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
|
2001-04-08 12:51:45 +02: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} "*********************************************************"
|
|
|
|
|
2001-08-07 18:25:27 +02: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 12:51:45 +02:00
|
|
|
MAN1= newsq.1
|
|
|
|
MAN5= newsx.conf.5 in.hosts.5
|
|
|
|
MAN8= newsx.8
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|