-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
62 lines (50 loc) · 2.13 KB
/
Portfile
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
# $Id: Portfile,v 1.53 2005/10/10 13:08:27 dluke Exp $
PortSystem 1.0
name subversion
version 1.2.3
categories devel
maintainers dluke@geeklair.net
description A cvs like version control system, but without the suck
long_description Subversion is a version control system designed to be \
as similar to cvs(1) as possible, while fixing many \
outstanding problems with cvs(1).
homepage http://subversion.tigris.org/
master_sites http://subversion.tigris.org/tarballs/
use_bzip2 yes
checksums md5 a14bc6590241b6e5c2ff2b354cc184a1
depends_lib port:expat lib:libneon.24.0.7:neon \
lib:libapr-0.0.9.5:apr lib:libaprutil-0.0.9.5:apr-util \
lib:libdb-4:db4
patchfiles patch-Makefile.in
configure.args --with-berkeley-db=${prefix}/include/db4:${prefix}/lib \
--with-neon=${prefix} --with-apr=${prefix} \
--with-apr-util=${prefix} --without-apxs \
--mandir=\\\${prefix}/share/man
pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
${worksrcpath}/configure
reinplace "s|@@DESTROOT@@|${destroot}|g" \
${worksrcpath}/configure
}
post-configure { reinplace "s|need_relink=yes|need_relink=no|g" \
${worksrcpath}/libtool
}
variant mod_dav_svn { depends_build path:${prefix}/apache2/bin/apxs:apache2
configure.args-append \
--with-apxs=${prefix}/apache2/bin/apxs \
--disable-mod-activation
configure.args-delete --without-apxs
}
variant mac-os-x-server-mod_dav_svn { configure.args-append \
--with-apxs=/opt/apache2/bin/apxs \
--disable-mod-activation
configure.args-delete --without-apxs
post-install {
ui_warn "This variant (+mac-os-x-server-mod_dav_svn builds against the Apple-supplied apache2 in /opt/apache2 and thus may have problems that the normal variant (+mod_dav_svn) which builds against the darwinports supplied apache2 will not have."
}
}
variant tools { post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
file copy ${worksrcpath}/tools ${destroot}${prefix}/share/${name}/tools
file copy ${worksrcpath}/contrib ${destroot}${prefix}/share/${name}/contrib
}
}