Import net-mgmt/networkmgr version 2.2
[dports.git] / news / trn4 / Makefile
1 # Created by: smace
2 # $FreeBSD$
3
4 PORTNAME=       trn
5 PORTVERSION=    4.0.b77
6 PKGNAMESUFFIX=  4
7 CATEGORIES=     news
8 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}4
9 DISTNAME=       ${PORTNAME}-${PORTVERSION:S/.b/-test/}
10
11 MAINTAINER=     johans@FreeBSD.org
12 COMMENT=        Version 4.0 of the threaded readnews newsreader
13
14 CONFLICTS_INSTALL=trn-3.[0-9]* cnews-* s-news-[0-9]*
15
16 USES=           ncurses
17
18 .include <bsd.port.pre.mk>
19
20 post-patch:
21         ${REINPLACE_CMD} -e 's/pipe[12]/z&/g' ${WRKSRC}/filter.c
22         ${REINPLACE_CMD} -e 's|^dir=|&$${DESTDIR}|' ${WRKSRC}/myinstall.SH
23         ${REINPLACE_CMD} -e 's|./makedir |&$${DESTDIR}|' \
24                 -e 's|dest=|&$${DESTDIR}|' ${WRKSRC}/Makefile.SH
25
26 pre-configure:
27         @${ECHO_MSG} "===>  Running pre-configure target for ${DISTNAME}"
28         @${SED} -e "s:__CC__:${CC}:" -e "s:__CFLAGS__:${CFLAGS}:" \
29                 -e "s:/PREFIX:${PREFIX}:"  ${SCRIPTDIR}/preconf > \
30                 ${WRKDIR}/preconf.new
31 .ifdef BATCH
32         @${ECHO_CMD} 3 | ${SH} ${WRKDIR}/preconf.new ${PORTSDIR} ${.CURDIR} ${WRKSRC}
33 .else
34         @${SH} ${WRKDIR}/preconf.new ${PORTSDIR} ${.CURDIR} ${WRKSRC}
35 .endif
36
37 .include <bsd.port.post.mk>