2002-01-15 02:45:03 +01:00
# New ports collection makefile for: subversion
# Date created: 10 September 2001
# Whom: rooneg@electricjellyfish.net
#
# $FreeBSD$
PORTNAME = subversion
2003-09-06 20:37:22 +02:00
PORTVERSION = 0.29.0
2002-01-15 02:45:03 +01:00
CATEGORIES = devel
2003-09-06 20:37:22 +02:00
MASTER_SITES = http://subversion.tigris.org/files/documents/15/5977/
2003-03-25 18:05:54 +01:00
MASTER_SITES += ${ MASTER_SITE_LOCAL }
MASTER_SITE_SUBDIR = bmah
2002-01-15 02:45:03 +01:00
2003-09-02 19:22:59 +02:00
MAINTAINER = lev@freebsd.org
2003-02-21 12:23:04 +01:00
COMMENT = Version control system
2002-01-15 02:45:03 +01:00
2002-02-20 03:37:37 +01:00
LIB_DEPENDS = db4:${ PORTSDIR } /databases/db4 \
2003-01-02 09:52:09 +01:00
neon.23:${ PORTSDIR } /www/neon \
2003-06-27 23:03:40 +02:00
expat.4:${ PORTSDIR } /textproc/expat2
2002-02-20 03:37:37 +01:00
2003-04-04 20:06:54 +02:00
INSTALLS_SHLIB = yes
2002-03-27 10:47:08 +01:00
WRKSRC = ${ WRKDIR } /subversion-${ PORTVERSION }
2002-02-20 03:37:37 +01:00
GNU_CONFIGURE = yes
2002-07-15 20:06:17 +02:00
USE_REINPLACE = yes
2003-05-02 20:23:08 +02:00
CONFIGURE_TARGET = --build= ${ MACHINE_ARCH } -portbld-freebsd${ OSREL }
2003-04-04 20:06:54 +02:00
CONFIGURE_ARGS = --with-ssl \
2002-03-14 17:52:42 +01:00
--with-neon= ${ LOCALBASE } \
2002-07-15 20:06:17 +02:00
--with-berkeley-db= ${ LOCALBASE } /include/db4:${ LOCALBASE } /lib \
2003-06-10 22:04:42 +02:00
--with-swig= no
2002-02-20 03:37:37 +01:00
2003-09-04 11:48:25 +02:00
2003-04-04 20:06:54 +02:00
MAN1 = svn.1 svnadmin.1
MANCOMPRESSED = no
2003-01-24 08:08:11 +01:00
2003-05-23 03:31:48 +02:00
APXS = ${ LOCALBASE } /sbin/apxs
2003-06-27 23:03:40 +02:00
. i f d e f i n e d ( W I T H _ M O D _ D A V _ S V N )
WITH_APACHE2_APR = yes
2003-05-23 03:31:48 +02:00
CONFIGURE_ARGS += \
--with-apxs= ${ APXS }
PLIST_SUB += MOD_DAV_SVN = ""
. e l s e
PLIST_SUB += MOD_DAV_SVN = "@comment "
PKGDEINSTALL = NONEXISTENT
. e n d i f
2003-06-27 23:03:40 +02:00
. i f d e f i n e d ( W I T H _ A P A C H E 2 _ A P R )
APACHE2_PORT ?= ${ PORTSDIR } /www/apache2
BUILD_DEPENDS += ${ APXS } :${ APACHE2_PORT }
RUN_DEPENDS += ${ APXS } :${ APACHE2_PORT }
CONFIGURE_ARGS += --with-apr= ${ LOCALBASE } /lib/apache2/apr-config \
--with-apr-util= ${ LOCALBASE } /lib/apache2/apu-config
. e l s e
LIB_DEPENDS += apr-0.9:${ PORTSDIR } /devel/apr
CONFIGURE_ARGS += --with-apr= ${ LOCALBASE } \
--with-apr-util= ${ LOCALBASE }
. e n d i f
2003-05-23 03:31:48 +02:00
pre-extract :
2003-09-04 11:48:25 +02:00
. i f ! d e f i n e d ( B A T C H )
@dialog --title "-- URGENT UPGRADE INFORMATION --" --clear --yesno \
"If you upgrade Subversion from pre-0.28.0 version, please,\ndump you repository with old (pre-0.28.0) svnadmin command.\nAfter this, install new version, remove old repository, create new\none with svnadmin & load dump created from old repository\n\nVersions after 0.28.0 have different repository format and\nyour old repository could not be used with versions 0.28.0 and up.\n\nRead\nhttp://svn.collab.net/repos/svn/trunk/notes/repos_upgrade_HOWTO\nfor details.\n\nDid you dump you repository and ready to install new version?" \
18 70
. e n d i f
2003-06-27 23:03:40 +02:00
. i f d e f i n e d ( W I T H _ M O D _ D A V _ S V N )
@${ ECHO_MSG } "mod_dav_svn module for Apache 2.X enabled."
. e l s e
2003-06-19 18:40:42 +02:00
@${ ECHO_MSG } "You can enable the mod_dav_svn module for Apache 2.X"
2003-07-07 17:05:38 +02:00
@${ ECHO_MSG } "by defining WITH_MOD_DAV_SVN. This option implies"
2003-06-27 23:03:40 +02:00
@${ ECHO_MSG } "the WITH_APACHE2_APR option."
. e n d i f
2003-05-23 03:31:48 +02:00
@${ ECHO_MSG }
2003-06-27 23:03:40 +02:00
. i f d e f i n e d ( W I T H _ A P A C H E 2 _ A P R )
@${ ECHO_MSG } "Using APR from www/apache2. If you have the devel/apr"
@${ ECHO_MSG } "port/package installed, you may need to remove it."
2003-07-02 17:13:31 +02:00
. e l s e
2003-06-27 23:03:40 +02:00
@${ ECHO_MSG } "You can link subversion against the APR built with"
@${ ECHO_MSG } "the www/apache2 port, rather than the devel/apr port,"
@${ ECHO_MSG } "by defining WITH_APACHE2_APR."
2003-05-23 03:31:48 +02:00
. e n d i f
2003-06-27 23:03:40 +02:00
@${ ECHO_MSG }
2003-05-23 03:31:48 +02:00
2002-02-20 03:37:37 +01:00
post-extract :
2002-07-15 20:06:17 +02:00
@${ REINPLACE_CMD } 's/ldb/ldb4/g' ${ WRKSRC } /configure
2002-03-14 17:52:42 +01:00
2002-02-20 03:37:37 +01:00
@${ RM } -r ${ WRKSRC } /neon
2002-03-14 17:52:42 +01:00
@${ RM } -r ${ WRKSRC } /apr
@${ RM } -r ${ WRKSRC } /apr-util
2002-02-20 03:37:37 +01:00
2003-05-23 03:31:48 +02:00
. i f d e f i n e d ( W I T H _ M O D _ D A V _ S V N )
pre-install :
${ APXS } -e -S LIBEXECDIR = ${ PREFIX } /libexec/apache2 -a -n dav libexec/apache2/mod_dav.so
. e n d i f
2003-01-24 08:08:11 +01:00
post-install :
. i f ! d e f i n e d ( N O P O R T D O C S )
2003-07-26 00:47:56 +02:00
${ MKDIR } ${ DOCSDIR }
for f in BUGS CHANGES COMMITTERS COPYING HACKING IDEAS INSTALL README; do \
2003-06-10 22:04:42 +02:00
${ INSTALL_DATA } ${ WRKSRC } /$$ f ${ DOCSDIR } ; \
done
2003-01-24 08:08:11 +01:00
. e n d i f
2002-01-15 02:45:03 +01:00
2003-05-23 03:31:48 +02:00
post-deinstall :
. i f d e f i n e d ( W I T H _ M O D _ D A V _ S V N )
@PKG_PREFIX= ${ PREFIX } ${ SH } ${ PKGDEINSTALL } ${ PKGNAME } POST-DEINSTALL
. e n d i f
2002-01-15 02:45:03 +01:00
. i n c l u d e < b s d . p o r t . m k >