summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorhira <hira>2005-09-12 13:19:22 +0000
committerhira <hira>2005-09-12 13:19:22 +0000
commite32bd7d41eb727811ccad8c77ebcae2020a75d2b (patch)
treee60f9fe75656ae60fc5640cba6fd837681495b2a /databases
parent774a9fdeebf744c142b06b23a0f8c9f4f15ad50d (diff)
downloadpkgsrc-e32bd7d41eb727811ccad8c77ebcae2020a75d2b.tar.gz
- Add check for the existence of directory before using it.
- Use ${ECHO} instead of echo.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql74/Makefile.common12
1 files changed, 7 insertions, 5 deletions
diff --git a/databases/postgresql74/Makefile.common b/databases/postgresql74/Makefile.common
index d929a433258..aae761296f3 100644
--- a/databases/postgresql74/Makefile.common
+++ b/databases/postgresql74/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.25 2005/07/13 15:32:40 jschauma Exp $
+# $NetBSD: Makefile.common,v 1.26 2005/09/12 13:19:22 hira Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -94,10 +94,12 @@ post-extract:
${WRKSRC}/src/Makefile.custom; \
fi
.for platform in irix5
- echo "THREAD_LIBS=\"-lpthread\"" >> \
- ${WRKSRC}/src/template/${platform}; \
- echo "THREAD_SUPPORT=yes" >> \
- ${WRKSRC}/src/template/${platform};
+ if [ -d ${WRKSRC}/src/template ]; then \
+ ${ECHO} "THREAD_LIBS=\"-lpthread\"" >> \
+ ${WRKSRC}/src/template/${platform}; \
+ ${ECHO} "THREAD_SUPPORT=yes" >> \
+ ${WRKSRC}/src/template/${platform}; \
+ fi
.endfor
.for platform in interix3
if [ -d ${WRKSRC}/src/template ]; then \