From 5f48fd7061e055fa8057f196328c5ce058648d16 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 11 Mar 2001 09:45:40 +0000 Subject: Make this package build with OpenWindows under Solaris. Fixes PR pkg/11640 by Hauke Fath. --- x11/Xaw3d/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/x11/Xaw3d/Makefile b/x11/Xaw3d/Makefile index 0d50571fc7e..ebb17ba6a75 100644 --- a/x11/Xaw3d/Makefile +++ b/x11/Xaw3d/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2001/02/25 04:18:25 hubertf Exp $ +# $NetBSD: Makefile,v 1.24 2001/03/11 09:45:40 tron Exp $ # DISTNAME= Xaw3d-1.5 @@ -15,9 +15,18 @@ WRKSRC= ${WRKDIR}/xc/lib/Xaw3d PLIST_SRC= ${WRKDIR}/PLIST-src PLIST_SUBST= XAWREV=${XAWREV} +.include "../../mk/bsd.prefs.mk" + post-extract: @(cd ${WRKSRC}; ${LN} -s .. X11) +.if (${OPSYS} == SunOS) && (${X11BASE} == /usr/openwin) +post-configure: + cd ${WRKSRC}; \ + ${SED} -e 's#^ SERVER#SERVER#' <${MAKEFILE} >${MAKEFILE}.sed; \ + ${MV} ${MAKEFILE}.sed ${MAKEFILE} +.endif + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/Xaw3d ${INSTALL_DATA} ${WRKSRC}/README.XAW3D ${PREFIX}/share/doc/Xaw3d @@ -30,4 +39,8 @@ post-install: .include "../../mk/bsd.pkg.mk" +.if (${OPSYS} == SunOS) && (${X11BASE} == /usr/openwin) +XAWREV!=awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/config/sv4Lib.tmpl +.else XAWREV!=awk '/define.*SharedXawRev/{print $$3}' ${X11BASE}/lib/X11/config/X11.tmpl +.endif -- cgit v1.2.3