pkgsrc/devel/subversion-base/Makefile
adam 84c8d2980d Changes 1.8.4:
User-visible changes:
 - Client- and server-side bugfixes:
   * fix assertion on urls of the form 'file://./'
   * stop linking against psapi.dll on Windows
   * translation updates for Swedish
 - Client-side bugfixes:
   * revert: fix problems reverting moves
   * update: fix assertion when file external access is denied
   * merge: reduce network connections for automatic merge
   * merge: fix path corruption during reintegration
   * mergeinfo: fix crash
   * ra_serf: verify the result of xml parsing
   * ra_serf: improve error messages during commit
   * ra_local: fix error with repository in Windows drive root
   * fix crash on windows when piped command is interrupted
   * fix crash in the crash handler on windows
   * fix assertion when upgrading old working copies
 - Server-side bugfixes:
   * hotcopy: cleanup unpacked revprops with '--incremental'
   * fix OOM on concurrent requests at threaded server start
   * fsfs: improve error message when unsupported fsfs format found
   * fix memory problem in 3rd party FS module loader

Developer-visible changes:
 - General:
   * allow compiling against serf 1.3 and later on Windows
 - Bindings:
   * javahl: canonicalize path for streaFileContent method
2013-11-02 09:19:17 +00:00

94 lines
3.4 KiB
Makefile

# $NetBSD: Makefile,v 1.91 2013/11/02 09:19:17 adam Exp $
PKGNAME= subversion-base-${SVNVER}
COMMENT= Version control system, base programs and libraries
PKG_INSTALLATION_TYPES= overwrite pkgviews
# on at least solaris, configure fails to figure out
# that you need -lintl
BROKEN_GETTEXT_DETECTION= yes
.include "../../devel/subversion/Makefile.common"
USE_TOOLS+= msgfmt
CONFIGURE_ARGS+= --without-apxs
.if !empty(PKG_OPTIONS:Mapr1)
APU_OPTIONS= PKG_BUILD_OPTIONS.apr-util
.else
APU_OPTIONS= PKG_BUILD_OPTIONS.apr
.endif
BUILD_DEFS+= ${APU_OPTIONS}
CFLAGS.SunOS+= -D__EXTENSIONS__
.if !empty(PKG_OPTIONS:Mapr1)
. include "../../devel/apr/buildlink3.mk"
. include "../../devel/apr-util/buildlink3.mk"
.else
BUILDLINK_API_DEPENDS.apr+= apr>=0.9.5
. include "../../devel/apr0/buildlink3.mk"
.endif
BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.7.15.1
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
PLIST_VARS+= db4
.if !empty(PKG_OPTIONS:Mapr1) && !empty(PKG_BUILD_OPTIONS.apr-util:Mdb4)
PLIST.db4= yes
CONFIGURE_ARGS+= --with-berkeley-db
.else
CONFIGURE_ARGS+= --without-berkeley-db
.endif
PLIST_SUBST+= DAV_RA=${DAV_RA:Q}
RCD_SCRIPTS= svnserve
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${SVNDOC}
cd ${WRKSRC} && ${INSTALL_DATA} INSTALL README ${DESTDIR}${SVNDOC}
cd ${WRKSRC}/doc/user && ${INSTALL_DATA} *.html *.txt ${DESTDIR}${SVNDOC}
${INSTALL_DATA_DIR} ${DESTDIR}${SVNEXAMPLES}/backup
${INSTALL_DATA_DIR} ${DESTDIR}${SVNEXAMPLES}/cgi
${INSTALL_DATA_DIR} ${DESTDIR}${SVNEXAMPLES}/hook-scripts
${INSTALL_DATA_DIR} ${DESTDIR}${SVNEXAMPLES}/hook-scripts/mailer
${INSTALL_DATA_DIR} ${DESTDIR}${SVNEXAMPLES}/hook-scripts/mailer/tests
${INSTALL_DATA} ${WRKSRC}/tools/backup/hot-backup.py \
${DESTDIR}${SVNEXAMPLES}/backup
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/commit* \
${DESTDIR}${SVNEXAMPLES}/hook-scripts
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/svnperms* \
${DESTDIR}${SVNEXAMPLES}/hook-scripts
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/log-police.py \
${WRKSRC}/tools/hook-scripts/verify-po.py \
${DESTDIR}${SVNEXAMPLES}/hook-scripts
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/mailer* \
${DESTDIR}${SVNEXAMPLES}/hook-scripts/mailer
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/tests/mailer* \
${DESTDIR}${SVNEXAMPLES}/hook-scripts/mailer/tests
.PHONY: svn-build-outputs-hack
# Subversion's build system is set up to build everything from source
# at once. In pkgsrc, we install the base part of subversion, and
# then build other pieces against installed libraries. Here, we run
# svn's equivalent of automake to say that the libraries installed as
# part of subversion-base are installed, and save that generated file.
# Other packages then copy this file into place when building to avoid
# having to build these libraries again.
#
# The normal update procedure is
# test build and package subversion-base
# run make svn-build-outputs-hack
# test build and package other subversion packages
# commit the update to ../subversion/files/build-outputs.mk along with the version change
#
svn-build-outputs-hack:
cd ${WRKSRC} && ./gen-make.py --release --installed-libs libsvn_client,libsvn_delta,libsvn_diff,libsvn_fs,libsvn_ra,libsvn_repos,libsvn_subr,libsvn_wc
${MV} -f ${WRKSRC}/build-outputs.mk ${FILESDIR}/build-outputs.mk
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"