blob: 986eaa578b240235f85675676df23ab1680cdc76 (
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
|
# Created by: Thierry Thomas <tthomas@mail.dotcom.fr>
# $FreeBSD$
PORTNAME= newsx
PORTVERSION= 1.6
PORTREVISION= 3
CATEGORIES= news
MASTER_SITES= http://www.kvaleberg.org/pub/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Program to fetch news from and post news to a remote NNTP server
LICENSE= GPLv2
.if defined(WITH_CNEWS)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
.elif !defined(WITHOUT_INN_2-X)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
.endif
GNU_CONFIGURE= yes
CONFLICTS= leafnode-1.*
OPTIONS_DEFINE= DOCS
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CPPFLAGS+= -I${LOCALBASE}/news/include
.endif
.endif
.if defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --without-history
.endif
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
.include <bsd.port.options.mk>
pre-configure:
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/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} "*********************************************************"
post-build:
.if !defined(WITH_DEBUG)
${STRIP_CMD} ${WRKSRC}/src/newsx
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/inhosts
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.include <bsd.port.mk>
|