584a7496b5
This change adds a new atf-libs package that provides the libatf-c, libatf-c++ and libatf-sh libraries by themselves, without any of the ATF runtime tools. The atf package has been modified to only install the runtime utilities (atf-run and atf-report being the major ones) and depend on atf-libs. The purpose of this change is to allow packages that install tests to depend on a lighter-weight package, and to allow the addition of the upcoming kyua-atf-compat package. The latter will be a package that provides atf-run and atf-report replacements based on kyua-cli, and therefore will conflict with the atf tools (but not the libraries). While doing this, fix the pkgconfig overrides and ensure that we use the right version of the ATF libraries given that disabling shared library building appears to have been broken, possibly for a while.
27 lines
767 B
Makefile
27 lines
767 B
Makefile
# $NetBSD: Makefile,v 1.1 2012/07/01 15:27:43 jmmv Exp $
|
|
#
|
|
|
|
.include "../../devel/atf/Makefile.common"
|
|
PKGNAME= ${DISTNAME:S/-/-libs-/}
|
|
|
|
COMMENT:= ${COMMENT} - Libraries
|
|
|
|
post-install:
|
|
.for tool in atf-config atf-report atf-run atf-version
|
|
rm -f ${DESTDIR}${PREFIX}/bin/${tool}
|
|
rm -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${tool}.1
|
|
rm -rf ${DESTDIR}${PREFIX}/tests/atf/${tool}
|
|
.endfor
|
|
.for file in ${PKGMANDIR}/man5/atf-formats.5 \
|
|
${PKGMANDIR}/man7/atf.7 \
|
|
share/atf/atf-run.hooks \
|
|
share/doc/atf/ \
|
|
share/examples/ \
|
|
share/xml/ \
|
|
share/xsl/ \
|
|
tests/atf/Atffile \
|
|
tests/atf/Kyuafile
|
|
rm -rf ${DESTDIR}${PREFIX}/${file}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|