2006-06-03 20:21:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2006/06/04 00:21: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-04-15 06:27:38 -04:00
|
|
|
VERSION= 1.3.1
|
2004-12-01 11:47:54 -05:00
|
|
|
DISTNAME= subversion-${VERSION}
|
2005-04-20 23:36:14 -04:00
|
|
|
PKGNAME-perl= p5-SVN-${VERSION}
|
2006-06-03 20:21:58 -04:00
|
|
|
PKGNAME-python= py-subversion-${VERSION}p0
|
2006-01-06 20:10:11 -05:00
|
|
|
SHARED_LIBS= svn_client-1 0.0 \
|
|
|
|
svn_delta-1 0.0 \
|
|
|
|
svn_diff-1 0.0 \
|
|
|
|
svn_fs-1 0.0 \
|
|
|
|
svn_fs_base-1 0.0 \
|
|
|
|
svn_fs_fs-1 0.0 \
|
|
|
|
svn_ra-1 0.0 \
|
|
|
|
svn_ra_dav-1 0.0 \
|
|
|
|
svn_ra_local-1 0.0 \
|
|
|
|
svn_ra_svn-1 0.0 \
|
|
|
|
svn_repos-1 0.0 \
|
|
|
|
svn_subr-1 0.0 \
|
|
|
|
svn_swig_perl-1 0.0 \
|
|
|
|
svn_swig_py-1 0.0 \
|
|
|
|
svn_wc-1 0.0
|
|
|
|
|
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
|
|
|
|
|
|
|
|
LIB_DEPENDS= neon.24:neon->=0.24.7:net/neon \
|
|
|
|
aprutil-1.0::devel/apr-util \
|
2005-03-13 17:46:18 -05:00
|
|
|
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
|
2005-03-13 17:46:18 -05:00
|
|
|
LIB_DEPENDS= svn_diff-1,svn_ra-1,svn_delta-1,svn_subr-1,svn_fs-1,svn_repos-1,svn_wc-1,svn_client-1::devel/subversion \
|
|
|
|
expat.4::textproc/expat
|
|
|
|
WANTLIB+= aprutil-1
|
2004-12-01 11:47:54 -05:00
|
|
|
|
|
|
|
. if ${SUBPACKAGE} == "-python"
|
|
|
|
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2005-07-05 17:29:25 -04:00
|
|
|
LIB_DEPENDS+= svn_diff-1,svn_ra-1,svn_delta-1,svn_subr-1,svn_fs-1,svn_repos-1,svn_wc-1,svn_client-1,svn_fs_fs-1,svn_ra_svn-1,svn_ra_local-1,svn_fs_base-1,svn_ra_dav-1::devel/subversion
|
2006-06-03 20:21:58 -04:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}.0.0: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}
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--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
|
|
|
|
2005-01-21 15:29:10 -05:00
|
|
|
post-regress:
|
2006-01-06 20:10:11 -05:00
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${REGRESS_FLAGS} check FSTYPE=bdb
|
|
|
|
@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
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tools/backup/hot-backup.py \
|
|
|
|
${PREFIX}/share/examples/subversion/backup
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tools/hook-scripts/* \
|
|
|
|
${PREFIX}/share/examples/subversion/hook-scripts
|
|
|
|
${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
|
|
|
|
${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>
|