summaryrefslogtreecommitdiff
path: root/databases/postgresql93-client
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2013-12-01 23:51:02 +0000
committerbsiegert <bsiegert>2013-12-01 23:51:02 +0000
commit540ec1deb2d52378a3dbb6d9ca27f4777863f5aa (patch)
tree001559013409e517102d6faf94ec2c2b7ba58d8c /databases/postgresql93-client
parent42553157e99495a6db3029a787baa0a6290e4c23 (diff)
downloadpkgsrc-540ec1deb2d52378a3dbb6d9ca27f4777863f5aa.tar.gz
Fix MirBSD build.
Diffstat (limited to 'databases/postgresql93-client')
-rw-r--r--databases/postgresql93-client/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/databases/postgresql93-client/Makefile b/databases/postgresql93-client/Makefile
index fd672dcd25d..293fa754e39 100644
--- a/databases/postgresql93-client/Makefile
+++ b/databases/postgresql93-client/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/10/04 18:23:40 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2013/12/01 23:51:02 bsiegert Exp $
PKGNAME= ${DISTNAME:C/-/93-client-/}
COMMENT= PostgreSQL database client programs
@@ -10,15 +10,17 @@ CONFIGURE_ARGS+= --with-openssl
CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --with-zlib
+.include "../../mk/bsd.prefs.mk"
+
.if ${OPSYS} == "Cygwin"
INSTALLATION_DIRS+= bin
.endif
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
-# NetBSD earler than 4.0 or DragonFly.
+# NetBSD earlier than 4.0 or DragonFly.
# 2. configure with --enable-thread-safety fails on OpenBSD.
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
- ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
+ ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
PGSQL_THREAD_SAFETY?= no
.endif
PGSQL_THREAD_SAFETY?= yes
@@ -29,6 +31,12 @@ BUILD_DEFS+= PGSQL_THREAD_SAFETY
. if (${PTHREAD_TYPE} == "native")
CONFIGURE_ARGS+= --enable-thread-safety
. endif
+.else
+CONFIGURE_ARGS+= --disable-thread-safety
+.endif
+
+.if ${OPSYS} == "MirBSD"
+CONFIGURE_ARGS+= --with-template=openbsd
.endif
INSTALL_DIRS= src/include