summaryrefslogtreecommitdiff
path: root/databases/postgresql74
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2005-09-12 13:19:22 +0000
committerhira <hira@pkgsrc.org>2005-09-12 13:19:22 +0000
commitec14506a7e67a26d9362f7c269e9930e6bf0b86f (patch)
treee60f9fe75656ae60fc5640cba6fd837681495b2a /databases/postgresql74
parent5ac9a8d3861da88423f3d607497252f3e029e7e3 (diff)
downloadpkgsrc-ec14506a7e67a26d9362f7c269e9930e6bf0b86f.tar.gz
- Add check for the existence of directory before using it.
- Use ${ECHO} instead of echo.
Diffstat (limited to 'databases/postgresql74')
-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 \