aboutsummaryrefslogtreecommitdiff
path: root/textproc/diffutils/Makefile
blob: 7d0e790fad85aeb13d5931065c3216a89f9d987e (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
# New ports collection makefile for:	diffutils
# Date created:				5 September 2001
# Whom:				Garrett Rooney <rooneg@electricjellyfish.net>
#
# $FreeBSD$
#

PORTNAME=	diffutils
PORTVERSION=	2.8.1
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	diffutils

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The GNU diff utilities

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--program-prefix=g

INFO=		diff
MAN1=		gcmp.1 gdiff.1 gdiff3.1 gsdiff.1
PLIST_FILES=	bin/gcmp bin/gdiff bin/gdiff3 bin/gsdiff

OPTIONS=	TIMESTAMP_PRECISION	"With nano second timestamp precision"	off

.include <bsd.port.pre.mk>

.if defined(WITH_TIMESTAMP_PRECISION)
PATCH_SITES+=	http://izb.knu.ac.kr/~bh/diffs/
PATCHFILES+=	diffutils-2.8.1-timestamp_precision.diff
PATCH_DIST_STRIP+=	-p1
.endif

.if defined(WITH_TIMESTAMP_PRECISION)
post-install:
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>