blob: 4c20203b914308b87253a411c391ce07c02c4611 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
# New ports collection makefile for: subversion
# Date created: 10 September 2001
# Whom: rooneg@electricjellyfish.net
#
# $FreeBSD$
PORTNAME= subversion
PORTVERSION= 1.6.12
PORTREVISION?= 0
CATEGORIES+= devel
MASTER_SITES= http://subversion.tigris.org/downloads/:main \
http://svnbook.red-bean.com/en/1.5/:book
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:main
DIST_SUBDIR= subversion
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
# Patches required for use with the FreeBSD Project repository only
.if defined(WITH_FREEBSD_SUBVERSION)
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= lev
PATCHFILES+= svn_hacks_1.4.diff
.endif
MAKE_JOBS_SAFE= yes
USE_BZIP2= yes
USE_AUTOTOOLS= libtool:22
CONFIGURE_ARGS= --with-ssl
.if defined(SVN_BUILD_BINDINGS)
# Bindings ports should use the same, as main port
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
# Dirty hack: if OPTIONS is not defined, OPTIONSFILE will not be included
OPTIONS=
.endif
.include <bsd.port.pre.mk>
CONFIGURE_ARGS+= --without-swig
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
# Default is "on"
.if !defined(WITHOUT_NEON)
.if !defined(NEON_VER)
.if exists(${LOCALBASE}/bin/neon-config)
NEON_VER!= ${LOCALBASE}/bin/neon-config --version | \
${SED} -n -E 's/^neon [0-9]+\.([0-9]+)\..*$$/\1/p'
.else
NEON_VER= 29
.endif
.endif
LIB_DEPENDS+= neon.${NEON_VER}:${PORTSDIR}/www/neon${NEON_VER}
PLIST_SUB+= NEON=""
.else
CONFIGURE_ARGS+=--without-neon
PLIST_SUB+= NEON="@comment "
.endif
.if defined(WITH_SASL)
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
PLIST_SUB+= SASL=""
.else
CONFIGURE_ARGS+= --without-sasl
PLIST_SUB+= SASL="@comment "
.endif
# Default is "on"
.if !defined(WITHOUT_BDB)
USE_BDB= 42+
PLIST_SUB+= BDB=""
.else
CONFIGURE_ARGS+= --without-berkeley-db
PLIST_SUB+= BDB="@comment "
.endif
.if defined(WITH_MOD_DAV_SVN)
WITH_APACHE= yes
CONFIGURE_ARGS+= --with-apxs=${APXS}
PLIST_SUB+= MOD_DAV_SVN=""
SUB_LIST+= MOD_DAV_SVN_INSTALL="YES"
SVNGROUP?= www
SVNUSER?= www
.if defined(WITH_MOD_DONTDOTHAT)
PLIST_SUB+= MOD_DONTDOTHAT=""
.else
PLIST_SUB+= MOD_DONTDOTHAT="@comment "
.endif
.else
PLIST_SUB+= MOD_DAV_SVN="@comment "
PLIST_SUB+= MOD_DONTDOTHAT="@comment "
SUB_LIST+= MOD_DAV_SVN_INSTALL="NO"
SVNGROUP?= svn
SVNUSER?= svn
.endif
.if defined(WITH_APACHE)
USE_APACHE= 2.0+
.include "${PORTSDIR}/Mk/bsd.apache.mk"
.if ${APACHE_VERSION} > 20
LIB_DEPENDS+= apr-1:${PORTSDIR}/devel/apr1
APR_CONFIG= ${LOCALBASE}/bin/apr-1-config
APU_CONFIG= ${LOCALBASE}/bin/apu-1-config
.else
LIB_DEPENDS+= apr-0:${PORTSDIR}/devel/apr0
APR_CONFIG= ${LOCALBASE}/bin/apr-config
APU_CONFIG= ${LOCALBASE}/bin/apu-config
.endif
.else
LIB_DEPENDS+= apr-1:${PORTSDIR}/devel/apr1
APR_CONFIG= ${LOCALBASE}/bin/apr-1-config
APU_CONFIG= ${LOCALBASE}/bin/apu-1-config
.endif
CONFIGURE_ARGS+= --with-apr=${APR_CONFIG} --with-apr-util=${APU_CONFIG}
.if defined(WITH_SVNAUTHZ_VALIDATE)
APR_INCLUDE_DIR!= ${APR_CONFIG} --includedir
PLIST_SUB+= SVNAUTHZ_VALIDATE=""
.else
PLIST_SUB+= SVNAUTHZ_VALIDATE="@comment "
.endif
.if defined(WITH_SERF)
LIB_DEPENDS+= serf-0.0:${PORTSDIR}/www/serf
CONFIGURE_ARGS+= --with-serf=${LOCALBASE}
PLIST_SUB+= SERF=""
.else
PLIST_SUB+= SERF="@comment "
.endif
.if defined(SVN_BUILD_BINDINGS)
.if defined(WITH_FREEBSD_SUBVERSION)
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion-freebsd
.else
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
.endif
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
.if defined(WITH_STATIC)
CONFIGURE_ARGS+=--enable-all-static
PLIST_SUB+= DYNAMIC_ENABLED="@comment "
.else
PLIST_SUB+= DYNAMIC_ENABLED=""
.endif
.if defined(WITH_GNOME_KEYRING)
LIB_DEPENDS+= gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
CONFIGURE_ARGS+=--with-gnome-keyring
.else
CONFIGURE_ARGS+=--without-gnome-keyring
.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
|