The libpng-1.2.8-r1.ebuild fails with this error: cc -o pngtest -I -Wall -O3 -funroll-loops pngtest.o -L. -L -lpng12 -lz /usr/bin/ld: -L: directory name missing collect2: ld returned 1 exit status make: *** [pngtest] Error 1 !!! ERROR: media-libs/libpng-1.2.8-r1 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. A fix to sed expression in the ebuild (adding a "." in the sed expression) corrected the problem. Reproducible: Always Steps to Reproduce: Expected Results: emerge cleanly sed \ -e "/^ZLIBLIB=/s:=.*:=.:" \ -e "/^ZLIBINC=/s:=.*:=.:" \ -e "/^LIBPATH=/s:/lib:/$(get_libdir):" \ -e 's:mkdir:mkdir -p:' \ ${makefilein} > Makefile || die
This fix worked for me (on ~ppc-macos as well as ~x86). If it's allright with everyone else, I'd love to see it made global (it shouldn't have any detrimental effects, should it?). CC'ing base-system, since they're listed in the metadata.xml.
no, fix makefile.darwin like we already fix makefile.linux
As per SpankY's suggestion, added patch for makefile.darwin to libpng-1.2.8-build.patch. I had no problems to compile and install afterwards.
*** Bug 109032 has been marked as a duplicate of this bug. ***