freebsd-ports/textproc/wiggle/Makefile
Matthias Andree 3428697732 New upstream release v0.9.1.
Removes one file from source tarball with unclear license. The port did not
install this file previously.
2013-02-05 23:09:03 +00:00

34 lines
972 B
Makefile

# Created by: mandree@FreeBSD.org
# $FreeBSD$
PORTNAME= wiggle
PORTVERSION= 0.9.1
CATEGORIES= textproc
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:${PORTSDIR}/shells/bash
USE_GMAKE= yes
MAKE_ARGS+= CFLAGS="${CFLAGS} -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter"
MAN1= wiggle.1
PLIST_FILES= bin/wiggle
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 ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/wiggle.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>