From b4f449a44c88169b771fe57069647d85cdc7d2db Mon Sep 17 00:00:00 2001
From: andreas <andreas@FreeBSD.org>
Date: Thu, 23 Nov 2000 06:20:17 +0000
Subject: hand maintenance of this port over to ports@FreeBSD.ORG due to lack
 of time for maintaining and testing. Maybe somebody other can do better than
 I.

---
 databases/postgresql7/Makefile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'databases/postgresql7')

diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile
index 1892695..58be0c5 100644
--- a/databases/postgresql7/Makefile
+++ b/databases/postgresql7/Makefile
@@ -20,12 +20,18 @@ DISTFILES=	${PORTNAME}-${PORTVERSION}.base${EXTRACT_SUFX} \
 #		${PORTNAME}-${PORTVERSION}.test${EXTRACT_SUFX}
 DIST_SUBDIR=	postgresql
 
-MAINTAINER=	andreas@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 
 Y2K=		http://www.postgresql.org/y2k.html
 
 INSTALLS_SHLIB=	YES
 LDCONFIG_DIRS=	%%PREFIX%%/pgsql/lib
+BUILD_DEPENDS=	autoconf:${PORTSDIR}/devel/autoconf
+
+.if defined(KRB5_HOME) && exists(${KRB5_HOME})
+CONFIGURE_KRB=	--with-krb5=${KRB5_HOME} \
+		--with-krb-keytab=FILE:${PREFIX}/pgsql/etc/keytab
+.endif
 
 # if you want to use the tcl/tk frontend pgaccess, then you need to build
 # postgresql with tcl support by typing: make -DWITH_TCL
@@ -80,6 +86,7 @@ CONFIGURE_ARGS=	--prefix=${PREFIX}/pgsql \
 		--enable-locale \
 		--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
 		--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \
+		${CONFIGURE_KRB} \
 		${CONFIGURE_TCL} \
 		${CONFIGURE_MULTIBYTE} \
 		${CONFIGURE_PERL} \
@@ -164,6 +171,13 @@ post-patch:
 		${WRKSRC}/Makefile.global.in.old \
 		>> ${WRKSRC}/Makefile.global.in
 
+#
+# USE_AUTOCONF implies GNU_CONFIGURE, which we don't want, so we have
+# to do it by hand.
+#
+pre-configure:
+	@(cd ${WRKSRC} && ${AUTOCONF})
+
 post-build:
 .if defined(WITH_JDBC)
 	@ cd ${WRKSRC}/interfaces/jdbc && ${GMAKE}
-- 
cgit v1.1