aboutsummaryrefslogtreecommitdiffstats
path: root/devel/subversion16/Makefile.common
blob: 3f8a092232c4fd8cf9dd4795c8a5624af7b88b4d (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
57
58
59
60
61
62
# New ports collection makefile for:    subversion
# Date created:             10 September 2001
# Whom:                 rooneg@electricjellyfish.net
#
# $FreeBSD$

PORTNAME=   subversion
PORTVERSION=    1.5.0
CATEGORIES= devel
MASTER_SITES=   http://subversion.tigris.org/downloads/:main \
        http://svnbook.red-bean.com/nightly/en/:book
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:main
DIST_SUBDIR=    subversion
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

USE_BZIP2=  yes
USE_AUTOTOOLS=  libtool:15
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=     --with-ssl
WANT_PERL=  yes

.include <bsd.port.pre.mk>

.if defined(SVN_BUILD_BINDINGS)
LIB_DEPENDS+=   svn_client-1:${PORTSDIR}/devel/subversion
EXTRA_PATCHES+= ${PATCHDIR}/bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=        yes
PLIST_SUB+=     WITHOUT_GETTEXT=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+=     WITHOUT_GETTEXT="@comment "
.endif

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fpic -DPIC
.endif

.if defined(WITH_MAINTAINER_DEBUG)
CONFIGURE_ARGS+=--enable-maintainer-mode \
        --enable-debug
CFLAGS+=    -g
.endif

post-extract:
    @${RM} -rf ${WRKSRC}/neon
    @${RM} -rf ${WRKSRC}/apr
    @${RM} -rf ${WRKSRC}/apr-util

post-patch:
.if ${PREFIX} != "/usr"
    @${REINPLACE_CMD} "s#/etc/subversion#${ETCDIR}#g" ${WRKSRC}/subversion/libsvn_subr/config_file.c
    @${REINPLACE_CMD} "s#/etc/subversion#${ETCDIR}#g" ${WRKSRC}/subversion/libsvn_subr/config_impl.h
.endif
    @${REINPLACE_CMD} "s#^swig_pydir =.*#swig_pydir = ${PYTHON_SITELIBDIR}/libsvn#" ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} "s#^swig_pydir_extra =.*#swig_pydir_extra = ${PYTHON_SITELIBDIR}/svn#" ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} "s#^LIBTOOL =.*#LIBTOOL = ${LIBTOOL}#" ${WRKSRC}/Makefile.in
.if defined(SVN_BUILD_BINDINGS)
    @${CP} ${FILESDIR}/build-outputs.mk ${WRKSRC}
.endif