2012-11-04 16:59:46 +00:00
|
|
|
# Created by: Pete Fritchman <petef@databits.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= reed
|
|
|
|
PORTVERSION= 5.4
|
|
|
|
PORTREVISION= 1
|
|
|
|
CATEGORIES= sysutils
|
2013-12-29 17:08:28 +00:00
|
|
|
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/
|
2012-11-04 16:59:46 +00:00
|
|
|
|
|
|
|
MAINTAINER= crees@FreeBSD.org
|
|
|
|
COMMENT= A text pager with autoscrolling and more
|
|
|
|
|
2013-04-30 20:10:53 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2013-12-29 17:08:28 +00:00
|
|
|
USES= perl5 shebangfix
|
2013-07-31 06:54:09 +00:00
|
|
|
USE_PERL5= run build patch
|
2013-12-29 17:08:28 +00:00
|
|
|
SHEBANG_FILES= wrap breed
|
2012-11-04 16:59:46 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= configures
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures
|
|
|
|
@${PERL} -pi -e 's!sys/dir.h!dirent.h!g;s!.*getopt.h.*\n!!' \
|
|
|
|
${WRKSRC}/reed.c
|
|
|
|
@${PERL} -pi -e 's!getopt.h !!' ${WRKSRC}/cfg.data
|
|
|
|
@${PERL} -pi -e 's!-O2!${CFLAGS}!' ${WRKSRC}/Makefile.in
|
|
|
|
@${PERL} -pi -e 's!^#!/usr/bin/perl!#!${PERL}!' \
|
|
|
|
${WRKSRC}/fix_bookmarks.pl
|
|
|
|
|
|
|
|
do-install:
|
2013-12-29 17:08:28 +00:00
|
|
|
${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
|
2012-11-04 16:59:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|