mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
9c89540227
Prevent overrunning a heap-allocated buffer if more than 1024 parameters to a refcursor declaration are specified. This is a minimally-invasive fix for the buffer overrun. Define LATEST_LINK to avoid package name clashes between the different branches of PostgreSQL. [1] (Since postgresql-tcltk is hardwired to branch 7.4, keep its LATEST_LINK to a generic value.) Set UNIQUENAME and let it be the same for server & client, so each branch's ports will share the same options file. This adds some no-op knobs to the -client port, but IMO it is better this way. Add space inside paranthesis in OSVERSION conditional to work around (ancient) make bug. [2] Remove the Rendez-Vouz knob for 8.0 since I can't find the software needed to even compile it on FreeBSD. Bump portrevision (for -server only). Noted by: kris [1] PR: ports/77530 [2] Security: http://www.vuxml.org/freebsd/6b4b0b3f-8127-11d9-a9e7-0001020eed82.html Approved by: seanc (mentor)
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
# New ports collection makefile for: PostgreSQL Tcl/Tk
|
|
# Date created: January 14, 2002
|
|
# Whom: Palle Girgensohn <girgen@partitur.se>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= postgresql
|
|
PORTREVISION= 0
|
|
CATEGORIES?= databases tcl${TCLVERSION:C/[^0-9]//g}
|
|
PKGNAMESUFFIX= -tcltk
|
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
|
COMMENT= A TCL interface to the database PostgreSQL, including a tk GUI
|
|
|
|
TCLPORTDIR?= ${PORTSDIR}/lang/tcl
|
|
TKPORTDIR?= ${PORTSDIR}/x11-toolkits/tk
|
|
LIB_DEPENDS= tcl${TCLVERSION:S/.//}:${TCLPORTDIR}${TCLVERSION:C/[^0-9]//g}
|
|
|
|
USE_PGSQL= yes
|
|
MASTERDIR= ${.CURDIR}/../../databases/postgresql74-server
|
|
|
|
CONFLICTS= ${PORTNAME}${PKGNAMESUFFIX}-7.[0-3]*
|
|
|
|
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
# you can use "make TCLVERSION=8.4" or similar for your favourite tcl version
|
|
TCLVERSION?= 8.4
|
|
PLIST_SUB+= TCLVERSION=${TCLVERSION}
|
|
CONFIGURE_ARGS= --with-tcl \
|
|
--with-tclconfig=${TCLCONFIG} \
|
|
--with-includes=${INCDIRS}
|
|
|
|
TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION}
|
|
TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION}
|
|
MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR}
|
|
CONFIGURE_ENV+= LIBS="-lm -L${LOCALBASE}/lib -ltcl${TCLVERSION:S/.//}" \
|
|
CFLAGS=-DPGTCL_USE_TCLOBJ
|
|
|
|
.if defined(WITHOUT_X11)
|
|
WITHOUT_TK= yes
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= LIBS="-lm -L${LOCALBASE}/lib -ltcl${TCLVERSION:S/.//}" \
|
|
CFLAGS=-DPGTCL_USE_TCLOBJ
|
|
|
|
.if defined(WITHOUT_TK)
|
|
CONFIGURE_ARGS+= --without-tk
|
|
INCDIRS= ${TCL_INCDIR}
|
|
PLIST_SUB+= TK="@comment "
|
|
.else
|
|
CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}"
|
|
TK_INCDIR= ${LOCALBASE}/include/tk${TCLVERSION}
|
|
CONFIGURE_ENV+= WISH=${LOCALBASE}/bin/wish${TCLVERSION}
|
|
LIB_DEPENDS+= tk${TCLVERSION:S/.//}:${TKPORTDIR}${TCLVERSION:C/[^0-9]//g}
|
|
TKCONFIG= ${LOCALBASE}/lib/tk${TCLVERSION}
|
|
INCDIRS= ${TCL_INCDIR}:${TK_INCDIR}
|
|
PLIST_SUB+= TK=""
|
|
CATEGORIES+= tk${TCLVERSION:C/[^0-9]//g}
|
|
.endif
|
|
|
|
BUILD_DIRS= src/port ${INSTALL_DIRS}
|
|
INSTALL_DIRS= src/bin/pgtclsh src/interfaces/libpgtcl
|
|
SLAVE_ONLY= yes
|
|
|
|
post-install:
|
|
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
|
@${MKDIR} ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
|
> ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3/pkgIndex.tcl
|
|
|
|
.include "${MASTERDIR}/Makefile"
|