1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/news/trn4/Makefile
Muhammad Moinur Rahman e601cedfb6
news/trn4: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-25 12:32:45 +01:00

37 lines
1.0 KiB
Makefile

PORTNAME= trn
PORTVERSION= 4.0.b77
PORTREVISION= 1
PKGNAMESUFFIX= 4
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}4
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/-test/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Version 4.0 of the threaded readnews newsreader
WWW= https://sourceforge.net/projects/trn/
CONFLICTS_INSTALL= trn cnews s-news
USES= ncurses
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's/pipe[12]/z&/g' ${WRKSRC}/filter.c
${REINPLACE_CMD} -e 's|^dir=|&$${DESTDIR}|' ${WRKSRC}/myinstall.SH
${REINPLACE_CMD} -e 's|./makedir |&$${DESTDIR}|' \
-e 's|dest=|&$${DESTDIR}|' ${WRKSRC}/Makefile.SH
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>