diff options
author | tron <tron> | 2001-03-11 10:01:39 +0000 |
---|---|---|
committer | tron <tron> | 2001-03-11 10:01:39 +0000 |
commit | b125a242981a04c0644efc6ac9ece975f295cc3c (patch) | |
tree | d3f552c5d5eecbcfebea0c071f59679f07a191f0 /x11/Xaw3d | |
parent | e3fd91f9e945032021ff03c3eaaddffd5a1a9257 (diff) | |
download | pkgsrc-b125a242981a04c0644efc6ac9ece975f295cc3c.tar.gz |
Calculate major number of "Xaw3d" shared library from "${XAWREV}" and
create a missing symbolic link under Solaris.
Diffstat (limited to 'x11/Xaw3d')
-rw-r--r-- | x11/Xaw3d/Makefile | 15 | ||||
-rw-r--r-- | x11/Xaw3d/pkg/PLIST | 4 |
2 files changed, 12 insertions, 7 deletions
diff --git a/x11/Xaw3d/Makefile b/x11/Xaw3d/Makefile index ebb17ba6a75..171fda21231 100644 --- a/x11/Xaw3d/Makefile +++ b/x11/Xaw3d/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2001/03/11 09:45:40 tron Exp $ +# $NetBSD: Makefile,v 1.25 2001/03/11 10:01:39 tron Exp $ # DISTNAME= Xaw3d-1.5 @@ -13,14 +13,14 @@ CONFLICTS= Xaw-Xpm-* USE_IMAKE= yes WRKSRC= ${WRKDIR}/xc/lib/Xaw3d PLIST_SRC= ${WRKDIR}/PLIST-src -PLIST_SUBST= XAWREV=${XAWREV} +PLIST_SUBST= XAWREV=${XAWREV} XAWMAJOR=${XAWMAJOR} .include "../../mk/bsd.prefs.mk" post-extract: @(cd ${WRKSRC}; ${LN} -s .. X11) -.if (${OPSYS} == SunOS) && (${X11BASE} == /usr/openwin) +.if (${OPSYS} == SunOS) post-configure: cd ${WRKSRC}; \ ${SED} -e 's#^ SERVER#SERVER#' <${MAKEFILE} >${MAKEFILE}.sed; \ @@ -36,11 +36,16 @@ post-install: ${SED} -e '/lib\/libXaw3d\.a/d' \ < ${PKGDIR}/PLIST > ${PLIST_SRC}; \ fi +.if (${OPSYS} == SunOS) + ${RM} -f ${PREFIX}/lib/libXaw3d.so.${XAWMAJOR} + ${LN} -s libXaw3d.so.${XAWREV} ${PREFIX}/lib/libXaw3d.so.${XAWMAJOR} +.endif .include "../../mk/bsd.pkg.mk" .if (${OPSYS} == SunOS) && (${X11BASE} == /usr/openwin) -XAWREV!=awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/config/sv4Lib.tmpl +XAWREV!= awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/config/sv4Lib.tmpl .else -XAWREV!=awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/X11/config/X11.tmpl +XAWREV!= awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/X11/config/X11.tmpl .endif +XAWMAJOR= ${XAWREV:C/\..*//} diff --git a/x11/Xaw3d/pkg/PLIST b/x11/Xaw3d/pkg/PLIST index b50425c851a..0b0514e8f57 100644 --- a/x11/Xaw3d/pkg/PLIST +++ b/x11/Xaw3d/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.9 2001/01/04 15:10:59 agc Exp $ +@comment $NetBSD: PLIST,v 1.10 2001/03/11 10:01:40 tron Exp $ include/X11/Xaw3d/AllWidgets.h include/X11/Xaw3d/AsciiSink.h include/X11/Xaw3d/AsciiSinkP.h @@ -76,7 +76,7 @@ include/X11/Xaw3d/XawImP.h include/X11/Xaw3d/XawInit.h lib/libXaw3d.a lib/libXaw3d.so -lib/libXaw3d.so.6 +lib/libXaw3d.so.${XAWMAJOR} lib/libXaw3d.so.${XAWREV} share/doc/Xaw3d/README.XAW3D @dirrm share/doc/Xaw3d |