aboutsummaryrefslogtreecommitdiffstats
path: root/news/trn4/Makefile
blob: 84fe9a0d1fe9d57f16620826aa5f636dc7d44503 (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
# Created by: smace
# $FreeBSD$

PORTNAME=   trn
PORTVERSION=    4.0.b77
CATEGORIES= news
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}4
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.b/-test/}

MAINTAINER= johans@FreeBSD.org
COMMENT=    Version 4.0 of the threaded readnews newsreader

CONFLICTS_INSTALL=trn-3.[0-9]* cnews-* s-news-[0-9]*

NO_LATEST_LINK= yes
MAN1=       trn.1 Pnews.1 Rnmail.1

NO_STAGE=   yes
.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's/pipe[12]/z&/g' ${WRKSRC}/filter.c

pre-configure:
    @${ECHO_MSG} "===>  Running pre-configure target for ${DISTNAME}"
    @${SED} -e "s:__CC__:${CC}:" -e "s:__CFLAGS__:${CFLAGS}:" \
        -e "s:/PREFIX:${PREFIX}:"  ${SCRIPTDIR}/preconf > \
        ${WRKDIR}/preconf.new
.ifdef BATCH
    @${ECHO_CMD} 3 | ${SH} ${WRKDIR}/preconf.new ${PORTSDIR} ${.CURDIR} ${WRKSRC}
.else
    @${SH} ${WRKDIR}/preconf.new ${PORTSDIR} ${.CURDIR} ${WRKSRC}
.endif

.include <bsd.port.post.mk>