Subject: pkg/10619: Xaw3d package broken
To: <tech-pkg@netbsd.org>
From: abs <abs@purplei.com>
List: tech-pkg
Date: 12/05/2000 16:21:52
The version number for libXaw3d changed in XFree86 4.0, which
breaks the PLIST.
We can extract SharedXawRev from ${X11BASE}/lib/X11/config/X11.tmpl
and use that to substitute in the PLIST, but it feels untidy.
What do people think of the following (tested under XFree86 3.3.6
and 4.0.1)
> --- Makefile 1999/10/07 17:41:59 1.20
> +++ Makefile 2000/12/05 16:15:30
> @@ -12,6 +12,7 @@
> USE_IMAKE= yes
> WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
> PLIST_SRC= ${WRKDIR}/PLIST-src
> +PLIST_SUBST= XAWREV=${XAWREV}
>
> post-extract:
> @(cd ${WRKSRC}; ${LN} -s .. X11)
> @@ -27,3 +28,5 @@
> fi
>
> .include "../../mk/bsd.pkg.mk"
> +
> +XAWREV!=awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/X11/config/X11.tmpl
> --- pkg/PLIST 1998/07/15 10:45:36 1.7
> +++ pkg/PLIST 2000/12/05 16:15:30
> @@ -75,7 +75,7 @@
> include/X11/Xaw3d/XawImP.h
> include/X11/Xaw3d/XawInit.h
> lib/libXaw3d.a
> -lib/libXaw3d.so.6.1
> +lib/libXaw3d.so.${XAWREV}
> share/doc/Xaw3d/README.XAW3D
> @dirrm share/doc/Xaw3d
> @dirrm include/X11/Xaw3d
>
>