[Glibc-bsd-commits] r2889 - trunk/freebsd-libs/debian

Aurelien Jarno aurel32 at alioth.debian.org
Tue Dec 8 18:49:39 UTC 2009


Author: aurel32
Date: 2009-12-08 18:49:28 +0000 (Tue, 08 Dec 2009)
New Revision: 2889

Added:
   trunk/freebsd-libs/debian/libusb-config
Modified:
   trunk/freebsd-libs/debian/changelog
   trunk/freebsd-libs/debian/libusb2-dev.install
   trunk/freebsd-libs/debian/rules
Log:
  * Add a libusb-config script matching libusb 0.1.



Modified: trunk/freebsd-libs/debian/changelog
===================================================================
--- trunk/freebsd-libs/debian/changelog	2009-12-08 18:42:56 UTC (rev 2888)
+++ trunk/freebsd-libs/debian/changelog	2009-12-08 18:49:28 UTC (rev 2889)
@@ -8,8 +8,9 @@
   * Make libusb2-dev conflict with libusb-dev.
   * Add a libusb2-udev package. 
   * Add pkg-config files matching libusb 0.1/libusb 1.0.
+  * Add a libusb-config script matching libusb 0.1.
 
- -- Aurelien Jarno <aurel32 at debian.org>  Tue, 08 Dec 2009 19:42:24 +0100
+ -- Aurelien Jarno <aurel32 at debian.org>  Tue, 08 Dec 2009 19:48:53 +0100
 
 freebsd-libs (8.0-2) unstable; urgency=low
 

Added: trunk/freebsd-libs/debian/libusb-config
===================================================================
--- trunk/freebsd-libs/debian/libusb-config	                        (rev 0)
+++ trunk/freebsd-libs/debian/libusb-config	2009-12-08 18:49:28 UTC (rev 2889)
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+prefix=/usr
+exec_prefix=${prefix}
+exec_prefix_set=no
+
+usage()
+{
+	cat <<EOF
+Usage: libusb-config [OPTIONS] [LIBRARIES]
+Options:
+	[--prefix[=DIR]]
+	[--exec-prefix[=DIR]]
+	[--version]
+	[--libs]
+	[--cflags]
+EOF
+	exit $1
+}
+
+if test $# -eq 0; then
+	usage 1 1>&2
+fi
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --prefix=*)
+      prefix=$optarg
+      if test $exec_prefix_set = no ; then
+        exec_prefix=$optarg
+      fi
+      ;;
+    --prefix)
+      echo_prefix=yes
+      ;;
+    --exec-prefix=*)
+      exec_prefix=$optarg
+      exec_prefix_set=yes
+      ;;
+    --exec-prefix)
+      echo_exec_prefix=yes
+      ;;
+    --version)
+      echo 0.1.12
+      exit 0
+      ;;
+    --cflags)
+      if test "${prefix}/include" != /usr/include ; then
+        includes="-I${prefix}/include"
+      fi
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+if test "$echo_prefix" = "yes"; then
+	echo $prefix
+fi
+if test "$echo_exec_prefix" = "yes"; then
+	echo $exec_prefix
+fi
+if test "$echo_cflags" = "yes"; then
+	echo $includes
+fi
+if test "$echo_libs" = "yes"; then
+	echo -L${exec_prefix}/lib -lusb 
+fi


Property changes on: trunk/freebsd-libs/debian/libusb-config
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/freebsd-libs/debian/libusb2-dev.install
===================================================================
--- trunk/freebsd-libs/debian/libusb2-dev.install	2009-12-08 18:42:56 UTC (rev 2888)
+++ trunk/freebsd-libs/debian/libusb2-dev.install	2009-12-08 18:49:28 UTC (rev 2889)
@@ -1,3 +1,4 @@
+usr/bin/libusb-config
 usr/lib/libusb.so
 usr/lib/libusb.a
 usr/lib/pkgconfig/libusb*.pc

Modified: trunk/freebsd-libs/debian/rules
===================================================================
--- trunk/freebsd-libs/debian/rules	2009-12-08 18:42:56 UTC (rev 2888)
+++ trunk/freebsd-libs/debian/rules	2009-12-08 18:49:28 UTC (rev 2889)
@@ -153,7 +153,8 @@
 	$(PMAKE) -C $(CURDIR)/lib/libusb install
 
 	mkdir -p $(CURDIR)/debian/tmp/usr/lib/pkgconfig
-	install -m644 debian/libusb*.pc $(CURDIR)/debian/tmp/usr/lib/pkgconfig 
+	install -m644 debian/libusb*.pc $(CURDIR)/debian/tmp/usr/lib/pkgconfig
+	install -m755 debian/libusb-cofnig $(CURDIR)/debian/tmp/usr/bin
 
 	dh_install -s --list-missing --sourcedir=debian/tmp
 




More information about the Glibc-bsd-commits mailing list