summaryrefslogtreecommitdiffstats
path: root/lib/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 /lib/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 'lib/atf')
-rw-r--r--lib/atf/libatf-c++/Makefile15
-rw-r--r--lib/atf/libatf-c++/tests/Makefile2
-rw-r--r--lib/atf/libatf-c/Makefile17
-rw-r--r--lib/atf/libatf-c/tests/Makefile2
4 files changed, 2 insertions, 34 deletions
diff --git a/lib/atf/libatf-c++/Makefile b/lib/atf/libatf-c++/Makefile
index 84477f7..121b77d 100644
--- a/lib/atf/libatf-c++/Makefile
+++ b/lib/atf/libatf-c++/Makefile
@@ -29,6 +29,7 @@
.include <bsd.init.mk>
LIB= atf-c++
+PRIVATELIB= true
SHLIB_MAJOR= 2
# libatf-c++ depends on the C version of the ATF library to build.
@@ -73,20 +74,6 @@ INCSDIR_atf-c++.hpp= ${INCLUDEDIR}
MAN= atf-c++-api.3
-all: atf-c++.pc
-atf-c++.pc: atf-c++.pc.in atf-version
- sed -e 's,__CXX__,${CXX},g' \
- -e 's,__INCLUDEDIR__,${INCLUDEDIR},g' \
- -e 's,__LIBDIR__,${LIBDIR},g' \
- -e "s,__ATF_VERSION__,$$(cat atf-version),g" \
- <${ATF}/atf-c++/atf-c++.pc.in >atf-c++.pc
-
-beforeinstall:
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- atf-c++.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
- ${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
- ${ATF}/atf-c++/atf-c++.m4 ${DESTDIR}${SHAREDIR}/aclocal
-
.if ${MK_TESTS} != "no"
SUBDIR= tests
.endif
diff --git a/lib/atf/libatf-c++/tests/Makefile b/lib/atf/libatf-c++/tests/Makefile
index c5a1d24..56355f2 100644
--- a/lib/atf/libatf-c++/tests/Makefile
+++ b/lib/atf/libatf-c++/tests/Makefile
@@ -26,6 +26,4 @@ ATF_TESTS_CXX+= ${_T}
SRCS.${_T}= ${_T}.cpp test_helpers.cpp
.endfor
-ATF_TESTS_SH= pkg_config_test
-
.include <bsd.test.mk>
diff --git a/lib/atf/libatf-c/Makefile b/lib/atf/libatf-c/Makefile
index 5c607f7..f067ede 100644
--- a/lib/atf/libatf-c/Makefile
+++ b/lib/atf/libatf-c/Makefile
@@ -29,6 +29,7 @@
.include <bsd.init.mk>
LIB= atf-c
+PRIVATELIB= true
SHLIB_MAJOR= 1
ATF= ${.CURDIR:H:H:H}/contrib/atf
@@ -75,22 +76,6 @@ INCSDIR_atf-c.h= ${INCLUDEDIR}
MAN= atf-c-api.3
-all: atf-c.pc
-atf-c.pc: atf-c.pc.in atf-version
- sed -e 's,__CC__,${CC},g' \
- -e 's,__INCLUDEDIR__,${INCLUDEDIR},g' \
- -e 's,__LIBDIR__,${LIBDIR},g' \
- -e "s,__ATF_VERSION__,$$(cat atf-version),g" \
- <${ATF}/atf-c/atf-c.pc.in >atf-c.pc
-
-beforeinstall:
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- atf-c.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
- ${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
- ${ATF}/atf-c/atf-common.m4 ${DESTDIR}${SHAREDIR}/aclocal
- ${INSTALL} -C -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
- ${ATF}/atf-c/atf-c.m4 ${DESTDIR}${SHAREDIR}/aclocal
-
.if ${MK_TESTS} != "no"
SUBDIR= tests
.endif
diff --git a/lib/atf/libatf-c/tests/Makefile b/lib/atf/libatf-c/tests/Makefile
index 1a091d3..70ba1a5 100644
--- a/lib/atf/libatf-c/tests/Makefile
+++ b/lib/atf/libatf-c/tests/Makefile
@@ -33,6 +33,4 @@ ATF_TESTS_C+= ${_T}
SRCS.${_T}= ${_T}.c test_helpers.c
.endfor
-ATF_TESTS_SH= pkg_config_test
-
.include <bsd.test.mk>
OpenPOWER on IntegriCloud