1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/textproc/wiggle/Makefile

32 lines
951 B
Makefile
Raw Normal View History

2013-01-24 22:11:04 +00:00
# Created by: mandree@FreeBSD.org
# $FreeBSD$
PORTNAME= wiggle
PORTVERSION= 1.1
CATEGORIES= textproc
2013-01-24 22:11:04 +00:00
MASTER_SITES= http://neil.brown.name/wiggle/
MAINTAINER= mandree@FreeBSD.org
COMMENT= Apply rejected patches and perform word-wise diffs
LICENSE= GPLv2
BUILD_DEPENDS= bash:shells/bash
USES= gmake groff ncurses
2013-01-24 22:11:04 +00:00
MAKE_ARGS+= CFLAGS="${CFLAGS} -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter"
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
@# 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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wiggle ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/wiggle.1 ${STAGEDIR}${PREFIX}/man/man1/
.include <bsd.port.mk>