aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorlesi <lesi@FreeBSD.org>2005-01-11 03:12:13 +0800
committerlesi <lesi@FreeBSD.org>2005-01-11 03:12:13 +0800
commit39be491e4ada738646ffda083986714357a25adf (patch)
tree3b31cd09864de7ab98133c217e57104afde88cf5 /x11-toolkits
parent70db3083bcc39ef67c5ec927e3a9e737816685be (diff)
downloadfreebsd-ports-gnome-39be491e4ada738646ffda083986714357a25adf.tar.gz
freebsd-ports-gnome-39be491e4ada738646ffda083986714357a25adf.tar.zst
freebsd-ports-gnome-39be491e4ada738646ffda083986714357a25adf.zip
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
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/Xaw3d/Makefile5
-rw-r--r--x11-toolkits/Xaw3d/pkg-message4
2 files changed, 7 insertions, 2 deletions
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile
index 7581a5c34410..bac6290453f9 100644
--- a/x11-toolkits/Xaw3d/Makefile
+++ b/x11-toolkits/Xaw3d/Makefile
@@ -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"
diff --git a/x11-toolkits/Xaw3d/pkg-message b/x11-toolkits/Xaw3d/pkg-message
index d617db38a991..541043796346 100644
--- a/x11-toolkits/Xaw3d/pkg-message
+++ b/x11-toolkits/Xaw3d/pkg-message
@@ -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%%
*******************************************************************