summaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/Xaw3d/Makefile9
-rw-r--r--x11-toolkits/Xaw3d/files/pkg-message.in (renamed from x11-toolkits/Xaw3d/pkg-message)2
2 files changed, 5 insertions, 6 deletions
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile
index f119442..885fb34 100644
--- a/x11-toolkits/Xaw3d/Makefile
+++ b/x11-toolkits/Xaw3d/Makefile
@@ -18,8 +18,8 @@ WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
USE_IMAKE= yes
INSTALLS_SHLIB= yes
-MSG_FILE= ${PKGDIR}/pkg-message
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= XAWVER="${XAWVER}"
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
@@ -29,7 +29,6 @@ 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"
@@ -39,8 +38,8 @@ post-configure:
.endif
post-install:
- ${MKDIR} ${PREFIX}/share/doc/Xaw3d
- ${CP} ${WRKSRC}/README.XAW3D ${PREFIX}/share/doc/Xaw3d
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.XAW3D ${DOCSDIR}
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
${LN} -sf libXaw3d.so.${XAWVER} ${X11BASE}/lib/libXaw3d.so.6
.endif
diff --git a/x11-toolkits/Xaw3d/pkg-message b/x11-toolkits/Xaw3d/files/pkg-message.in
index 5410437..6bfd4a6 100644
--- a/x11-toolkits/Xaw3d/pkg-message
+++ b/x11-toolkits/Xaw3d/files/pkg-message.in
@@ -2,7 +2,7 @@
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
+cd %%X11BASE%%/lib
mv libXaw.so.%%XAWVER%% libXaw2d.so.%%XAWVER%%
ln -s libXaw3d.so.%%XAWVER%% libXaw.so.%%XAWVER%%
*******************************************************************
OpenPOWER on IntegriCloud