From c9f172fcc7d2057183ce5d185625f1042dd4c54b Mon Sep 17 00:00:00 2001 From: caro Date: Wed, 9 Sep 2009 15:50:52 +0000 Subject: [PATCH] * use Requires.private field in eet.pc if pkg-config 0.22 is installed. We list in it the required packages needed to compile eet. * remove uneeded flags that are in Libs.private (those from the packages that are listed in Requires.private) Patch by dottedmag, modified a bit. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@42367 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 12 ++++++++++++ eet.pc.in | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a513148..119cd7b 100644 --- a/configure.ac +++ b/configure.ac @@ -146,6 +146,18 @@ AC_SUBST(DEBUG_CFLAGS) ### Checks for programs AC_PROG_CC +# pkg-config +PKG_PROG_PKG_CONFIG + +# Check whether pkg-config supports Requires.private +if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then + pkgconfig_requires_private="Requires.private" +else + pkgconfig_requires_private="Requires" +fi +AC_SUBST(pkgconfig_requires_private) + + # doxygen program for documentation building EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) diff --git a/eet.pc.in b/eet.pc.in index 2acd9e1..065acf8 100644 --- a/eet.pc.in +++ b/eet.pc.in @@ -5,8 +5,8 @@ includedir=@includedir@ Name: eet Description: Library for speedy data storage, retrieval, and compression -Requires: @requirement_eet@ +@pkgconfig_requires_private@: @requirement_eet@ Version: @VERSION@ Libs: -L${libdir} -leet -Libs.private: @GNUTLS_LIBS@ @OPENSSL_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @EET_LIBS@ @fnmatch_libs@ -ljpeg -lz -lm +Libs.private: @EET_LIBS@ @fnmatch_libs@ -ljpeg -lz -lm Cflags: -I${includedir} -- 2.7.4