ports/sysutils/reed/Makefile
Chris Rees 9f55170f69 sysutils/reed: Remove sys/dir.h
It was replaced a long time ago with sys/dirent.h, which is implicitly
included from dirent.h

Use sed instead of perl, remove redundant seds and use a patch for the
source file for clarity

PR:		ports/238696
Submitted by:	rene
2019-06-19 08:29:55 +00:00

37 lines
1.0 KiB
Makefile

# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$
PORTNAME= reed
PORTVERSION= 5.4
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/
MAINTAINER= crees@FreeBSD.org
COMMENT= Text pager with autoscrolling and more
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= ncurses perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= wrap breed fix_bookmarks.pl
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configures
CONFIGURE_ENV+= INCDIR="${NCURSESINC}"
post-patch:
@${REINPLACE_CMD} 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures
@${REINPLACE_CMD} 's!sys/dir.h!dirent.h!g;\!getopt.h!d' \
${WRKSRC}/reed.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/reed ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/breed ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/wrap ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/fix_bookmarks.pl ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>