aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pglesslog/Makefile
blob: c320b2bcb0e9bf47dc61a3969e313c030951d34e (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
# New ports collection makefile for:    pglesslog
# Date created:             4 March 2010
# Whom:                 Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pglesslog
PORTVERSION=    1.2
CATEGORIES= databases
MASTER_SITES=   http://pgfoundry.org/frs/download.php/2127/

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    Reduce size of PostgreSQL archive log files by replacing backup blocks

BUILD_DEPENDS=  \
    ${NONEXISTENT}:${PORTSDIR}/${PGSQL_PORT}-server:build

USE_GMAKE=  yes
USE_PGSQL=  YES
WANT_PGSQL_VER?=83
WRKSRC=     ${WRKDIR}/lesslog-${PORTVERSION}

.include <bsd.port.pre.mk>

PGSQL_PORT= databases/postgresql${PGSQL_VER}
PGSQL_SRCDIR=   `cd ${PORTSDIR}/${PGSQL_PORT}-server; ${MAKE} -VWRKSRC`

pre-build:
    ${REINPLACE_CMD} "s|top_builddir = ../..|top_builddir = ${PGSQL_SRCDIR}|" ${WRKSRC}/Makefile.*

.include <bsd.port.post.mk>