summaryrefslogtreecommitdiff
path: root/editors/nvi/Makefile
blob: cbac5a01db5b069f76a23fabeb870cfab7e628d5 (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.34 2008/12/31 20:48:37 epg Exp $
#

DISTNAME=	nvi-1.81.6
PKGREVISION=	2
CATEGORIES=	editors
MASTER_SITES=	${HOMEPAGE}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.kotnet.org/~skimo/nvi/devel/
COMMENT=	Berkeley nvi with additional features

PKG_DESTDIR_SUPPORT=	user-destdir

.include "options.mk"

WRKSRC=			${WRKDIR}/${DISTNAME}/build.unix
USE_TOOLS+=		sh
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes

CONFIGURE_SCRIPT=	../dist/configure
CONFIGURE_ARGS+=	--with-db3=${BUILDLINK_PREFIX.db3}
CONFIGURE_ARGS+=	--program-transform-name='s,^,n,'
CONFIGURE_ENV+=		vi_cv_path_shell=${TOOLS_SH:Q}

.if ${OPSYS} == "NetBSD"
.  if !empty(OS_VERSION:M[2-9].*) || !empty(OS_VERSION:M1.6[A-Z]*)
CONFIGURE_ENV+=		vi_cv_include_sys_select=no
.  endif
# XXX ignore NetBSD 2.0F and later's granpt(2) and SysV pty for just now
CONFIGURE_ENV+=		vi_cv_sys5_pty=no
# XXX also ignore it on Darwin (fixes Tiger build)
.elif ${OPSYS} == "DragonFly"
CONFIGURE_ENV+=		vi_cv_include_sys_select=no
.elif ${OPSYS} == "Darwin"
CONFIGURE_ENV+=		vi_cv_sys5_pty=no
LDFLAGS+=		-flat_namespace
INSTALL_UNSTRIPPED=	yes
.endif

# We need exactly the db3 API.
# TODO: Actually nvi supports db4, but its configure script is broken.
# Perhaps some brave soul can fix it...
BUILDLINK_TRANSFORM+=	l:db:db3
.include "../../databases/db3/buildlink3.mk"

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