summaryrefslogtreecommitdiffstats
path: root/usr.bin/atf
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-05-25 12:01:13 +0000
committerjmmv <jmmv@FreeBSD.org>2014-05-25 12:01:13 +0000
commit37c4c2e766a0530bb4e66a7de791e02eee9e61e4 (patch)
tree02a4fa432f6ab0909440d4101d6e1bcad6b2b769 /usr.bin/atf
parent22a430b06f1054f1cdd35361ac1487bd2e969147 (diff)
downloadFreeBSD-src-37c4c2e766a0530bb4e66a7de791e02eee9e61e4.zip
FreeBSD-src-37c4c2e766a0530bb4e66a7de791e02eee9e61e4.tar.gz
Change libatf-c and libatf-c++ to be private libraries.
We should not be leaking these interfaces to the outside world given that it's much easier for third-party components to use the devel/atf package from ports. As a side-effect, we can also drop the ATF pkgconfig and aclocal files from the base system. Nothing in the base system needs these, and it was quite ugly to have to get them installed only so that a few ports could build. The offending ports have been fixed to depend on devel/atf explicitly. Reviewed by: bapt
Diffstat (limited to 'usr.bin/atf')
-rw-r--r--usr.bin/atf/atf-sh/Makefile13
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.bin/atf/atf-sh/Makefile b/usr.bin/atf/atf-sh/Makefile
index 845521c..3f461fd 100644
--- a/usr.bin/atf/atf-sh/Makefile
+++ b/usr.bin/atf/atf-sh/Makefile
@@ -40,24 +40,13 @@ CFLAGS+= -I${ATF}
DPADD+= ${LIBATF_C} ${LIBATF_CXX}
LDADD+= -latf-c++ -latf-c
+USEPRIVATELIB= atf-c++ atf-c
FILESGROUPS= SUBR
SUBRDIR= ${SHAREDIR}/atf
SUBR= libatf-sh.subr
-all: atf-sh.pc
-atf-sh.pc: atf-sh.pc.in atf-version
- sed -e 's,__EXEC_PREFIX__,/usr,g' \
- -e "s,__ATF_VERSION__,$$(cat atf-version),g" \
- <${ATF}/atf-sh/atf-sh.pc.in >atf-sh.pc
-
-beforeinstall:
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- atf-sh.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
- ${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
- ${ATF}/atf-sh/atf-sh.m4 ${DESTDIR}${SHAREDIR}/aclocal
-
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
OpenPOWER on IntegriCloud