2013-01-24 22:11:04 +00:00
|
|
|
# Created by: mandree@FreeBSD.org
|
2012-02-15 23:31:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wiggle
|
2017-10-03 15:07:13 +00:00
|
|
|
PORTVERSION= 1.1
|
2012-02-15 23:31:09 +00:00
|
|
|
CATEGORIES= textproc
|
2013-01-24 22:11:04 +00:00
|
|
|
MASTER_SITES= http://neil.brown.name/wiggle/
|
2012-02-15 23:31:09 +00:00
|
|
|
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
|
|
COMMENT= Apply rejected patches and perform word-wise diffs
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 14:25:16 +00:00
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
2012-02-15 23:31:09 +00:00
|
|
|
|
2017-10-03 15:07:13 +00:00
|
|
|
USES= gmake groff ncurses
|
2012-02-15 23:31:09 +00:00
|
|
|
|
2013-01-24 22:11:04 +00:00
|
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS} -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter"
|
2012-02-15 23:31:09 +00:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${REINPLACE_CMD} -Ee 's,\./dotest,bash ./dotest,' ${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -Ee "s,/usr/bin/time -o .time -f '%U',," ${WRKSRC}/dotest
|
2013-01-24 22:11:04 +00:00
|
|
|
${REINPLACE_CMD} -Ee 's|#include.*<endian.h>|#include <sys/endian.h>|' ${WRKSRC}/config.h
|
2013-01-24 22:48:08 +00:00
|
|
|
@# fix a clang warning:
|
2013-01-24 22:11:04 +00:00
|
|
|
${REINPLACE_CMD} -Ee 's|(^[[:space:]]+[[:<:]])cols = cols;|\1(void)cols;|' ${WRKSRC}/vpatch.c
|
2012-02-15 23:31:09 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-10-07 20:48:03 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/wiggle ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/wiggle.1 ${STAGEDIR}${PREFIX}/man/man1/
|
2012-02-15 23:31:09 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|