From 48e7c394714d49c72ec8cefabd66e4f101678940 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 4 Feb 2007 22:41:19 +0000 Subject: Protect the c-sdk LDAP reinplaces with a test to make sure the c-sdk directory exists. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8286 df743ca5-7f9a-e211-a948-0013205c9059 --- www/mozilla/Makefile.common | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'www') diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common index 9f64f93b9..22f48d7ad 100644 --- a/www/mozilla/Makefile.common +++ b/www/mozilla/Makefile.common @@ -4,7 +4,7 @@ # Whom: Michael Johnson # # $FreeBSD$ -# $MCom: ports/www/mozilla/Makefile.common,v 1.42 2007/01/14 08:25:35 marcus Exp $ +# $MCom: ports/www/mozilla/Makefile.common,v 1.43 2007/02/04 01:41:08 marcus Exp $ # This file contains some reusable components for mozilla ports. It's of # use primarily to apps from the mozilla project itself (such as Firefox, @@ -285,9 +285,11 @@ gecko-post-patch: s|echo aout|echo elf|g' \ ${WRKSRC}/security/coreconf/FreeBSD.mk \ ${WRKSRC}/js/src/Makefile.in - @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \ - ${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \ - ${WRKSRC}/directory/c-sdk/configure + @if [ -d ${WRKSRC}/directory/c-sdk ]; then \ + ${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \ + ${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 ; \ -- cgit v1.2.3