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-08-22 14:49:14 +02:00
|
|
|
PORTVERSION= 0.27.0
|
2002-01-15 02:45:03 +01:00
|
|
|
CATEGORIES= devel
|
2003-08-22 14:49:14 +02:00
|
|
|
MASTER_SITES= http://subversion.tigris.org/files/documents/15/5642/
|
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-06-19 18:40:42 +02:00
|
|
|
MAINTAINER= bmah@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-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
|
|
|
|
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
WITH_APACHE2_APR= yes
|
2003-05-23 03:31:48 +02:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-apxs=${APXS}
|
|
|
|
PLIST_SUB+= MOD_DAV_SVN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MOD_DAV_SVN="@comment "
|
|
|
|
PKGDEINSTALL= NONEXISTENT
|
|
|
|
.endif
|
|
|
|
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_APACHE2_APR)
|
|
|
|
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
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= apr-0.9:${PORTSDIR}/devel/apr
|
|
|
|
CONFIGURE_ARGS+=--with-apr=${LOCALBASE} \
|
|
|
|
--with-apr-util=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2003-05-23 03:31:48 +02:00
|
|
|
pre-extract:
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
@${ECHO_MSG} "mod_dav_svn module for Apache 2.X enabled."
|
|
|
|
.else
|
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."
|
|
|
|
.endif
|
2003-05-23 03:31:48 +02:00
|
|
|
@${ECHO_MSG}
|
2003-06-27 23:03:40 +02:00
|
|
|
.if defined(WITH_APACHE2_APR)
|
|
|
|
@${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
|
|
|
.else
|
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
|
|
|
.endif
|
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
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
pre-install:
|
|
|
|
${APXS} -e -S LIBEXECDIR=${PREFIX}/libexec/apache2 -a -n dav libexec/apache2/mod_dav.so
|
|
|
|
.endif
|
|
|
|
|
2003-01-24 08:08:11 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
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
|
|
|
.endif
|
2002-01-15 02:45:03 +01:00
|
|
|
|
2003-05-23 03:31:48 +02:00
|
|
|
post-deinstall:
|
|
|
|
.if defined(WITH_MOD_DAV_SVN)
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
|
|
|
|
.endif
|
|
|
|
|
2002-01-15 02:45:03 +01:00
|
|
|
.include <bsd.port.mk>
|