Convert libs with pc files to use PCFILES

Now the .pc ends up in the correct package (-dev)

Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D29172
MFC after:      2 weeks
This commit is contained in:
Emmanuel Vadot 2021-03-16 07:13:07 +01:00
parent 8a84b3736b
commit 500f4659d7
4 changed files with 4 additions and 8 deletions

View File

@ -154,8 +154,7 @@ CFLAGS+= -DSYMBOL_VERSIONING
CLEANFILES+= liblzma.pc CLEANFILES+= liblzma.pc
FILES= liblzma.pc PCFILES= liblzma.pc
FILESDIR= ${LIBDATADIR}/pkgconfig
liblzma.pc: liblzma.pc.in liblzma.pc: liblzma.pc.in
sed -e 's,@prefix@,/usr,g ; \ sed -e 's,@prefix@,/usr,g ; \

View File

@ -86,7 +86,6 @@ ${inc}: ${inc}.in
sed -e 's,X.YY,${FILEVER:S,",,g:S,.,,g},g' ${.ALLSRC} > ${.TARGET} sed -e 's,X.YY,${FILEVER:S,",,g:S,.,,g},g' ${.ALLSRC} > ${.TARGET}
.endfor .endfor
FILES+= libmagic.pc PCFILES= libmagic.pc
FILESDIR_libmagic.pc= ${LIBDATADIR}/pkgconfig
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -38,8 +38,7 @@ SRCS+= libusb10_io.c
CFLAGS+= -DCOMPAT_32BIT CFLAGS+= -DCOMPAT_32BIT
.endif .endif
FILES= libusb-0.1.pc libusb-1.0.pc libusb-2.0.pc PCFILES= libusb-0.1.pc libusb-1.0.pc libusb-2.0.pc
FILESDIR= ${LIBDATADIR}/pkgconfig
# #
# Cross platform support # Cross platform support

View File

@ -75,7 +75,6 @@ test: example minigzip
(export LD_LIBRARY_PATH=. ; \ (export LD_LIBRARY_PATH=. ; \
echo hello world | ./minigzip | ./minigzip -d ) echo hello world | ./minigzip | ./minigzip -d )
FILES= zlib.pc PCFILES= zlib.pc
FILESDIR= ${LIBDATADIR}/pkgconfig
.include <bsd.lib.mk> .include <bsd.lib.mk>