pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/postgresql74 work around this version settin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/117ad4f1033f
branches:  trunk
changeset: 476488:117ad4f1033f
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Jun 12 02:02:07 2004 +0000

description:
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:

 databases/postgresql74/Makefile.common |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 2eb13deb3789 -r 117ad4f1033f databases/postgresql74/Makefile.common
--- a/databases/postgresql74/Makefile.common    Sat Jun 12 01:37:39 2004 +0000
+++ b/databases/postgresql74/Makefile.common    Sat Jun 12 02:02:07 2004 +0000
@@ -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 @@
 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.



Home | Main Index | Thread Index | Old Index