[gobolinux-users] Re: Problem with libpng

Hisham Muhammad hisham.hm at gmail.com
Thu Jul 13 22:28:34 GMT 2006


On 7/13/06, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> There's a problem with compilation of latest version (1.2.10) of libpng,
> or rather $target isn't expanded in pkgconfig/libpng.pc. Instead of giving
> absolute path for prefix it says "prefix=$target". This breaks all
> compilations that uses libpng. Anyone got a good idea on how to solve this
> in a simple way?

Yes. Just looked at the recipe: $target is inside singlequotes. Looks
like some of that ${} stuff there should not be expanded though. So
I'd probably tweak the recipe like this:

--- Recipe.old  2006-07-13 19:29:52.000000000 -0300
+++ Recipe      2006-07-13 19:30:09.000000000 -0300
@@ -13,7 +13,7 @@
 # FIXME: Why the heck libpng12.pc is not being correctly set in libpng 1.2.10?
 pre_link() {
    echo '
-prefix=$target
+prefix='"$target"'
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${exec_prefix}/include

Not tested, though it should work.

-- Hisham


More information about the gobolinux-users mailing list