diff options
author | tron <tron@pkgsrc.org> | 2001-03-11 10:01:39 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-03-11 10:01:39 +0000 |
commit | cf74f995fa524081a7599dd62bc5b16a65f9561d (patch) | |
tree | d3f552c5d5eecbcfebea0c071f59679f07a191f0 /x11 | |
parent | 7ba19104247048df7a2047f7f08deb67862f1220 (diff) | |
download | pkgsrc-cf74f995fa524081a7599dd62bc5b16a65f9561d.tar.gz |
Calculate major number of "Xaw3d" shared library from "${XAWREV}" and
create a missing symbolic link under Solaris.
Diffstat (limited to 'x11')
-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 |