svn commit: r253637 - in head: etc/mtree lib/libusb

Rui Paulo rpaulo at FreeBSD.org
Thu Jul 25 03:54:10 UTC 2013


Author: rpaulo
Date: Thu Jul 25 03:54:08 2013
New Revision: 253637
URL: http://svnweb.freebsd.org/changeset/base/253637

Log:
  Add pkgconf files for libusb.
  
  Reviewed by:	hselasky

Added:
  head/lib/libusb/libusb-0.1.pc   (contents, props changed)
  head/lib/libusb/libusb-1.0.pc   (contents, props changed)
  head/lib/libusb/libusb-2.0.pc   (contents, props changed)
Modified:
  head/etc/mtree/BSD.usr.dist
  head/lib/libusb/Makefile

Modified: head/etc/mtree/BSD.usr.dist
==============================================================================
--- head/etc/mtree/BSD.usr.dist	Thu Jul 25 03:48:37 2013	(r253636)
+++ head/etc/mtree/BSD.usr.dist	Thu Jul 25 03:54:08 2013	(r253637)
@@ -38,6 +38,8 @@
         ..
         lint
         ..
+        pkgconfig
+        ..
     ..
     libexec
         bsdinstall

Modified: head/lib/libusb/Makefile
==============================================================================
--- head/lib/libusb/Makefile	Thu Jul 25 03:48:37 2013	(r253636)
+++ head/lib/libusb/Makefile	Thu Jul 25 03:54:08 2013	(r253637)
@@ -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
 #

Added: head/lib/libusb/libusb-0.1.pc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libusb/libusb-0.1.pc	Thu Jul 25 03:54:08 2013	(r253637)
@@ -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}

Added: head/lib/libusb/libusb-1.0.pc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libusb/libusb-1.0.pc	Thu Jul 25 03:54:08 2013	(r253637)
@@ -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}

Added: head/lib/libusb/libusb-2.0.pc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libusb/libusb-2.0.pc	Thu Jul 25 03:54:08 2013	(r253637)
@@ -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}


More information about the svn-src-all mailing list