summaryrefslogtreecommitdiffstats
path: root/lib/libusb
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2013-07-25 03:54:08 +0000
committerrpaulo <rpaulo@FreeBSD.org>2013-07-25 03:54:08 +0000
commit56a6c80c3f62e1f1330fac31e6547dd61f17143a (patch)
treee68f3db9840a30ae74b3efdd2720e72ee74a9089 /lib/libusb
parent8ef3c0b12c3b89ce81e384e9511bc1347e58a845 (diff)
downloadFreeBSD-src-56a6c80c3f62e1f1330fac31e6547dd61f17143a.zip
FreeBSD-src-56a6c80c3f62e1f1330fac31e6547dd61f17143a.tar.gz
Add pkgconf files for libusb.
Reviewed by: hselasky
Diffstat (limited to 'lib/libusb')
-rw-r--r--lib/libusb/Makefile8
-rw-r--r--lib/libusb/libusb-0.1.pc11
-rw-r--r--lib/libusb/libusb-1.0.pc11
-rw-r--r--lib/libusb/libusb-2.0.pc11
4 files changed, 41 insertions, 0 deletions
diff --git a/lib/libusb/Makefile b/lib/libusb/Makefile
index d0698e3..99bdfc2 100644
--- a/lib/libusb/Makefile
+++ b/lib/libusb/Makefile
@@ -38,6 +38,14 @@ SRCS+= libusb10_io.c
CFLAGS+= -DCOMPAT_32BIT
.endif
+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
+
#
# Cross platform support
#
diff --git a/lib/libusb/libusb-0.1.pc b/lib/libusb/libusb-0.1.pc
new file mode 100644
index 0000000..afd7a99
--- /dev/null
+++ b/lib/libusb/libusb-0.1.pc
@@ -0,0 +1,11 @@
+# $FreeBSD$
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-0.1
+Description: Library that abstracts ways to access USB devices (v0.1)
+Version: 0.1.0
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
diff --git a/lib/libusb/libusb-1.0.pc b/lib/libusb/libusb-1.0.pc
new file mode 100644
index 0000000..bed98de
--- /dev/null
+++ b/lib/libusb/libusb-1.0.pc
@@ -0,0 +1,11 @@
+# $FreeBSD$
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-1.0
+Description: Library that abstracts ways to access USB devices (v1.0)
+Version: 1.0.9
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
diff --git a/lib/libusb/libusb-2.0.pc b/lib/libusb/libusb-2.0.pc
new file mode 100644
index 0000000..34eabb8
--- /dev/null
+++ b/lib/libusb/libusb-2.0.pc
@@ -0,0 +1,11 @@
+# $FreeBSD$
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-2.0
+Description: Library that abstracts ways to access USB devices (v2.0)
+Version: 2.0.0
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
OpenPOWER on IntegriCloud