summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-03-07 16:53:35 +0000
committerhans <hans@pkgsrc.org>2012-03-07 16:53:35 +0000
commit9b8a01c4211aa37c312bb3b0f6e792560b98ed75 (patch)
tree0e98b8c0b8a24b9669050c6a6e21a92951384ad7 /editors
parent651fde8a1cb1eb1e56821a3289533ea020df32de (diff)
downloadpkgsrc-9b8a01c4211aa37c312bb3b0f6e792560b98ed75.tar.gz
Fix build on SunOS.
- uses db1, so include bdb.buildlink3.mk etc. - don't build catpage
Diffstat (limited to 'editors')
-rw-r--r--editors/vigor/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/editors/vigor/Makefile b/editors/vigor/Makefile
index ee92b9187bb..9a51a0853ff 100644
--- a/editors/vigor/Makefile
+++ b/editors/vigor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2010/01/29 20:02:25 joerg Exp $
+# $NetBSD: Makefile,v 1.29 2012/03/07 16:53:35 hans Exp $
#
DISTNAME= vigor-0.016
@@ -16,6 +16,9 @@ INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
CONFLICTS+= nvi-[0-9]*
+USE_DB185= yes
+LDFLAGS+= ${BDB_LIBS}
+
GNU_CONFIGURE= yes
CONFIGURE_DIRS= build
CONFIGURE_ENV+= TCLCONFIG_SH=${TCLCONFIG_SH:Q}
@@ -30,6 +33,14 @@ BUILD_DIRS= ${CONFIGURE_DIRS}
BUILDLINK_DEPMETHOD.libXt?= build
+.if empty(USE_BUILTIN:M[yY][eE][sS])
+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/'
+.endif
+
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
@@ -40,7 +51,5 @@ post-patch:
${RM} -f ${WRKSRC}/include/sys/queue.h
.endif
-post-build:
- nroff -mandoc ${WRKSRC}/docs/USD.doc/vi.man/vi.1 >${WRKSRC}/docs/USD.doc/vi.man/vi.0
-
+.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"