diff options
author | jlam <jlam> | 1999-09-20 03:56:25 +0000 |
---|---|---|
committer | jlam <jlam> | 1999-09-20 03:56:25 +0000 |
commit | daf83a0d4e635dc8d984b2c76eb164ec235a6250 (patch) | |
tree | 07c01803786655f1b7be406951f6851ecabb7404 | |
parent | e308a2d73561b39eaa990fc082933bb89b70704f (diff) | |
download | pkgsrc-daf83a0d4e635dc8d984b2c76eb164ec235a6250.tar.gz |
Change the semantics of PGSQL_USE_TCL to be YES/NO, defaulting to YES since
the old 6.4.2 package included the Tcl/Tk stuff. "Backwards compatible
upgrade."
-rw-r--r-- | databases/postgresql/Makefile | 33 | ||||
-rw-r--r-- | mk/mk.conf.example | 6 |
2 files changed, 23 insertions, 16 deletions
diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile index 52bd447c3d9..b97420a998e 100644 --- a/databases/postgresql/Makefile +++ b/databases/postgresql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 1999/09/19 04:24:53 jlam Exp $ +# $NetBSD: Makefile,v 1.41 1999/09/20 03:56:25 jlam Exp $ # FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp # @@ -36,11 +36,16 @@ HAS_CONFIGURE= YES .include "../../mk/bsd.prefs.mk" -# If you want to use the tcl/tk frontend pgaccess, then you need to build -# postgresql with tcl support by defining `PGSQL_USE_TCL=' in /etc/mk.conf -# or by typing: ${MAKE} PGSQL_USE_TCL=. +# If you don't want to use the Tcl/Tk frontend pgaccess, then you need to +# remove Tcl/Tk support by defining `PGSQL_USE_TCL=NO' in /etc/mk.conf +# or by typing: ${MAKE} PGSQL_USE_TCL=NO. # -.if defined(PGSQL_USE_TCL) + +# Default to building with Tcl/Tk interface. +# +PGSQL_USE_TCL?= YES + +.if (${PGSQL_USE_TCL} == "YES") DEPENDS+= tcl-8.0.5:../../lang/tcl80 DEPENDS+= tk-8.0.5:../../x11/tk80 @@ -63,12 +68,12 @@ PGUSER?= pgsql PGGROUP?= ingres PGPREFIX= ${PREFIX}/${PGUSER} -BUILD_DEFS= PGUSER PGROUP +BUILD_DEFS= PGUSER PGROUP PGSQL_USE_TCL MESSAGE_FILE= ${FILESDIR}/post-install-notes REQ_FILE= ${WRKDIR}/REQ PLIST_SRC= ${PKGDIR}/PLIST.notcl -.if defined(PGSQL_USE_TCL) +.if (${PGSQL_USE_TCL} == "YES") PLIST_SRC+= ${PKGDIR}/PLIST.tcl .endif PLIST_SRC+= ${PKGDIR}/PLIST.doc ${PKGDIR}/PLIST.dirrm @@ -98,16 +103,18 @@ pre-extract: ${ECHO} ""; \ ${FALSE}; \ fi) -.if defined(PGSQL_USE_TCL) + +post-extract: + @${CP} ${FILESDIR}/Makefile.custom ${WRKSRC} + +pre-build: +.if ${PGSQL_USE_TCL} == "YES" @${ECHO} "Building PostgreSQL with \"libpgtcl\"." .else - @${ECHO} "To build the \"PostgreSQL Tcl interface library\"," - @${ECHO} "libpgtcl, type: \"${MAKE} PGSQL_USE_TCL=\"." + @${ECHO} "To build without the \"PostgreSQL Tcl interface library\"," + @${ECHO} "libpgtcl, type: \"${MAKE} PGSQL_USE_TCL=NO\"." .endif -pre-build: - @${CP} ${FILESDIR}/Makefile.custom ${WRKSRC} - post-build: @${ECHO} "------------------------------------------------------------" @${ECHO} "Dump existing databases, before installing new db version !!" diff --git a/mk/mk.conf.example b/mk/mk.conf.example index 75fdc2e745c..e91b92516a9 100644 --- a/mk/mk.conf.example +++ b/mk/mk.conf.example @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf.example,v 1.76 1999/09/19 04:29:11 jlam Exp $ +# $NetBSD: mk.conf.example,v 1.77 1999/09/20 03:56:26 jlam Exp $ # # Sample /etc/mk.conf file, which can be used to set specific values @@ -335,8 +335,8 @@ PAPERSIZE= A4 # Default paper size for packages. #PGSQL_USE_TCL= # Used in postgresql package to enable # building the Tcl/Tk interface. - # Possible: defined, not defined - # Default: not defined + # Possible: YES, NO + # Default: YES #QPOPPER_SERVERMODE=yes # Used in qpopper package to enable server # mode. |