mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
only install .pc files when we are not installing 32bit compat libs...
This fixes the problem of installing the .pc files multiple times...
This commit is contained in:
parent
75c3b1178b
commit
89ca4e2de0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273756
|
@ -38,6 +38,7 @@ SRCS+= libusb10_io.c
|
|||
CFLAGS+= -DCOMPAT_32BIT
|
||||
.endif
|
||||
|
||||
.ifndef COMPAT_32BIT
|
||||
beforeinstall:
|
||||
${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${.CURDIR}/libusb-0.1.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
|
||||
|
@ -45,6 +46,7 @@ beforeinstall:
|
|||
${.CURDIR}/libusb-1.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
|
||||
${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${.CURDIR}/libusb-2.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
|
||||
.endif
|
||||
|
||||
#
|
||||
# Cross platform support
|
||||
|
|
|
@ -68,9 +68,11 @@ test: example minigzip
|
|||
(export LD_LIBRARY_PATH=. ; \
|
||||
echo hello world | ./minigzip | ./minigzip -d )
|
||||
|
||||
.ifndef COMPAT_32BIT
|
||||
beforeinstall:
|
||||
${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${.CURDIR}/zlib.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
|
|
Loading…
Reference in a new issue