2006-09-30 02:23:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.24 2006/09/30 06:23:58 steven Exp $
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
COMMENT= "subversion revision control system"
|
|
|
|
COMMENT-perl= "perl interface to subversion"
|
|
|
|
COMMENT-python= "python interface to subversion"
|
|
|
|
|
2006-09-30 02:23:58 -04:00
|
|
|
VERSION= 1.4.0
|
2004-12-01 11:47:54 -05:00
|
|
|
DISTNAME= subversion-${VERSION}
|
2006-09-30 02:23:58 -04:00
|
|
|
PKGNAME-perl= p5-SVN-${VERSION}
|
2006-07-15 12:55:32 -04:00
|
|
|
PKGNAME-python= py-subversion-${VERSION}
|
2006-09-30 02:23:58 -04:00
|
|
|
|
|
|
|
SO_VERSION= 1.0
|
|
|
|
SVN_LIBS= svn_client-1 svn_delta-1 svn_diff-1 svn_fs-1 \
|
|
|
|
svn_fs_base-1 svn_fs_fs-1 svn_ra-1 svn_ra_dav-1 \
|
|
|
|
svn_ra_local-1 svn_ra_svn-1 svn_repos-1 svn_subr-1 svn_wc-1
|
|
|
|
.for _lib in ${SVN_LIBS} svn_swig_perl-1 svn_swig_py-1
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2006-01-06 20:10:11 -05:00
|
|
|
|
2004-12-01 11:47:54 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://subversion.tigris.org/
|
|
|
|
|
2005-04-20 23:36:14 -04:00
|
|
|
MAINTAINER= Sigfred Haversen <bsdlist@mumak.com>
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
# BSD alike + Apache License 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-03-13 17:46:18 -05:00
|
|
|
WANTLIB= apr-1 db z
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/tarballs/
|
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_bindings
|
|
|
|
FLAVOR?=
|
|
|
|
|
2006-06-03 20:21:58 -04:00
|
|
|
PYTHON_VER= 2.4
|
2004-12-01 11:47:54 -05:00
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2006-08-01 19:39:08 -04:00
|
|
|
LIB_DEPENDS= neon.>=24:neon->=0.24.7:net/neon \
|
|
|
|
aprutil-1::devel/apr-util \
|
|
|
|
expat.>=4::textproc/expat
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_bindings}
|
|
|
|
MULTI_PACKAGES= -perl -python
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
. if defined(PACKAGING) && !empty(SUBPACKAGE)
|
|
|
|
SHARED_ONLY= Yes
|
2006-09-30 02:23:58 -04:00
|
|
|
LIB_DEPENDS= expat.>=4::textproc/expat
|
|
|
|
. for _lib in svn_diff-1 svn_ra-1 svn_delta-1 svn_subr-1 svn_fs-1 \
|
|
|
|
svn_repos-1 svn_wc-1 svn_client-1
|
|
|
|
LIB_DEPENDS+= ${_lib}.>=${SO_VERSION}:subversion-${VERSION}:devel/subversion
|
|
|
|
. endfor
|
2005-03-13 17:46:18 -05:00
|
|
|
WANTLIB+= aprutil-1
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
. if ${SUBPACKAGE} == "-python"
|
|
|
|
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2006-09-30 02:23:58 -04:00
|
|
|
. for _lib in ${SVN_LIBS}
|
|
|
|
LIB_DEPENDS+= ${_lib}.>=${SO_VERSION}:subversion-${VERSION}:devel/subversion
|
|
|
|
. endfor
|
2006-09-18 07:50:39 -04:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2005-07-05 17:29:25 -04:00
|
|
|
WANTLIB+= neon xml2 m ssl crypto
|
2004-12-01 11:47:54 -05:00
|
|
|
. endif
|
|
|
|
. endif
|
2005-03-13 17:46:18 -05:00
|
|
|
|
|
|
|
. if !defined(PACKAGING)
|
2005-06-10 01:41:36 -04:00
|
|
|
BUILD_DEPENDS= ::lang/python/${PYTHON_VER} \
|
|
|
|
::devel/swig
|
2005-03-13 17:46:18 -05:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2005-10-02 05:02:05 -04:00
|
|
|
.if defined(PACKAGING) && (!defined(SUBPACKAGE) || empty(SUBPACKAGE))
|
2005-03-13 17:46:18 -05:00
|
|
|
WANTLIB+= crypto m ssl xml2 c
|
2004-12-01 11:47:54 -05:00
|
|
|
.endif
|
|
|
|
|
2005-11-04 04:42:31 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2004-12-01 11:47:54 -05:00
|
|
|
SEPARATE_BUILD= simple
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= PYTHON2=${LOCALBASE}/bin/python${PYTHON_VER}
|
2006-09-30 02:23:58 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
2004-12-01 11:47:54 -05:00
|
|
|
--with-neon=${LOCALBASE} \
|
|
|
|
--with-apr=${LOCALBASE} \
|
|
|
|
--with-apr-util=${LOCALBASE} \
|
|
|
|
--with-zlib \
|
|
|
|
--without-apache \
|
|
|
|
--without-apxs \
|
|
|
|
--without-jdk
|
|
|
|
.if !${FLAVOR:L:Mno_bindings}
|
|
|
|
CONFIGURE_ARGS+=--enable-swig-bindings=perl,python \
|
|
|
|
--with-swig=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-swig-bindings \
|
|
|
|
--without-swig
|
|
|
|
.endif
|
|
|
|
|
2006-04-15 06:27:38 -04:00
|
|
|
REGRESS_DEPENDS=::lang/python/${PYTHON_VER}
|
2004-12-01 11:47:54 -05:00
|
|
|
|
2005-11-04 04:42:31 -05:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE}," ${WRKSRC}/configure
|
2006-04-15 06:27:38 -04:00
|
|
|
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER}," ${WRKSRC}/configure
|
2005-11-04 04:42:31 -05:00
|
|
|
|
2004-12-01 11:47:54 -05:00
|
|
|
pre-build:
|
|
|
|
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER}," ${WRKBUILD}/Makefile
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_bindings}
|
2006-04-15 06:27:38 -04:00
|
|
|
REGRESS_DEPENDS+= ::devel/p5-IO-String \
|
|
|
|
::devel/subversion,-python
|
|
|
|
|
2004-12-01 11:47:54 -05:00
|
|
|
post-build:
|
2006-01-06 20:10:11 -05:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${MAKE_FLAGS} swig-py
|
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${MAKE_FLAGS} swig-pl
|
2004-12-01 11:47:54 -05:00
|
|
|
|
2006-07-15 12:55:32 -04:00
|
|
|
do-regress:
|
2006-01-06 20:10:11 -05:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2006-07-15 12:55:32 -04:00
|
|
|
${REGRESS_FLAGS} check FS_TYPE=bdb
|
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${REGRESS_FLAGS} check FS_TYPE=fsfs
|
2006-01-06 20:10:11 -05:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2006-04-15 06:27:38 -04:00
|
|
|
${REGRESS_FLAGS} TMPDIR=${WRKBUILD} check-swig-pl
|
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${REGRESS_FLAGS} check-swig-py
|
2004-12-01 11:47:54 -05:00
|
|
|
.endif
|
|
|
|
|
2005-10-02 05:02:05 -04:00
|
|
|
post-install:
|
|
|
|
.if !${FLAVOR:L:Mno_bindings}
|
2006-01-06 20:10:11 -05:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${FAKE_FLAGS} install-swig-py
|
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${FAKE_FLAGS} install-swig-pl
|
2005-10-02 05:02:05 -04:00
|
|
|
.endif
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion/backup
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion/hook-scripts/mailer
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion/hook-scripts/mailer/tests
|
2006-09-30 02:23:58 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/subversion/hook-scripts/enforcer
|
2005-10-02 05:02:05 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tools/backup/hot-backup.py \
|
|
|
|
${PREFIX}/share/examples/subversion/backup
|
2006-09-30 02:23:58 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/server-side/svn-backup-dumps.py \
|
|
|
|
${PREFIX}/share/examples/subversion/backup
|
2006-07-15 12:55:32 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/server-side/svn-fast-backup \
|
|
|
|
${PREFIX}/share/examples/subversion/backup/svn-fast-backup
|
2005-10-02 05:02:05 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tools/hook-scripts/* \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
2006-09-30 02:23:58 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/hook-scripts/enforcer/* \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts/enforcer
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/hook-scripts/check-case-insensitive.* \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/hook-scripts/detect-merge-conflicts.sh \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
2005-10-02 05:02:05 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/README \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/commit-access-control.cfg.example \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/commit-email.rb \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
2006-09-30 02:23:58 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/log-police.py \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
2005-10-02 05:02:05 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/svnperms.conf.example \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/svnperms.py \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/mailer.conf.example \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts/mailer
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/mailer.py \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts/mailer
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer/tests/* \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts/mailer/tests
|
|
|
|
|
2004-12-01 11:47:54 -05:00
|
|
|
.include <bsd.port.mk>
|