blob: 1156cb80ebc9b59e8e456c746908412f724389ba (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: mandree@FreeBSD.org
# $FreeBSD$
PORTNAME= wiggle
PORTVERSION= 0.9
CATEGORIES= textproc
MASTER_SITES= http://neil.brown.name/wiggle/
#MASTER_SITES= LOCAL/mandree
#DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.xz
MAINTAINER= mandree@FreeBSD.org
COMMENT= Apply rejected patches and perform word-wise diffs
LICENSE= GPLv2
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
#_GITDATE= 20111208
#_GITVERSION= 405d8fe
#WRKSRC= ${WRKDIR}/${PORTNAME}-${_GITVERSION}
USE_GMAKE= yes
#USE_XZ= yes
MAKE_ARGS+= CFLAGS="${CFLAGS} -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter"
MAN1= wiggle.1
PLIST_FILES= bin/wiggle
build-tarball: ${DISTFILES}
${DISTFILES}.gz:
${FETCH_CMD} -o ${DISTFILES}.gz 'http://git.neil.brown.name/git?p=wiggle;a=snapshot;h=${_GITVERSION};sf=tgz'
${DISTFILES}: ${DISTFILES}.gz
${GZIP_CMD} -cd ${DISTFILES}.gz | ${XZ_CMD} -c --best >${DISTFILES}
upload-tarball: build-tarball
scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
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 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>
|