summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-04-13 11:00:08 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-04-13 11:00:08 +0000
commita6286a66da279bb819d406a73b9c2fe6e5619ec0 (patch)
treeb1bd23e711c99abf4ba0843f5ea92992b7271766
parentVersion bump, fixed bug #295300, taking over maintenance, dropped old, update... (diff)
downloadgentoo-2-a6286a66da279bb819d406a73b9c2fe6e5619ec0.tar.gz
gentoo-2-a6286a66da279bb819d406a73b9c2fe6e5619ec0.tar.bz2
gentoo-2-a6286a66da279bb819d406a73b9c2fe6e5619ec0.zip
Provide a libusb.pc for better emulation of Linux's libusb
(Portage version: 2.2_rc67/cvs/Linux x86_64)
-rw-r--r--sys-freebsd/freebsd-lib/ChangeLog6
-rw-r--r--sys-freebsd/freebsd-lib/files/libusb.pc.in11
-rw-r--r--sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild8
3 files changed, 23 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-lib/ChangeLog b/sys-freebsd/freebsd-lib/ChangeLog
index fa8aa5704f95..a124afaae713 100644
--- a/sys-freebsd/freebsd-lib/ChangeLog
+++ b/sys-freebsd/freebsd-lib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-freebsd/freebsd-lib
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.86 2010/03/23 11:24:11 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.87 2010/04/13 11:00:08 aballier Exp $
+
+ 13 Apr 2010; Alexis Ballier <aballier@gentoo.org> freebsd-lib-8.0.ebuild,
+ +files/libusb.pc.in:
+ Provide a libusb.pc for better emulation of Linux's libusb
23 Mar 2010; Javier Villavicencio <the_paya@gentoo.org>
freebsd-lib-8.0.ebuild:
diff --git a/sys-freebsd/freebsd-lib/files/libusb.pc.in b/sys-freebsd/freebsd-lib/files/libusb.pc.in
new file mode 100644
index 000000000000..f63c6e399816
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/libusb.pc.in
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=@LIBDIR@
+includedir=${prefix}/include
+
+Name: libusb
+Description: USB access library (FreeBSD version)
+Version: 0.1.12
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
+
diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild
index 14c9d535b330..02bd6956cea5 100644
--- a/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild
+++ b/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild,v 1.4 2010/03/23 11:24:11 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-8.0.ebuild,v 1.5 2010/04/13 11:00:08 aballier Exp $
EAPI=2
@@ -365,6 +365,12 @@ END_LDSCRIPT
# during compile or install phase.
SANDBOX_PREDICT="/dev/crypto"
EOF
+
+ # Install a libusb.pc for better compat with Linux's libusb
+ if use usb ; then
+ dodir /usr/$(get_libdir)/pkgconfig
+ sed -e "s:@LIBDIR@:/usr/$(get_libdir):" "${FILESDIR}/libusb.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/libusb.pc" || die
+ fi
}
install_includes()