summaryrefslogtreecommitdiff
path: root/devel/ArX/Makefile
blob: 66d53d0974c7bc3a1f93be1927a8063e72ac295f (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
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.21 2009/04/26 10:08:49 rillig Exp $
#

DISTNAME=	ArX-2.2.4
PKGREVISION=	9
CATEGORIES=	devel scm
MASTER_SITES=	http://savannah.nongnu.org/download/arx/

MAINTAINER=	recht@NetBSD.org
HOMEPAGE=	http://www.nongnu.org/arx/
COMMENT=	Distributed revision control system

BUILD_DEPENDS+=	scons-[0-9]*:../../devel/scons
DEPENDS+=	patch-[0-9]*:../../devel/patch
DEPENDS+=	diffutils-[0-9]*:../../devel/diffutils
DEPENDS+=	gtar-base-[0-9]*:../../archivers/gtar-base

BUILD_DEFS+=	GNU_PROGRAM_PREFIX
EVAL_PREFIX+=	PREFIX.diffutils=diffutils
EVAL_PREFIX+=	PREFIX.gtar-base=gtar-base

USE_TOOLS+=		pkg-config
USE_LANGUAGES=		c c++
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	ARXDIFF=${PREFIX.diffutils}/bin/${GNU_PROGRAM_PREFIX}diff
CONFIGURE_ARGS+=	ARXPATCH=${PREFIX.diffutils}/bin/${GNU_PROGRAM_PREFIX}patch
CONFIGURE_ARGS+=	ARXTAR=${PREFIX.gtar-base}/bin/${GNU_PROGRAM_PREFIX}tar
CONFIGURE_ARGS+=	ARXPKGCONFIG=${PKG_CONFIG:Q}
# XXX Python is needed for build only; this is handled by devel/scons
CONFIGURE_ARGS+=	ARXPYTHON=${TRUE:Q}

INSTALLATION_DIRS=	bin

INSTALL_ENV+=		prefix=${DESTDIR}${PREFIX}
INSTALL_ENV+=		mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}

do-build:
	${RUN}${_ULIMIT_CMD}						\
	cd ${WRKSRC}							\
	&& ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons

do-install:
	${RUN}${_ULIMIT_CMD}						\
	cd ${WRKSRC}							\
	&& ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons install

.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"