pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/gv print/gc: allow to build with neXtaw



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89a994973a53
branches:  trunk
changeset: 449098:89a994973a53
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Mar 21 00:11:40 2021 +0000

description:
print/gc: allow to build with neXtaw

Patch provided by Simon Adda-Reyss via private mail.

diffstat:

 print/gv/Makefile |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r ed455ce8ba31 -r 89a994973a53 print/gv/Makefile
--- a/print/gv/Makefile Sun Mar 21 00:01:46 2021 +0000
+++ b/print/gv/Makefile Sun Mar 21 00:11:40 2021 +0000
@@ -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
 .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.



Home | Main Index | Thread Index | Old Index