summaryrefslogtreecommitdiff
path: root/devel/cogito/Makefile
blob: 6f2a196769636374b64a3406a862f790fcc3665b (plain)
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
# $NetBSD: Makefile,v 1.9 2007/10/09 19:19:09 martti Exp $
#

DISTNAME=		cogito-0.18.2
PKGREVISION=		2
CATEGORIES=		devel
MASTER_SITES=		http://www.kernel.org/pub/software/scm/cogito/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		rillig@NetBSD.org
HOMEPAGE=		http://www.kernel.org/pub/software/scm/cogito/
COMMENT=		Version control system of the Linux kernel

DEPENDS+=		scmgit-[0-9]*:../../devel/scmgit

USE_TOOLS+=		gmake bash:run fgrep:run grep:run mktemp:run xargs:run
MAKE_FLAGS+=		prefix=${PREFIX:Q}

.include "../../mk/bsd.prefs.mk"

# we need gnu-ish versions of these.  In particular, we require
# that grep accept -q and xargs accept -0
.if ${OPSYS} == "SunOS"

DEPENDS+=	findutils>=4.1:../../sysutils/findutils
TOOLS_PLATFORM.xargs=	${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}xargs

.endif

post-patch:
	for f in ${WRKSRC}/cg* ; do \
		${MV} $$f $$f.bak ;  \
		${SED} -e 's;\([ 	]\)fgrep\([ 	]\);\1${FGREP}\2;g' \
			-e 's;\([ 	]\)grep\([ 	]\);\1${GREP}\2;' \
			-e 's;\([ 	]\)xargs\([ 	]\);\1${XARGS}\2;g' \
			$$f.bak > $$f ; \
		${CHMOD} a+x $$f ; \
	done


.include "../../mk/bsd.pkg.mk"