summaryrefslogtreecommitdiff
path: root/x11-toolkits/Xaw3d
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-04-02 02:57:44 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-04-02 02:57:44 +0000
commit30fe50276dc1a3d4ba4a4ee7d6755e78579df3ce (patch)
tree7d2ddc280a914786e5433901314f6581345eaa77 /x11-toolkits/Xaw3d
parentuse CXX instead of c++ and don't compile with -g (diff)
stupid little hack to that links libXaw3d.so.7 to libXaw3d.so.6 when built
with XFree86 4.0 installed. This should solve the problem reported in PR 17340.
Notes
Notes: svn path=/head/; revision=27265
Diffstat (limited to 'x11-toolkits/Xaw3d')
-rw-r--r--x11-toolkits/Xaw3d/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile
index b381835bc2a0..1facf737fbbb 100644
--- a/x11-toolkits/Xaw3d/Makefile
+++ b/x11-toolkits/Xaw3d/Makefile
@@ -15,11 +15,20 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
USE_IMAKE= yes
+.if exists(${X11BASE}/bin/XFree86)
+PLIST= ${WRKDIR}/PLIST
+.endif
post-extract:
${MKDIR} ${WRKSRC}/X11/Xaw3d
cd ${WRKSRC}/X11/Xaw3d; ${LN} -sf ../../*.h .
+.if exists(${X11BASE}/bin/XFree86)
+post-build:
+ ${CP} ${PKGDIR}/PLIST ${WRKDIR}/PLIST
+ ${ECHO} "lib/libXaw3d.so.7" >> ${PLIST}
+.endif
+
# Workaround a bug in egcs on FreeBSD/Alpha.
.if ${MACHINE_ARCH} == "alpha"
post-configure:
@@ -31,6 +40,9 @@ post-install:
${LDCONFIG} -m ${PREFIX}/lib
${MKDIR} ${PREFIX}/share/doc/Xaw3d
${CP} ${WRKSRC}/README.XAW3D ${PREFIX}/share/doc/Xaw3d
+.if exists(${X11BASE}/bin/XFree86)
+ ${LN} ${X11BASE}/lib/libXaw3d.so.7 ${X11BASE}/lib/libXaw3d.so.6
+.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>