Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2013 03:54:08 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253637 - in head: etc/mtree lib/libusb
Message-ID:  <201307250354.r6P3s83c051956@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307250354.r6P3s83c051956>