diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-01-12 21:56:26 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-01-12 21:56:26 +0000 |
commit | 50adf2d217f460c575055068c411e5932093fdf5 (patch) | |
tree | bb882f86a4a58b7ebdf62d45cd596cf86226ea0b /usr.bin | |
parent | 571f9839e43b0fc9c18d18e751aacf457c5cdefc (diff) | |
download | FreeBSD-src-50adf2d217f460c575055068c411e5932093fdf5.zip FreeBSD-src-50adf2d217f460c575055068c411e5932093fdf5.tar.gz |
Generate and install pkg-config files for atf.
These files are required to get packages in ports to build against atf and
also to get a couple of currently-failing tests to pass.
I'm following the approach already used by the libusb pkg-config files
installed by the system regarding the location and the install rules.
MFC after: 5 days
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/atf/atf-sh/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/atf/atf-sh/Makefile b/usr.bin/atf/atf-sh/Makefile index 1688b19..1d72b56 100644 --- a/usr.bin/atf/atf-sh/Makefile +++ b/usr.bin/atf/atf-sh/Makefile @@ -45,8 +45,19 @@ 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 + .if ${MK_TESTS} != "no" SUBDIR+= tests .endif +.include "../../../lib/atf/common.mk" .include <bsd.prog.mk> |