postgresql-tcl stable port information

Package: postgresql-tcl
Version: 8.2.21
Revision: 2
Distribution: 10.4, 10.5, 10.6
Description: PostgreSQL TCL tools
License: BSD
Maintainer: Benjamin Reed

Depends: <<
postgresql82-shlibs,
postgresql82,
tcltk
<<
BuildDepends: <<
fink (>= 0.30.0-1),
fink-mirrors (>= 0.28.7.1-2),
tcltk,
tcltk-dev,
postgresql82-dev,
bison,
readline5,
system-openssl-dev
<<
BuildConflicts: lclint
Conflicts: postgresql-ssl-tcl (<< %v-%r)
Replaces: <<
postgresql-ssl-tcl (<< %v-%r),
postgresql,
postgresql-ssl
<<

Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
Source-MD5: 6f61c428e6c4acf8619a5534d0c283ac
Source2: http://pgfoundry.org/frs/download.php/2151/libpgtcl-1.7.tar.gz
Source2-MD5: e71ed886d5de5f5f455bc02136494448
PatchScript: sed 's|@INSTPREFIX@|%p|g' < %{PatchFile} | patch -p1
PatchFile: postgresql82.patch
PatchFile-MD5: 964107a0f601e15937e79df17ffea814

SetCPPFLAGS: -I%p/include/postgresql -I%p/include
SetLIBS: -L%p/lib -lpq
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: true
ConfigureParams: --prefix=%p --with-docdir=%p/share/doc --mandir=%p/share/man --enable-multibyte --enable-recode --with-CXX --without-perl --without-python --with-openssl --with-libraries=%p/lib --with-includes=%p/include --with-tcl --with-tclconfig=%p/lib --with-tkconfig=%p/lib --without-java --enable-odbc --with-pam --with-rendezvous
CompileScript: <<
#!/bin/sh -ev

export lt_cv_sys_max_cmd_len=65536
export CPPFLAGS="-I%p/lib/system-openssl/include -I%p/include/postgresql -I%p/include -DHAVE_OPTRESET -fno-common"
export LDFLAGS="-L%p/lib/system-openssl/lib -L%p/lib"

pushd ../libpgtcl-1.7
./configure --prefix=%p --with-postgres-lib=%p/lib --with-postgres-include=%p/include/postgresql --with-tcl=%p/lib
make binaries libraries
popd

./configure %c

pushd src/pl/tcl
make BE_DLLLIBS="-bundle_loader %p/bin/postgres-8.2"
popd
<<

InstallScript: <<
#!/bin/sh -ev

pushd ../libpgtcl-1.7
make -j1 install-binaries install-libraries DESTDIR=%d
popd

pushd src/pl/tcl
make -j1 install DESTDIR=%d INSTALLSITEMAN3DIR=%i/share/man/man3
popd

install_name_tool -id %p/lib/pgtcl1.7/libpgtcl1.7.dylib %i/lib/pgtcl1.7/libpgtcl1.7.dylib

rm -R %i/include
<<
DocFiles: COPYRIGHT HISTORY INSTALL
SplitOff2: <<
Package: postgresql-ssl-tcl
Depends: postgresql-tcl (>= %v-%r)
DocFiles: COPYRIGHT HISTORY INSTALL
<<
Shlibs: !%p/lib/pgtcl1.7/libpgtcl1.7.dylib

PostInstScript: <<
cat < *** WARNING ***

To be able to use this (pltcl) in PostgreSQL, you will need to
start your database:

sudo %p/bin/pgsql.sh start

...and then run:

sudo -u postgres %p/bin/createlang pltcl template1

...or, for the "untrusted" interpreter:

sudo -u postgres %p/bin/createlang pltclu template1

*** WARNING ***
END
<<
PreRmScript: <<
if [ "$1" != "upgrade" ]; then
sudo -u postgres %p/bin/droplang pltcl template1 >/dev/null 2>&1 || :
fi
<<

Homepage: http://www.postgresql.org/
DescDetail: <<
To be able to use this (pltcl) in PostgreSQL, you will need to
start your database:

sudo %p/bin/pgsql.sh start

...and then run:

sudo -u postgres %p/bin/createlang pltcl template1

...or, for the "untrusted" interpreter:

sudo -u postgres %p/bin/createlang pltclu template1
<<