Modify pkg-message on the fly to get proper library version in message.

The version of Xaw3d library depends on version of Xaw library installed by
XFree86, XFree86-4-libraries or xorg-libraries. Since Xaw version was
bumped with X.Org 6.8.1, bump PORTREVISION of this port to help people
updating (XAWVER in bsd.port.mk was already bumped).

Prodded by:	kris
Pointy hat to:	lesi
This commit is contained in:
Dejan Lesjak 2005-01-10 19:12:13 +00:00
parent 1fb28811ae
commit dbfd94763d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126074
2 changed files with 7 additions and 2 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= Xaw3d
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= widgets/Xaw3d/R6.3
@ -18,6 +19,9 @@ WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
USE_IMAKE= yes
INSTALLS_SHLIB= yes
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
PLIST_FILES= lib/libXaw3d.so.6
@ -26,6 +30,7 @@ PLIST_FILES= lib/libXaw3d.so.6
post-extract:
${MKDIR} ${WRKSRC}/X11/Xaw3d
cd ${WRKSRC}/X11/Xaw3d; ${LN} -sf ../../*.h .
${SED} 's|%%XAWVER%%|${XAWVER}|g' ${MSG_FILE} > ${PKGMESSAGE}
# Workaround a bug in egcs on FreeBSD/Alpha.
.if ${MACHINE_ARCH} == "alpha"

View file

@ -3,6 +3,6 @@ If you want Xaw3d to replace the default Athena Widget Set
so most X applications will get a 3-D look, do this (as root):
cd /usr/X11R6/lib
mv libXaw.so.6 libXaw2d.so.6
ln -s libXaw3d.so.6 libXaw.so.6
mv libXaw.so.%%XAWVER%% libXaw2d.so.%%XAWVER%%
ln -s libXaw3d.so.%%XAWVER%% libXaw.so.%%XAWVER%%
*******************************************************************