summaryrefslogtreecommitdiff
path: root/print/gv
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2021-03-21 00:11:40 +0000
committerrillig <rillig@pkgsrc.org>2021-03-21 00:11:40 +0000
commite7981e55e5e8eb8aa5fa3d0dbbc4c7485f8643c9 (patch)
tree2a6a5d6c7e87802ec71bf1043ed10407ed7c08bf /print/gv
parent5e86db50a469e433414da6b794814129dd5d6e95 (diff)
downloadpkgsrc-e7981e55e5e8eb8aa5fa3d0dbbc4c7485f8643c9.tar.gz
print/gc: allow to build with neXtaw
Patch provided by Simon Adda-Reyss via private mail.
Diffstat (limited to 'print/gv')
-rw-r--r--print/gv/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/print/gv/Makefile b/print/gv/Makefile
index c7313dd2bc5..89d0334f121 100644
--- a/print/gv/Makefile
+++ b/print/gv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.89 2020/08/31 18:11:01 wiz Exp $
+# $NetBSD: Makefile,v 1.90 2021/03/21 00:11:40 rillig Exp $
DISTNAME= gv-3.7.4
PKGREVISION= 10
@@ -24,6 +24,17 @@ XAW_TYPE?= 3d
XAW_TYPE= 3d
.endif
+.if ${XAW_TYPE} == "neXtaw"
+# The original configure links against Xaw3d, not Xaw.
+BUILDLINK_TRANSFORM+= l:Xaw3d:neXtaw
+SUBST_CLASSES+= gvnextaw
+SUBST_MESSAGE.gvnextaw= Patching gv to use neXtaw
+SUBST_STAGE.gvnextaw= pre-configure
+SUBST_FILES.gvnextaw= configure
+SUBST_FILES.gvnextaw+= src/paths.h
+SUBST_SED.gvnextaw= -e 's,<X11/Xaw3d/,<X11/neXtaw/,g'
+.endif
+
# Solaris-2.{8,9}/sparc are missing setenv() and unsetenv()
# it is probably true that 5.6, 5.7, 5.8, and 5.9 all have
# this problem. It appears that 5.10 does not need this flag.