2013-09-21 00:31:15 +02:00
|
|
|
# Created by: Thierry Thomas <tthomas@mail.dotcom.fr>
|
2001-04-08 12:51:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= newsx
|
2003-05-18 07:50:16 +02:00
|
|
|
PORTVERSION= 1.6
|
2018-11-13 19:39:05 +01:00
|
|
|
PORTREVISION= 4
|
2001-04-08 12:51:45 +02:00
|
|
|
CATEGORIES= news
|
2019-11-19 22:26:48 +01:00
|
|
|
MASTER_SITES= LOCAL/thierry
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2006-07-04 22:09:51 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Program to fetch news from and post news to a remote NNTP server
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2012-06-12 22:48:15 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2002-02-23 15:23:48 +01:00
|
|
|
.if defined(WITH_CNEWS)
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:news/cnews
|
2005-04-23 19:42:52 +02:00
|
|
|
.elif !defined(WITHOUT_INN_2-X)
|
2018-11-13 19:39:05 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.so:news/inn
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/news/lib/libinn.so:news/inn
|
2002-02-23 15:23:48 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-04 22:09:51 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2012-06-12 22:48:15 +02:00
|
|
|
CONFLICTS= leafnode-1.*
|
2003-10-14 09:28:44 +02:00
|
|
|
|
2014-07-04 23:57:08 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2002-02-23 15:23:48 +01:00
|
|
|
.if !defined(WITH_CNEWS)
|
|
|
|
.if !defined(WITHOUT_INN_2-X)
|
2018-11-13 19:39:05 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/news/include/inn
|
2002-02-23 15:23:48 +01:00
|
|
|
.endif
|
|
|
|
.endif
|
2001-04-08 12:51:45 +02:00
|
|
|
|
2006-07-04 22:09:51 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
CONFIGURE_ARGS+= --without-history
|
|
|
|
.endif
|
|
|
|
|
2015-12-29 14:07:15 +01:00
|
|
|
PORTDOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
|
2001-08-07 18:25:27 +02:00
|
|
|
|
2014-07-04 23:57:08 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2001-04-08 12:51:45 +02:00
|
|
|
pre-configure:
|
2013-11-27 23:33:26 +01:00
|
|
|
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
|
2001-04-08 12:51:45 +02:00
|
|
|
@${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} "*********************************************************"
|
|
|
|
|
2013-11-27 23:33:26 +01:00
|
|
|
post-build:
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
${STRIP_CMD} ${WRKSRC}/src/newsx
|
|
|
|
.endif
|
2003-05-18 07:50:16 +02:00
|
|
|
|
2015-12-29 14:07:15 +01:00
|
|
|
post-install-DOCS-on:
|
2013-11-27 23:33:26 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-12-29 14:07:15 +01:00
|
|
|
.for FILE in ${PORTDOCS}
|
2013-11-27 23:33:26 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
2001-08-07 18:25:27 +02:00
|
|
|
.endfor
|
|
|
|
|
2001-04-08 12:51:45 +02:00
|
|
|
.include <bsd.port.mk>
|