summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-29 21:40:35 +0100
committerGravatar Martin Szulecki2015-01-29 21:40:35 +0100
commite4349e5b41e06f710106141e7853c3f7e3899d62 (patch)
treea9137259fd5ca7ea8a286dd86dbe51e8f38a9e02
parent8f8219bec024d471bfc7574433e3b69019b3988e (diff)
downloadlibirecovery-e4349e5b41e06f710106141e7853c3f7e3899d62.tar.gz
libirecovery-e4349e5b41e06f710106141e7853c3f7e3899d62.tar.bz2
Improve maintainability and requires of pkg-config file
-rw-r--r--configure.ac6
-rw-r--r--libirecovery.pc.in6
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