summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-12 02:02:07 +0000
committergrant <grant@pkgsrc.org>2004-06-12 02:02:07 +0000
commitcacfe89a6072650c67a41f2e9f20ffee1c596b79 (patch)
tree380bbe391c375284ffe28c2499d8662d304d360d /databases
parent7ee7f4c84ebede9bca924553ec897ef29a35ec05 (diff)
downloadpkgsrc-cacfe89a6072650c67a41f2e9f20ffee1c596b79.tar.gz
work around this version setting localedir in autoconf stuff (and not
Makefiles) by using SUBST_SED instead of USE_PKGLOCALEDIR. partially fixes install on Solaris.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql74/Makefile.common11
1 files changed, 9 insertions, 2 deletions
diff --git a/databases/postgresql74/Makefile.common b/databases/postgresql74/Makefile.common
index ca6671c838f..bf65cd72fce 100644
--- a/databases/postgresql74/Makefile.common
+++ b/databases/postgresql74/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2004/06/11 10:49:36 grant Exp $
+# $NetBSD: Makefile.common,v 1.5 2004/06/12 02:02:07 grant Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -43,10 +43,17 @@ BUILDLINK_DEPENDS.tcl-postgresql?= tcl-postgresql>=${BASE_VERS}
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
BUILD_USES_MSGFMT= yes
-USE_PKGLOCALEDIR= yes
USE_GNU_TOOLS+= lex make yacc
PKG_SYSCONFSUBDIR= postgresql
+# USE_PKGLOCALEDIR= yes
+# in 7.4.2, this is done by autoconf stuff which has leading whitespace
+SUBST_CLASSES+= pkglocaledir
+SUBST_MESSAGE.pkglocaledir= "Fixing locale directory references."
+SUBST_FILES.pkglocaledir= configure config/programs.m4
+SUBST_STAGE.pkglocaledir= post-patch
+SUBST_SED.pkglocaledir= -e 's|\( localedir[ :]*=\).*|\1${_PKGLOCALEDIR}|'
+
.include "../../mk/bsd.prefs.mk"
# Add support for hierarchical queries with Oracle like CONNECT BY syntax.