summaryrefslogtreecommitdiff
path: root/editors/vigor/Makefile
blob: 55e2a997ef5f6001f3050aa7a23f2d6c1af76b4d (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $NetBSD: Makefile,v 1.44 2015/08/18 07:31:06 wiz Exp $
#

DISTNAME=	vigor-0.016
PKGREVISION=	12
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=vigor/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://vigor.sourceforge.net/
COMMENT=	Excessive online "help" version of nvi

INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX}

CONFLICTS+=	nvi-[0-9]*

LDFLAGS+=	${BDB_LIBS}

GNU_CONFIGURE=	yes
CONFIGURE_DIRS=	build
CONFIGURE_ENV+=	TCLCONFIG_SH=${TCLCONFIG_SH:Q}
CONFIGURE_ENV+=	vi_cv_path_shell=${TOOLS_SH:Q}
CONFIGURE_ARGS+=--with-x
#		--enable-perlinterp \
#		--disable-curses \
#		--disable-re
USE_TOOLS+=	sh
BUILD_DIRS=	${CONFIGURE_DIRS}

BUILDLINK_DEPMETHOD.libXt?=	build

CHECK_BUILTIN.db1:=	yes
.include "../../mk/db1.builtin.mk"
CHECK_BUILTIN.db1:=	no

.if empty(IS_BUILTIN.db1:Myes)
CONFIGURE_ARGS+=	--disable-db
.else
SUBST_CLASSES+=		db185
SUBST_STAGE.db185=	post-extract
SUBST_MESSAGE.db185=	Using db_185.h instead of db.h
SUBST_FILES.db185=	common/common.h
SUBST_SED.db185=	-e '/^\#include <db\.h>/s/db\.h/db_185.h/'

BDB_ACCEPTED=		db1
.include "../../mk/bdb.buildlink3.mk"
.endif

CPPFLAGS+=	-DUSE_INTERP_RESULT

.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "DragonFly"
.if exists(/usr/include/sys/queue.h)
# this file obscures the system header
# (Desired for DragonFly which does not have CIRCLEQ macros)
post-patch:
	${RM} -f ${WRKSRC}/include/sys/queue.h
.endif
.endif

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"