1999-11-10 21:24:29 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.16 1999/11/11 02:24:29 kevlo Exp $
|
1999-04-01 01:20:02 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.25 1998/04/22 08:28:07 asami Exp $
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
DISTNAME= postgresql-6.5.2
|
1997-11-20 15:34:05 -05:00
|
|
|
CATEGORIES= databases
|
1998-10-08 00:42:57 -04:00
|
|
|
|
1999-02-20 23:26:09 -05:00
|
|
|
NEED_VERSION= 1.64
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
MAINTAINER= form@OpenBSD.ORG
|
1998-10-08 00:42:57 -04:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
MASTER_SITES= ftp://ftp.postgresql.org/pub/ \
|
|
|
|
ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/ \
|
|
|
|
ftp://ftp.cwb.fnn.net/pub/Linux/postgresql/ \
|
|
|
|
ftp://looking-glass.usask.ca/pub/postgresql/ \
|
|
|
|
ftp://linux.netfirm.net/pub/Linux/PostgreSQL/ \
|
|
|
|
ftp://sunsite.uniandes.edu.co/pub/postgresql/ \
|
|
|
|
ftp://ftp.fi.muni.cz/pub/postgresql/ \
|
|
|
|
ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/ \
|
|
|
|
ftp://postgresql.matrix.fi/ \
|
|
|
|
ftp://ftp.fr.postgresql.org/ \
|
|
|
|
ftp://ftp.de.postgresql.org/ \
|
|
|
|
ftp://ftp.ntua.gr/pub/databases/postgresql/ \
|
|
|
|
ftp://ftp.postgreSQL.uli.it/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/mirror/postgresql/pub/ \
|
|
|
|
ftp://ring.ip-kyoto.ad.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.crl.go.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.saitama-u.ac.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.astem.or.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.exp.fujixerox.co.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.jah.ne.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.etl.go.jp.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.asahi-net.or.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.so-net.ne.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://ring.aist.go.jp/pub/misc/db/postgresql/ \
|
|
|
|
ftp://jordan.ce.yeungnam.ac.kr/pub/postgresql/ \
|
|
|
|
ftp://ftp.kr.postgresql.org/pub/postgresql/ \
|
|
|
|
ftp://postgresql.linux.com.mx/pub/postgresql/pub/ \
|
|
|
|
ftp://postgresql.godzone.net.nz/postgresql/ \
|
|
|
|
ftp://postgresql.iphil.net/ \
|
|
|
|
ftp://ftp.sai.msu.su/unix/database/pgsql/ \
|
|
|
|
ftp://www.sk.postgresql.org/pub/linux/postgresql/ \
|
|
|
|
ftp://ftp.linux.co.za/pub/postgresql/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/databases/relational/postgresql/ \
|
|
|
|
ftp://ftp.danyk.ch/postgres/ \
|
|
|
|
ftp://ftp.ccit.edu.tw/packages/postgresql/ \
|
|
|
|
ftp://ftp.siamu.ac.th/pub/pub2/ftp.postgresql.org/ \
|
|
|
|
ftp://postgresql.rmplc.co.uk/pub/postgresql/ \
|
|
|
|
ftp://ftp.scyph.org/pub/Mirrors/ftp.postgresql.org/ \
|
|
|
|
ftp://mars.capital-data.com/pub/postgresql/ \
|
|
|
|
ftp://ftp.digex.net/pub/packages/database/postgresql/ \
|
|
|
|
ftp://ftp.iodynamics.com/pub/mirror/postgresql/ \
|
|
|
|
ftp://postgresql.nextpath.com/pub/postgresql/ \
|
|
|
|
ftp://www.ndesign.com.ua/pub/psql/ \
|
|
|
|
ftp://postgresql.netafric.ci/ \
|
1998-06-10 02:06:52 -04:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
# if you want to use the tcl/tk frontend pgaccess, then you need to build
|
|
|
|
# postgresql with tcl support by typing: make USE_TCL=yes
|
|
|
|
.if defined(USE_TCL) || defined(USE_TK)
|
|
|
|
TCL_INCDIR= ${LOCALBASE}/include/tcl8.0
|
|
|
|
TK_INCDIR= ${LOCALBASE}/include/tk8.0
|
|
|
|
MAKE_ENV= USE_TCL=true TCL_INCDIR=${TCL_INCDIR} TK_INCDIR=${TK_INCDIR}
|
|
|
|
LIB_DEPENDS= tcl80:${PORTSDIR}/lang/tcl80 tk80:${PORTSDIR}/x11/tk80
|
|
|
|
WITH_TCL= --with-tcl --with-tclconfig="${LOCALBASE}/lib/tcl8.0 ${LOCALBASE}/lib/tk8.0"
|
1998-05-06 12:55:37 -04:00
|
|
|
.endif
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
USE_GMAKE= yes
|
1997-11-20 15:34:05 -05:00
|
|
|
MAKEFILE= GNUmakefile
|
1999-11-10 21:24:29 -05:00
|
|
|
HAS_CONFIGURE= yes
|
1998-05-06 12:55:37 -04:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \
|
1997-11-20 15:34:05 -05:00
|
|
|
--enable-locale \
|
1998-05-06 12:55:37 -04:00
|
|
|
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
1999-11-10 21:24:29 -05:00
|
|
|
--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" ${WITH_TCL} \
|
|
|
|
--with-libraries=${PREFIX}/lib
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1997-11-20 15:34:05 -05:00
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
INSTALL_TARGET= install install-man
|
|
|
|
|
|
|
|
PGUSER= pgsql
|
|
|
|
PGBIN= ${PREFIX}/pgsql/bin
|
|
|
|
PGLIB= ${PREFIX}/pgsql/lib
|
|
|
|
PGDATA= /var/pgsql/data
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
.if defined(USE_TCL) || defined(USE_TK)
|
|
|
|
@if [ x"${NO_SHARED_LIBS}" = "x" ]; then \
|
|
|
|
${CP} ${PKGDIR}/PLIST.tcl ${WRKDIR}/PLIST; \
|
|
|
|
else \
|
|
|
|
${CP} ${PKGDIR}/PLIST.tcl.noshared ${WRKDIR}/PLIST; \
|
1997-11-20 15:34:05 -05:00
|
|
|
fi
|
1999-11-10 21:24:29 -05:00
|
|
|
.else
|
|
|
|
@if [ x"${NO_SHARED_LIBS}" = "x" ]; then \
|
|
|
|
${CP} ${PKGDIR}/PLIST ${WRKDIR}/PLIST; \
|
1998-06-17 01:41:24 -04:00
|
|
|
else \
|
1999-11-10 21:24:29 -05:00
|
|
|
${CP} ${PKGDIR}/PLIST.noshared ${WRKDIR}/PLIST; \
|
1998-06-17 01:41:24 -04:00
|
|
|
fi
|
1997-11-20 15:34:05 -05:00
|
|
|
.endif
|
|
|
|
|
1999-11-10 21:24:29 -05:00
|
|
|
pre-build:
|
|
|
|
@${MKDIR} ${WRKSRC}/pgwrap
|
|
|
|
@${CP} ${FILESDIR}/pgwrap.c ${FILESDIR}/pgwrap.h ${WRKSRC}/pgwrap
|
|
|
|
@${SED} -e "s,@PGUSER@,${PGUSER},g" -e "s,@PGBIN@,${PGBIN},g" \
|
|
|
|
-e "s,@PGLIB@,${PGLIB},g" -e "s,@PGDATA@,${PGDATA},g" \
|
|
|
|
-e "s,@PREFIX@,${PREFIX},g" < ${FILESDIR}/Makefile.in \
|
|
|
|
> ${WRKSRC}/pgwrap/Makefile
|
|
|
|
@${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
|
|
< ${FILESDIR}/README.OpenBSD.in \
|
|
|
|
> ${WRKSRC}/../doc/README.OpenBSD
|
|
|
|
(cd ${WRKSRC}/pgwrap; ${MAKE} depend && ${MAKE})
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/pgsql
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${RMDIR} ${PREFIX}/pgsql/include/port/bsd
|
|
|
|
@${RMDIR} ${PREFIX}/pgsql/include/port
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pgwrap/pgwrap ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/FAQ* ${PREFIX}/share/doc/pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/README* ${PREFIX}/share/doc/pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/TODO* ${PREFIX}/share/doc/pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*ps.gz ${PREFIX}/share/doc/pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../INSTALL ${PREFIX}/share/doc/pgsql
|
|
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
|
|
|
|
1997-11-20 15:34:05 -05:00
|
|
|
.include <bsd.port.mk>
|