Wed Feb 23 00:06:49 2022 UTC ()
libXi: Fixup libmansuffix in manual pages.

The manpages use unadorned libmansuffix instead of __libmansuffix__ or
@libmansuffix@ that the standard transformations handle.

Add ad-hoc s/// command for it.  It has "3" hardcoded because there's
no easy way to look up that mapping, but then that very same "3" is
hardcoded in the file names anyway.


(uwe)
diff -r1.14 -r1.15 src/external/mit/xorg/lib/libXi/Makefile

cvs diff -r1.14 -r1.15 src/external/mit/xorg/lib/libXi/Makefile (expand / switch to unified diff)

--- src/external/mit/xorg/lib/libXi/Makefile 2022/02/22 22:49:39 1.14
+++ src/external/mit/xorg/lib/libXi/Makefile 2022/02/23 00:06:49 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.14 2022/02/22 22:49:39 uwe Exp $ 1# $NetBSD: Makefile,v 1.15 2022/02/23 00:06:49 uwe Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
5LIB= Xi 5LIB= Xi
6.PATH: ${X11SRCDIR.${LIB}}/src 6.PATH: ${X11SRCDIR.${LIB}}/src
7.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions 7.PATH: ${X11SRCDIR.${LIB}}/include/X11/extensions
8.PATH: ${X11SRCDIR.${LIB}}/man 8.PATH: ${X11SRCDIR.${LIB}}/man
9 9
10SRCS= XIAllowEvents.c \ 10SRCS= XIAllowEvents.c \
11 XIBarrier.c \ 11 XIBarrier.c \
12 XIGrabDevice.c \ 12 XIGrabDevice.c \
13 XIQueryVersion.c \ 13 XIQueryVersion.c \
14 XIQueryDevice.c \ 14 XIQueryDevice.c \
@@ -74,26 +74,29 @@ LIBDPLIBS=\ @@ -74,26 +74,29 @@ LIBDPLIBS=\
74 74
75INCS= XInput.h \ 75INCS= XInput.h \
76 XInput2.h 76 XInput2.h
77 77
78INCSDIR=${X11INCDIR}/X11/extensions 78INCSDIR=${X11INCDIR}/X11/extensions
79 79
80PKGDIST= ${LIB} 80PKGDIST= ${LIB}
81 81
82COPTS.XExtInt.c+= -Wno-error # XXX 82COPTS.XExtInt.c+= -Wno-error # XXX
83COPTS.XSndExEv.c+= -Wno-error # XXX 83COPTS.XSndExEv.c+= -Wno-error # XXX
84 84
85CWARNFLAGS.clang+= -Wno-pointer-sign 85CWARNFLAGS.clang+= -Wno-pointer-sign
86 86
 87# libXi does not use __libmansuffix__ or @libmansuffix@ in its man pages
 88X11EXTRAMANDEFS = -e 's,libmansuffix,3,g'
 89
87# X Input v1 man pages 90# X Input v1 man pages
88MAN += XAllowDeviceEvents.3 91MAN += XAllowDeviceEvents.3
89MAN += XChangeDeviceDontPropagateList.3 92MAN += XChangeDeviceDontPropagateList.3
90MAN += XChangeKeyboardDevice.3 93MAN += XChangeKeyboardDevice.3
91MAN += XChangePointerDevice.3 94MAN += XChangePointerDevice.3
92MAN += XDeviceBell.3 95MAN += XDeviceBell.3
93MAN += XGetDeviceControl.3 96MAN += XGetDeviceControl.3
94MAN += XGetDeviceKeyMapping.3 97MAN += XGetDeviceKeyMapping.3
95MAN += XGetDeviceModifierMapping.3 98MAN += XGetDeviceModifierMapping.3
96MAN += XGetDeviceMotionEvents.3 99MAN += XGetDeviceMotionEvents.3
97MAN += XGetDeviceProperty.3 100MAN += XGetDeviceProperty.3
98MAN += XGetExtensionVersion.3 101MAN += XGetExtensionVersion.3
99MAN += XGetFeedbackControl.3 102MAN += XGetFeedbackControl.3