Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2012 14:19:16 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r738 - branches/experimental/Mk
Message-ID:  <201206081419.q58EJGs7002291@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Jun  8 14:19:15 2012
New Revision: 738

Log:
protect against non-existing configure file

Modified:
   branches/experimental/Mk/bsd.gecko.mk

Modified: branches/experimental/Mk/bsd.gecko.mk
==============================================================================
--- branches/experimental/Mk/bsd.gecko.mk	Fri Jun  8 14:16:54 2012	(r737)
+++ branches/experimental/Mk/bsd.gecko.mk	Fri Jun  8 14:19:15 2012	(r738)
@@ -808,11 +808,13 @@
 			${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \
 			${WRKSRC}/directory/c-sdk/configure ; \
 	fi
-	@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
-		s|-lpthread|${PTHREAD_LIBS}|g ; \
-		s|echo aout|echo elf|g ; \
-		s|/usr/X11R6|${LOCALBASE}|g' \
-		${WRKSRC}/configure
+	@if [ -f ${WRKSRC}/configure ] ; then \
+		${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
+			s|-lpthread|${PTHREAD_LIBS}|g ; \
+			s|echo aout|echo elf|g ; \
+			s|/usr/X11R6|${LOCALBASE}|g' \
+			${WRKSRC}/configure; \
+	fi
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
 		s|%%LOCALBASE%%|${LOCALBASE}|g' \
 			${MOZSRC}/build/unix/run-mozilla.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206081419.q58EJGs7002291>