From 2013f63fc0873020123d86fed6ff27a5ae2da107 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Sun, 22 Aug 1999 08:30:17 +0000 Subject: [PATCH] Don't try to parse ${MOTIFLIB} if it's not defined. --- devel/ddd/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devel/ddd/Makefile b/devel/ddd/Makefile index 4e04e7a92dbd..9f19cfdc7792 100644 --- a/devel/ddd/Makefile +++ b/devel/ddd/Makefile @@ -4,7 +4,7 @@ # Date created: Tue Jan 28, 1997 # Whom: David O'Brien (obrien@NUXI.com) # -# $Id: Makefile,v 1.18 1999/08/19 03:09:20 green Exp $ +# $Id: Makefile,v 1.19 1999/08/20 10:21:06 asami Exp $ # DISTNAME= ddd-3.1.6 @@ -26,11 +26,15 @@ USE_GMAKE= yes REQUIRES_MOTIF= yes MAN1= ddd.1 +.if defined(MOTIFLIB) .if defined(MOTIF_STATIC) LIBXMDIR!= ${ECHO} ${MOTIFLIB} | sed -e 's/\/libXm\.a//g' | awk '{print $$1}' .else LIBXMDIR!= ${ECHO} ${MOTIFLIB} | sed -e 's/-L//g' | awk '{print $$1}' .endif +.else +LIBXMDIR= ${X11BASE} +.endif post-configure: ${ECHO} "LIBXM = ${MOTIFLIB}" >> ${WRKSRC}/ddd/Makefile