mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
5dcb8dabc8
- add BDB deprecated message (FS backend is the thefault since many years, I hope no one use BDB backends today) - adopt static build fix from devel/subversion Changes: ======== Version 1.7.16 (26 Feb 2014, from /branches/1.7.x) http://svn.apache.org/repos/asf/subversion/tags/1.7.16 User-visible changes: - Client-side bugfixes: * copy: fix some scenarios that broke the working copy (r1560690) * diff: fix regressions due to fixes in 1.7.14 (issue #4460) - Server-side bugfixes: * mod_dav_svn: prevent crashes with SVNListParentPath on (CVE-2014-0032) * reduce memory usage during checkout and export (r1564215) Developer-visible changes: - General: * fix failure in checkout_tests.py * support compiling against Cyrus sasl 2.1.25 (r1404912, r1413402) * support compiling against neon 0.30.x (r1566320) Version 1.7.15 (Not released, see changes for 1.7.16.)
134 lines
4.2 KiB
Makefile
134 lines
4.2 KiB
Makefile
# Created by: rooneg@electricjellyfish.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= subversion
|
|
PORTVERSION= 1.7.16
|
|
PORTREVISION?= 0
|
|
CATEGORIES+= devel
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
DIST_SUBDIR= subversion17
|
|
PKGNAMESUFFIX= 17
|
|
MASTER_SITE_SUBDIR= subversion
|
|
|
|
USE_BZIP2= yes
|
|
USE_AUTOTOOLS= libtool
|
|
USE_KDE4= # Used below if KWallet support is enabled
|
|
USES+= pkgconfig
|
|
|
|
LICENSE= APACHE20
|
|
|
|
CONFLICTS_INSTALL+= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-1.[^7].[0-9]*
|
|
|
|
LIB_DEPENDS+= libapr-1.so:${PORTSDIR}/devel/apr1 \
|
|
libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
CONFIGURE_ARGS+= --without-swig \
|
|
--with-ssl \
|
|
--with-sqlite=${LOCALBASE} \
|
|
--with-expat=${LOCALBASE}/include:${LOCALBASE}/lib:expat
|
|
|
|
.if defined(SVN_BUILD_BINDINGS)
|
|
CONFLICTS_BUILD+= ${PORTNAME}-1.[^7].[0-9]*
|
|
LIB_DEPENDS+= libsvn_client-1.so:${PORTSDIR}/devel/subversion17
|
|
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
|
|
OPTIONS_NAME= devel_subversion17
|
|
.endif
|
|
|
|
# ===============================================================
|
|
OPTIONS_SUB= yes
|
|
|
|
BDB_CONFIGURE_OFF= --without-berkeley-db
|
|
BDB_USE= BDB=42+
|
|
|
|
GNOME_KEYRING_CONFIGURE_OFF= --without-gnome-keyring
|
|
GNOME_KEYRING_CONFIGURE_ON= --with-gnome-keyring
|
|
GNOME_KEYRING_LIB_DEPENDS= libgcr.so:${PORTSDIR}/security/gnome-keyring
|
|
|
|
KDE_KWALLET_CONFIGURE_OFF= --without-kwallet
|
|
KDE_KWALLET_CONFIGURE_ON= --with-kwallet=${KDE4_PREFIX}
|
|
KDE_KWALLET_USE= KDE4=kdelibs,runtime
|
|
|
|
MAINTAINER_DEBUG_CFLAGS= -g
|
|
MAINTAINER_DEBUG_CONFIGURE_ON= --enable-maintainer-mode --enable-debug
|
|
|
|
MOD_DAV_SVN_CONFIGURE_OFF= --with-apxs=no
|
|
MOD_DAV_SVN_CONFIGURE_ON= --with-apxs=${APXS}
|
|
MOD_DAV_SVN_USE= APACHE=22+
|
|
|
|
NEON_CONFIGURE_OFF= --without-neon
|
|
NEON_CONFIGURE_ON= --with-neon=${LOCALBASE}
|
|
NEON_LIB_DEPENDS= libneon.so:${PORTSDIR}/www/neon29
|
|
|
|
NLS_CONFIGURE_OFF= --disable-nls
|
|
NLS_USES= gettext
|
|
|
|
SASL_CONFIGURE_OFF= --without-sasl
|
|
SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE}
|
|
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
SERF_CONFIGURE_OFF= --without-serf
|
|
SERF_CONFIGURE_ON= --with-serf=${LOCALBASE}
|
|
SERF_LIB_DEPENDS= libserf-1.so:${PORTSDIR}/www/serf
|
|
|
|
STATIC_CONFIGURE_ON= --enable-all-static
|
|
|
|
# ===============================================================
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMOD_DONTDOTHAT} && !${PORT_OPTIONS:MMOD_DAV_SVN}
|
|
IGNORE= to build mod_dontdothat OPTION mod_dav_svn is required
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MKDE_KWALLET} && !${PORT_OPTIONS:MNLS}
|
|
IGNORE= KWallet requires OPTION NLS set to ON
|
|
.endif
|
|
|
|
APR_CONFIG= ${LOCALBASE}/bin/apr-1-config
|
|
APU_CONFIG= ${LOCALBASE}/bin/apu-1-config
|
|
|
|
CONFIGURE_ARGS+=--with-apr=${APR_CONFIG} --with-apr-util=${APU_CONFIG}
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
CFLAGS+= -fpic -DPIC
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFREEBSD_TEMPLATE} && defined(ORGANIZATION)
|
|
CFLAGS+= -DHAS_ORGANIZATION_NAME
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-everything::
|
|
.if defined(SVN_BUILD_BINDINGS)
|
|
.if ${PORT_OPTIONS:MSTATIC}
|
|
@${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
@${ECHO_MSG} "!!! bindings and static build are not compatible !!!"
|
|
@${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
@${FALSE}
|
|
.endif
|
|
.endif
|
|
|
|
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
|
|
.if ${PORT_OPTIONS:MFREEBSD_TEMPLATE} && defined(ORGANIZATION)
|
|
@${ECHO_CMD} "#define ORGANIZATION_NAME \"${ORGANIZATION}\"" > ${WRKSRC}/subversion/freebsd-organization.h
|
|
.endif
|
|
# shebangfix
|
|
${GREP} -Rl -e '#!/bin/b' -e '#!/bin/env' -e '#!/usr/bin/p' ${WRKSRC}/tools/ \
|
|
| ${XARGS} ${REINPLACE_CMD} -e '1s|#\!/bin/b|#\!/usr/local/bin/b|' \
|
|
-e '1s|#\!/bin/env|#\!/usr/bin/env|' \
|
|
-e '1s|#\!/usr/bin/p|#\!/usr/local/bin/p|'
|
|
# remove all .bak files to clean the stage
|
|
${FIND} ${WRKSRC} -name '*.bak' -delete
|
|
|