summaryrefslogtreecommitdiffstats
path: root/lib/libusb
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-09-18 23:49:32 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-09-18 23:49:32 +0000
commitdeb97713e003a627c3372748f02d703d89e62128 (patch)
tree92732628620a56a8f192cc701136a350dd021f7c /lib/libusb
parente27c20e7fb7eb194dca656f39b8bac640fdc1229 (diff)
downloadFreeBSD-src-deb97713e003a627c3372748f02d703d89e62128.zip
FreeBSD-src-deb97713e003a627c3372748f02d703d89e62128.tar.gz
Replace beforeinstall: handling with FILES.
This actually fixes some cases to respect LIBRARIES_ONLY. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libusb')
-rw-r--r--lib/libusb/Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libusb/Makefile b/lib/libusb/Makefile
index 6560f8f..25d886a 100644
--- a/lib/libusb/Makefile
+++ b/lib/libusb/Makefile
@@ -35,16 +35,9 @@ SRCS+= libusb10_io.c
.if defined(COMPAT_32BIT)
CFLAGS+= -DCOMPAT_32BIT
-.endif
-
-.ifndef COMPAT_32BIT
-beforeinstall:
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${.CURDIR}/libusb-0.1.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${.CURDIR}/libusb-1.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${.CURDIR}/libusb-2.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
+.else
+FILES= libusb-0.1.pc libusb-1.0.pc libusb-2.0.pc
+FILESDIR= ${LIBDATADIR}/pkgconfig
.endif
#
OpenPOWER on IntegriCloud