sane_pkgconfig.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. Index: redland-1.0.8/configure.ac
  2. ===================================================================
  3. --- redland-1.0.8.orig/configure.ac 2008-07-04 07:56:25.000000000 +0100
  4. +++ redland-1.0.8/configure.ac 2008-12-17 23:04:25.000000000 +0000
  5. @@ -404,7 +404,7 @@
  6. if test "$have_libdb" = yes; then
  7. bdb_available="Version $bdb_version (library $bdb_dbname in $bdb_lib_dir)"
  8. - LIBRDF_LIBS="$LIBRDF_LIBS $nLDFLAGS -l$bdb_dbname"
  9. + LIBRDF_LIBS="$LIBRDF_LIBS -l$bdb_dbname"
  10. LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS $nCPPFLAGS"
  11. fi
  12. Index: redland-1.0.8/raptor/configure.ac
  13. ===================================================================
  14. --- redland-1.0.8.orig/raptor/configure.ac 2008-12-17 23:04:25.000000000 +0000
  15. +++ redland-1.0.8/raptor/configure.ac 2008-12-18 11:18:36.000000000 +0000
  16. @@ -304,9 +304,12 @@
  17. AC_DEFINE(HAVE_ROUND, 1, [have round() in libm]),
  18. AC_MSG_RESULT(no))
  19. LIBS="$oLIBS"
  20. +PRIV_PC_LIBS=""
  21. +PRIV_PC_REQS=""
  22. if test "X$need_libm" = Xyes; then
  23. LIBS="$LIBS -lm"
  24. + PRIV_PC_LIBS="$PRIV_PC_LIBS -lm"
  25. fi
  26. @@ -369,6 +372,7 @@
  27. AC_MSG_CHECKING(for working expat in libxmlparse and libxmltok)
  28. if test $xmlp = 1 -a $xmlt = 1 -a $ac_cv_header_xmlparse_h = yes; then
  29. LIBS="$LIBS -lxmlparse -lxmltok"
  30. + PRIV_PC_LIBS="$PRIV_PC_LIBS -lxmlparse -lxmltok"
  31. AC_TRY_RUN([#include <stdio.h>
  32. main() {XML_ParserCreate(NULL); return(0);}],
  33. worked=yes, worked=no, worked=no)
  34. @@ -391,6 +395,7 @@
  35. AC_MSG_CHECKING(for working expat in libexpat)
  36. if test $libexpat = 1 -a $ac_cv_header_expat_h = yes ; then
  37. LIBS="$LIBS -lexpat"
  38. + PRIV_PC_LIBS="$PRIV_PC_LIBS -lexpat"
  39. AC_TRY_RUN([#include <stdio.h>
  40. main() {XML_ParserCreate(NULL); return(0);}],
  41. worked=yes, worked=no, worked=no)
  42. @@ -531,6 +536,7 @@
  43. oLIBS="$LIBS"
  44. if test "X$XML_CONFIG" != X; then
  45. LIBS="$LIBS `$XML_CONFIG --libs`"
  46. + PRIV_PC_REQS="$PRIV_PC_REQS libxml-2.0"
  47. AC_CHECK_FUNC(xmlCreatePushParserCtxt, have_xmlCreatePushParserCtxt=yes, have_xmlCreatePushParserCtxt=no)
  48. AC_MSG_CHECKING(for system (GNOME) libxml library)
  49. if test $have_xmlCreatePushParserCtxt = yes; then
  50. @@ -637,6 +643,7 @@
  51. oLIBS="$LIBS"
  52. if test "X$XSLT_CONFIG" != X; then
  53. LIBS="$LIBS `$XSLT_CONFIG --libs`"
  54. + PRIV_PC_REQS="$PRIV_PC_REQS libxslt"
  55. AC_CHECK_FUNC(xsltSaveResultToString, have_xsltSaveResultToString=yes, have_xsltSaveResultToString=no)
  56. AC_MSG_CHECKING(for system libxslt library)
  57. if test $have_xsltSaveResultToString = yes; then
  58. @@ -1034,6 +1041,7 @@
  59. if test $need_libcurl = 1; then
  60. CPPFLAGS="$CPPFLAGS `$CURL_CONFIG --cflags`"
  61. LIBS="$LIBS `$CURL_CONFIG --libs`"
  62. + PRIV_PC_REQS="$PRIV_PC_REQS libcurl"
  63. AC_LIBOBJ(raptor_www_curl)
  64. fi
  65. @@ -1054,6 +1062,7 @@
  66. if test $ac_cv_header_libinn_h = yes; then
  67. CPPFLAGS="$CPPFLAGS -I/usr/include/inn"
  68. LIBS="$LIBS -L/usr/lib/news -linn"
  69. + PRIV_PC_LIBS="$PRIV_PC_LIBS -linn"
  70. AC_CHECK_LIB(inn, HashMessageID, have_libinn=yes)
  71. AC_MSG_CHECKING(parsedate in libinn)
  72. @@ -1102,6 +1111,7 @@
  73. if test $need_libfetch = 1; then
  74. LIBS="$LIBS -lfetch"
  75. + PRIV_PC_LIBS="$PRIV_PC_REQS -lfetch"
  76. AC_LIBOBJ(raptor_www_libfetch)
  77. fi
  78. @@ -1120,6 +1130,7 @@
  79. else
  80. LIBS="$LIBS `$XML_CONFIG --libs`"
  81. CPPFLAGS="`$XML_CONFIG --cflags` $CPPFLAGS"
  82. + PRIV_PC_REQS="$PRIV_PC_REQS libxml-2.0"
  83. fi
  84. RAPTOR_XML_PARSER=libxml
  85. fi
  86. @@ -1147,6 +1158,7 @@
  87. if test $need_libxslt = 1; then
  88. LIBS="$LIBS `$XSLT_CONFIG --libs`"
  89. CPPFLAGS="`$XSLT_CONFIG --cflags` $CPPFLAGS"
  90. + PRIV_PC_REQS="$PRIV_PC_REQS libxslt"
  91. fi
  92. RAPTOR_LIBTOOLLIBS=libraptor.la
  93. @@ -1214,6 +1226,9 @@
  94. AC_SUBST(MEM_LIBS)
  95. AC_SUBST(STANDARD_CFLAGS)
  96. +AC_SUBST(PRIV_PC_LIBS)
  97. +AC_SUBST(PRIV_PC_REQS)
  98. +
  99. ECHO_N="$ECHO_N"
  100. ECHO_C="$ECHO_C"
  101. AC_SUBST(ECHO_N)
  102. Index: redland-1.0.8/raptor/raptor.pc.in
  103. ===================================================================
  104. --- redland-1.0.8.orig/raptor/raptor.pc.in 2008-12-17 23:06:47.000000000 +0000
  105. +++ redland-1.0.8/raptor/raptor.pc.in 2008-12-17 23:07:20.000000000 +0000
  106. @@ -6,7 +6,8 @@
  107. Name: Raptor
  108. Description: RDF Parser Toolkit Library
  109. Version: @VERSION@
  110. +Requires.private: @PRIV_PC_REQS@
  111. Libs: -L${libdir} -lraptor
  112. -Libs.private: @LIBS@
  113. +Libs.private: @PRIV_PC_LIBS@@
  114. Cflags: -I${includedir}