* 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.


SVN revision: 42367
This commit is contained in:
Vincent Torri 2009-09-09 15:50:52 +00:00
parent 555de0f914
commit 74a22e367f
2 changed files with 14 additions and 2 deletions

View File

@ -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"])

View File

@ -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}