aboutsummaryrefslogtreecommitdiffstats
path: root/devel/subversion-devel/Makefile
blob: 81459f01b9fbbb1c4046bb31110fdb622ca3f7eb (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
# New ports collection makefile for:    subversion
# Date created:             10 September 2001
# Whom:                 rooneg@electricjellyfish.net
#
# $FreeBSD$

PORTNAME=   subversion
PORTVERSION=    r1467
CATEGORIES= devel
MASTER_SITES=   http://www.tigris.org/files/15/38/

MAINTAINER= rooneg@electricjellyfish.net

LIB_DEPENDS=    db4:${PORTSDIR}/databases/db4 \
        neon.19:${PORTSDIR}/www/neon \
        expat:${PORTSDIR}/textproc/expat \
        apr:${PORTSDIR}/devel/apr-devel

RUN_DEPENDS=    gdiff:${PORTSDIR}/textproc/diffutils \
        gpatch:${PORTSDIR}/devel/patch

BUILD_DEPENDS=  gdiff:${PORTSDIR}/textproc/diffutils \
        gpatch:${PORTSDIR}/devel/patch \
        python:${PORTSDIR}/lang/python

MAN1=       svn.1

WRKSRC= ${WRKDIR}/subversion-r1467
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-ssl \
        --with-neon=${LOCALBASE} \
        --with-apr=${LOCALBASE} \
        --with-apr-util=${LOCALBASE}

post-extract:
    # work around libdb4's name.
    @${PERL} -pi -e 's/ldb/ldb4/g' ${WRKSRC}/configure

    # axe the neon, apr, and apr-util subdirs to keep svn's build process
    # from using them, since we're providing our own.
    @${RM} -r ${WRKSRC}/neon
    @${RM} -r ${WRKSRC}/apr
    @${RM} -r ${WRKSRC}/apr-util

post-configure:
    # regenerate build-outputs.mk so we can use our installed expat,
    # rather than the expat-lite in svn's tree
    (cd ${WRKSRC} && ./gen-make.py -s build.conf)

    # make sure we don't install the swig stuff, even if it was found
    @${PERL} -pi -e 's/install-swig-py-lib//g' ${WRKSRC}/Makefile
    @${PERL} -pi -e 's/swig-py-lib//g' ${WRKSRC}/Makefile

.include <bsd.port.mk>