2003-09-01 09:16:11 +02:00
|
|
|
# New ports collection makefile for: PostgreSQL eRServer
|
|
|
|
# Date created: 1 Sep 2003
|
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= erserver
|
|
|
|
PORTVERSION= 1.2
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 5
|
2003-09-01 09:16:11 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ftp://gborg.postgresql.org/pub/erserver/stable/
|
|
|
|
DISTNAME= ${PORTNAME}_v${PORTVERSION}
|
|
|
|
DIST_SUBDIR= postgresql
|
|
|
|
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
|
|
COMMENT= Trigger-based asynchronous replication system for PostgreSQL
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
2003-09-01 09:16:11 +02:00
|
|
|
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \
|
2005-01-31 01:35:55 +01:00
|
|
|
${PGINC}/executor/spi.h:${PGSQL_PORT}
|
2004-11-28 14:23:46 +01:00
|
|
|
RUN_DEPENDS= ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
|
2005-01-31 01:35:55 +01:00
|
|
|
postgres:${PGSQL_PORT}
|
2003-09-01 09:16:11 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-10-23 15:20:48 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
2003-09-01 09:16:11 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ENV= JAVA_HOME=${JAVA_HOME} JAVA=${JAVA}
|
|
|
|
CONFIGURE_ARGS= --with-pgincludes=${PGINC}
|
|
|
|
MAKE_ENV= JAVA_HOME=${JAVA_HOME} JAVA=${JAVA} \
|
|
|
|
PATH=${JAVA_HOME}/bin:${PATH}
|
|
|
|
MAKE_ARGS= sqldir=${DATADIR} templdir=${DATADIR} docdir=${DOCSDIR} \
|
|
|
|
libdir=${PREFIX}/lib/postgresql javadir=${JAVAJARDIR} \
|
|
|
|
siteperldir=${SITE_PERL}
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
DEFAULT_PGSQL_VER?=74
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2007-10-02 10:54:10 +02:00
|
|
|
|
|
|
|
.if ${OSVERSION} >= 700042
|
|
|
|
BROKEN= Does not compile with GCC 4.2
|
|
|
|
.endif
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
# Setting/finding PostgreSQL version we want.
|
|
|
|
.if exists(${LOCALBASE}/bin/postmaster)
|
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
2006-12-08 11:45:33 +01:00
|
|
|
${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
2005-01-31 01:35:55 +01:00
|
|
|
.elif exists(${LOCALBASE}/bin/pg_config)
|
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
|
|
|
.else
|
|
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PGINC= ${LOCALBASE}/include/postgresql/server
|
2003-09-01 09:16:11 +02:00
|
|
|
|
|
|
|
pre-install:
|
2003-09-05 13:41:29 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2003-09-01 09:16:11 +02:00
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
.include <bsd.port.post.mk>
|