* use Requires.private field in eet.pc if pkg-config 0.22 is installed.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Sep 2009 15:50:52 +0000 (15:50 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Sep 2009 15:50:52 +0000 (15:50 +0000)
   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
eet.pc.in

index a513148..119cd7b 100644 (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"])
index 2acd9e1..065acf8 100644 (file)
--- 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}