freebsd-ports/devel/subversion-freebsd/Makefile
Bruce A. Mah 6a4808de7f Port update that:
1.  Eliminates a bogus dependency on the libtool port, as pointed out
on dev@subversion.tigris.org.

2.  Turns off swig binding via configure options, rather than
post-configure Makefile hacks.  This will make it easier to enable swig
bindings in the future, if someone wants to tackle this.

3.  Installs a number of the text files from the top level of the
subversion distribution into ${PREFIX}/share/doc/subversion.

PORTREVISION bump to document this.

Approved by:	rodrigc@attbi.com (MAINTAINER)
2003-06-10 20:04:42 +00:00

87 lines
2.2 KiB
Makefile

# New ports collection makefile for: subversion
# Date created: 10 September 2001
# Whom: rooneg@electricjellyfish.net
#
# $FreeBSD$
PORTNAME= subversion
PORTVERSION= 0.23.0
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://subversion.tigris.org/files/documents/15/4218/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= bmah
MAINTAINER= rodrigc@attbi.com
COMMENT= Version control system
LIB_DEPENDS= db4:${PORTSDIR}/databases/db4 \
neon.23:${PORTSDIR}/www/neon \
expat.4:${PORTSDIR}/textproc/expat2 \
apr-0.9:${PORTSDIR}/devel/apr
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/subversion-${PORTVERSION}
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-ssl \
--with-neon=${LOCALBASE} \
--with-berkeley-db=${LOCALBASE}/include/db4:${LOCALBASE}/lib \
--with-apr=${LOCALBASE} \
--with-apr-util=${LOCALBASE} \
--with-swig=no
MAN1= svn.1 svnadmin.1
MANCOMPRESSED= no
.if defined(WITH_MOD_DAV_SVN)
APXS=${LOCALBASE}/sbin/apxs
BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2
RUN_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2
CONFIGURE_ARGS+= \
--with-apxs=${APXS}
PLIST_SUB+= MOD_DAV_SVN=""
.else
PLIST_SUB+= MOD_DAV_SVN="@comment "
PKGDEINSTALL= NONEXISTENT
.endif
pre-extract:
.if !defined(WITH_MOD_DAV_SVN)
@${ECHO_MSG}
@${ECHO_MSG} "You can enable the mod_dav_svn module for Apache 2.X by defining"
@${ECHO_MSG} "WITH_MOD_DAV_SVN."
@${ECHO_MSG}
.endif
post-extract:
@${REINPLACE_CMD} 's/ldb/ldb4/g' ${WRKSRC}/configure
@${RM} -r ${WRKSRC}/neon
@${RM} -r ${WRKSRC}/apr
@${RM} -r ${WRKSRC}/apr-util
.if defined(WITH_MOD_DAV_SVN)
pre-install:
${APXS} -e -S LIBEXECDIR=${PREFIX}/libexec/apache2 -a -n dav libexec/apache2/mod_dav.so
.endif
post-install:
install-info ${PREFIX}/info/svn-design.info ${PREFIX}/info/dir
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/doc/book; \
${MAKE} INSTALL_DIR=${DOCSDIR} \
install-book-html install-book-pdf install-book-ps
for f in BUGS CHANGES COMMITTERS COPYING HACKING IDEAS INSTALL PORTING README; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
done
.endif
post-deinstall:
.if defined(WITH_MOD_DAV_SVN)
@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
.endif
.include <bsd.port.mk>