2017-09-03 10:36:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.51 2017/09/03 08:36:54 wiz Exp $
|
2002-01-12 11:59:30 +01:00
|
|
|
|
2008-04-15 13:58:12 +02:00
|
|
|
DISTNAME= nvi-1.81.6
|
2017-04-04 09:53:23 +02:00
|
|
|
PKGREVISION= 11
|
2002-01-12 11:59:30 +01:00
|
|
|
CATEGORIES= editors
|
2010-06-02 15:24:34 +02:00
|
|
|
MASTER_SITES= ${HOMEPAGE:Q}
|
2002-01-12 11:59:30 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-03 10:36:49 +02:00
|
|
|
#HOMEPAGE= http://www.kotnet.org/~skimo/nvi/devel/
|
2002-01-12 11:59:30 +01:00
|
|
|
COMMENT= Berkeley nvi with additional features
|
|
|
|
|
2008-02-21 22:17:45 +01:00
|
|
|
.include "options.mk"
|
2004-01-11 20:43:27 +01:00
|
|
|
|
2013-01-23 18:26:07 +01:00
|
|
|
CONFIGURE_DIRS= build.unix
|
2008-02-21 22:20:12 +01:00
|
|
|
USE_LIBTOOL= yes
|
2011-12-26 02:54:39 +01:00
|
|
|
USE_TOOLS+= sh aclocal automake autoheader autoconf
|
2008-02-21 22:20:12 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
|
|
CONFIGURE_ARGS+= --program-transform-name='s,^,n,'
|
2010-06-02 15:24:34 +02:00
|
|
|
CONFIGURE_ENV+= vi_cv_path_shell=${TOOLS_SH}
|
2008-02-21 22:20:12 +01:00
|
|
|
|
2004-01-11 20:43:27 +01:00
|
|
|
.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
|
2004-09-16 12:40:24 +02:00
|
|
|
# XXX ignore NetBSD 2.0F and later's granpt(2) and SysV pty for just now
|
|
|
|
CONFIGURE_ENV+= vi_cv_sys5_pty=no
|
2005-09-11 20:08:02 +02:00
|
|
|
# XXX also ignore it on Darwin (fixes Tiger build)
|
2005-12-09 17:01:55 +01:00
|
|
|
.elif ${OPSYS} == "DragonFly"
|
|
|
|
CONFIGURE_ENV+= vi_cv_include_sys_select=no
|
2011-01-10 12:06:29 +01:00
|
|
|
CONFIGURE_ENV+= vi_cv_sys5_pty=no
|
2005-09-11 20:08:02 +02:00
|
|
|
.elif ${OPSYS} == "Darwin"
|
|
|
|
CONFIGURE_ENV+= vi_cv_sys5_pty=no
|
2007-06-04 16:45:47 +02:00
|
|
|
LDFLAGS+= -flat_namespace
|
2004-01-11 20:43:27 +01:00
|
|
|
.endif
|
|
|
|
|
2009-01-16 13:31:51 +01:00
|
|
|
# Use of db1 is not officially supported.
|
|
|
|
BDB_ACCEPTED= db3 db4
|
2009-02-22 13:20:17 +01:00
|
|
|
CONFIGURE_ARGS+= --with-db=system
|
2009-01-16 13:31:51 +01:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2009-02-22 13:20:17 +01:00
|
|
|
.if ${BDB_TYPE} == "db1"
|
2009-01-16 13:31:51 +01:00
|
|
|
CONFIGURE_ARGS+= --with-db_type=db1
|
2009-02-22 13:20:17 +01:00
|
|
|
.else
|
2009-01-16 13:31:51 +01:00
|
|
|
CONFIGURE_ARGS+= --with-db-prefix=${BDBBASE}
|
2009-02-22 13:20:17 +01:00
|
|
|
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
|
|
|
|
.endif
|
2011-12-26 02:54:39 +01:00
|
|
|
|
|
|
|
pre-configure:
|
2013-01-23 18:26:07 +01:00
|
|
|
${RUN} cd ${WRKSRC}/dist && \
|
2011-12-28 20:34:39 +01:00
|
|
|
${CHMOD} 755 configure && \
|
2011-12-26 02:54:39 +01:00
|
|
|
aclocal -I m4 && autoheader && autoconf
|
|
|
|
|
2002-01-12 11:59:30 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|