curl-7.30.0-prefix.patch 880 B

12345678910111213141516171819202122
  1. diff -Naur curl-7.30.0.orig/curl-config.in curl-7.30.0/curl-config.in
  2. --- curl-7.30.0.orig/curl-config.in 2013-02-06 09:44:37.000000000 -0500
  3. +++ curl-7.30.0/curl-config.in 2013-04-17 18:43:56.000000000 -0400
  4. @@ -134,7 +134,7 @@
  5. else
  6. CPPFLAG_CURL_STATICLIB=""
  7. fi
  8. - if test "X@includedir@" = "X/usr/include"; then
  9. + if test "X@includedir@" = "X@GENTOO_PORTAGE_EPREFIX@/usr/include"; then
  10. echo "$CPPFLAG_CURL_STATICLIB"
  11. else
  12. echo "${CPPFLAG_CURL_STATICLIB}-I@includedir@"
  13. @@ -142,7 +142,7 @@
  14. ;;
  15. --libs)
  16. - if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
  17. + if test "X@libdir@" != "X@GENTOO_PORTAGE_EPREFIX@/usr/lib" -a "X@libdir@" != "X@GENTOO_PORTAGE_EPREFIX@/usr/lib64"; then
  18. CURLLIBDIR="-L@libdir@ "
  19. else
  20. CURLLIBDIR=""