aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/wiggle/Makefile
blob: 9ff256d0a51c6ada25662df311d1440936f375c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: mandree@FreeBSD.org
# $FreeBSD$

PORTNAME=   wiggle
PORTVERSION=    1.0
CATEGORIES= textproc
MASTER_SITES=   http://neil.brown.name/wiggle/

MAINTAINER= mandree@FreeBSD.org
COMMENT=    Apply rejected patches and perform word-wise diffs

LICENSE=    GPLv2

BROKEN_powerpc64=   Does not build

BUILD_DEPENDS=  bash:shells/bash

USES=       compiler:nestedfct gmake ncurses

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
        ${REINPLACE_CMD} -Ee 's|#include.*<endian.h>|#include <sys/endian.h>|' ${WRKSRC}/config.h
        @# fix a clang warning:
        ${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>