From 2fa5926207e2bc3c9eb7ed20bf67315d43dc95ba Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 7 Nov 2006 21:32:47 +0000 Subject: [PATCH] prevent recursive builds. It's a wonder it worked until now. --- x11/openmotif/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/x11/openmotif/Makefile b/x11/openmotif/Makefile index 59deec2075e..81561ef80df 100644 --- a/x11/openmotif/Makefile +++ b/x11/openmotif/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.26 2006/09/18 10:21:49 espie Exp $ +# $OpenBSD: Makefile,v 1.27 2006/11/07 21:32:47 espie Exp $ COMMENT= "Motif toolkit" COMMENT-debuglibs="Motif toolkit debug libraries" @@ -102,12 +102,16 @@ post-install: @for i in ${DOCS}; do ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCDIR}; done @${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${DOCDIR} -.if ${SUBPACKAGE} == "-demos" +.if defined(PACKAGING) +. if ${SUBPACKAGE} == "-demos" LIB_DEPENDS+= Xm.>=2.1,Uil.>=2.1,Mrm.>=2.1::x11/openmotif -.endif -.if ${SUBPACKAGE} == "-debuglibs" +. endif +. if ${SUBPACKAGE} == "-debuglibs" RUN_DEPENDS+= ::x11/openmotif -.else +. endif +.endif + +.if ${SUBPACKAGE} != "-debuglibs" WANTLIB= ICE SM X11 Xext Xp Xt c m .endif