From e4349e5b41e06f710106141e7853c3f7e3899d62 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 29 Jan 2015 21:40:35 +0100 Subject: Improve maintainability and requires of pkg-config file --- configure.ac | 6 +++++- libirecovery.pc.in | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 7a28800..f3f9bde 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,11 @@ dnl libtool versioning # CURRENT : REVISION : AGE LIBIRECOVERY_SO_VERSION=2:1:0 +dnl Minimum package versions +LIBUSB_VERSION=1.0.3 + AC_SUBST(LIBIRECOVERY_SO_VERSION) +AC_SUBST(LIBUSB_VERSION) # Checks for programs. AC_PROG_CC @@ -26,7 +30,7 @@ AM_PROG_CC_C_O AC_PROG_LIBTOOL # Checks for libraries. -PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3) +PKG_CHECK_MODULES(libusb, libusb-1.0 >= $LIBUSB_VERSION) # Check additional platform flags case "$host_os" in diff --git a/libirecovery.pc.in b/libirecovery.pc.in index 752af9d..39cc29b 100644 --- a/libirecovery.pc.in +++ b/libirecovery.pc.in @@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ -Name: libirecovery +Name: @PACKAGE_NAME@ Description: A library to communicate with iBoot/iBSS on iOS devices via USB -Version: @VERSION@ +Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lirecovery Cflags: -I${includedir} - +Requires.private: libusb-1.0 >= @LIBUSB_VERSION@ \ No newline at end of file -- cgit v1.1-32-gdbae