# $NetBSD: Makefile,v 1.3 2003/08/15 23:42:59 epg Exp $ PKGNAME= ${PYPKGPREFIX}-subversion-${SVNVER} COMMENT= Python bindings and tools for Subversion .include "../../devel/subversion/Makefile.common" CONFIGURE_ENV+= PYTHON2=${PYTHONBIN} PY_PATCHPLIST= YES PYBINMODULE= YES PYTHON_PATCH_SCRIPTS= tools/cvs2svn/cvs2svn.py tools/hook-scripts/mailer.py ALL_TARGET= swig-py-lib swig-py INSTALL_TARGET= install-swig-py-lib install-swig-py MAKE_ENV+= EXTRA_CPPFLAGS=${BUILDLINK_CPPFLAGS} MAKEFLAGS+= swig_pydir=${LOCALBASE}/${PYSITELIB}/libsvn \ swig_pydir_extra=${LOCALBASE}/${PYSITELIB}/svn TEST_TARGET= all check post-install: ${RM} ${LOCALBASE}/${PYSITELIB}/libsvn/*.a ${RM} ${LOCALBASE}/${PYSITELIB}/libsvn/*.la ${INSTALL_DATA_DIR} ${SVNEXAMPLES}/python ${INSTALL_DATA} ${WRKSRC}/tools/examples/*.py ${SVNEXAMPLES}/python ${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer.py \ ${SVNEXAMPLES}/hook-scripts ${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/mailer.conf.example \ ${SVNEXAMPLES}/hook-scripts ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/subversion/cvs2svn ${INSTALL_DATA} ${WRKSRC}/tools/cvs2svn/README ${SVNDOC}/cvs2svn ${INSTALL_SCRIPT} ${WRKSRC}/tools/cvs2svn/cvs2svn.py \ ${PREFIX}/bin/cvs2svn ${INSTALL_SCRIPT_DIR} ${LOCALBASE}/${PYSITELIB}/rcsparse ${INSTALL_SCRIPT} ${WRKSRC}/tools/cvs2svn/rcsparse/*.py \ ${LOCALBASE}/${PYSITELIB}/rcsparse .include "../../devel/subversion/buildlink2.mk" .include "../../devel/swig-build/buildlink2.mk" .include "../../devel/swig-python/buildlink2.mk" .include "../../lang/python/application.mk" .include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk"