blob: 4e9cf89317734880fa4b957eff4a3c7cc5adc5fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: PostgreSQL eRServer
# Date created: 1 Sep 2003
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= erserver
PORTVERSION= 1.2
PORTREVISION= 3
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
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \
${PGINC}/executor/spi.h:${PGSQL_PORT}
RUN_DEPENDS= ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
postgres:${PGSQL_PORT}
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_JAVA= yes
JAVA_VERSION= 1.2+
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}
DEFAULT_PGSQL_VER?=74
.include <bsd.port.pre.mk>
# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
.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
pre-install:
${MKDIR} ${DOCSDIR}
.include <bsd.port.post.mk>
|