openbsd-ports/devel/subversion/Makefile

177 lines
6.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.24 2006/09/30 06:23:58 steven Exp $
COMMENT= "subversion revision control system"
COMMENT-perl= "perl interface to subversion"
COMMENT-python= "python interface to subversion"
VERSION= 1.4.0
DISTNAME= subversion-${VERSION}
PKGNAME-perl= p5-SVN-${VERSION}
PKGNAME-python= py-subversion-${VERSION}
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
CATEGORIES= devel
HOMEPAGE= http://subversion.tigris.org/
MAINTAINER= Sigfred Haversen <bsdlist@mumak.com>
# BSD alike + Apache License 2.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= apr-1 db z
MASTER_SITES= ${HOMEPAGE}/tarballs/
PSEUDO_FLAVORS= no_bindings
FLAVOR?=
PYTHON_VER= 2.4
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
.if !${FLAVOR:L:Mno_bindings}
MULTI_PACKAGES= -perl -python
SUBPACKAGE?=
. if defined(PACKAGING) && !empty(SUBPACKAGE)
SHARED_ONLY= Yes
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
WANTLIB+= aprutil-1
. if ${SUBPACKAGE} == "-python"
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
. 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}
WANTLIB+= neon xml2 m ssl crypto
. endif
. endif
. if !defined(PACKAGING)
2005-06-10 01:41:36 -04:00
BUILD_DEPENDS= ::lang/python/${PYTHON_VER} \
::devel/swig
. endif
.endif
.if defined(PACKAGING) && (!defined(SUBPACKAGE) || empty(SUBPACKAGE))
WANTLIB+= crypto m ssl xml2 c
.endif
USE_LIBTOOL= Yes
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
REGRESS_DEPENDS=::lang/python/${PYTHON_VER}
pre-configure:
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE}," ${WRKSRC}/configure
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER}," ${WRKSRC}/configure
pre-build:
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER}," ${WRKBUILD}/Makefile
.if !${FLAVOR:L:Mno_bindings}
REGRESS_DEPENDS+= ::devel/p5-IO-String \
::devel/subversion,-python
post-build:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${MAKE_FLAGS} swig-py
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${MAKE_FLAGS} swig-pl
do-regress:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${REGRESS_FLAGS} check FS_TYPE=bdb
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${REGRESS_FLAGS} check FS_TYPE=fsfs
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${REGRESS_FLAGS} TMPDIR=${WRKBUILD} check-swig-pl
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${REGRESS_FLAGS} check-swig-py
.endif
post-install:
.if !${FLAVOR:L:Mno_bindings}
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${FAKE_FLAGS} install-swig-py
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${FAKE_FLAGS} install-swig-pl
.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_DIR} ${PREFIX}/share/examples/subversion/hook-scripts/enforcer
${INSTALL_DATA} ${WRKBUILD}/tools/backup/hot-backup.py \
${PREFIX}/share/examples/subversion/backup
${INSTALL_DATA} ${WRKSRC}/tools/server-side/svn-backup-dumps.py \
${PREFIX}/share/examples/subversion/backup
${INSTALL_DATA} ${WRKSRC}/contrib/server-side/svn-fast-backup \
${PREFIX}/share/examples/subversion/backup/svn-fast-backup
${INSTALL_DATA} ${WRKBUILD}/tools/hook-scripts/* \
${PREFIX}/share/examples/subversion/hook-scripts
${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
${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/log-police.py \
${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
.include <bsd.port.mk>