Bug 152539 - graphics/megapov fails to build with png 1.4
Summary: graphics/megapov fails to build with png 1.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Maho Nakata
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 10:40 UTC by Andrey Zholos
Modified: 2010-12-25 01:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.36 KB, patch)
2010-11-24 10:40 UTC, Andrey Zholos
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Zholos 2010-11-24 10:40:10 UTC
The POV-Ray port has a patch to allow it to compile with libpng 1.4.
MegaPOV requires the same patch.

This problem is obscured because sometimes MegaPOV configure can't find
the system's libpng and compiles its own libpng 1.2.8 instead (and also
its own libjpeg and libtiff). This apparently depends on whether Xorg
is installed.

Fix: See patch.

Patch attached with submission follows:
How-To-Repeat: Without Xorg installed, configure says:

checking for library containing png_get_libpng_ver... no
configure: libpng will be built and statically linked to MegaPOV


With Xorg installed, configure says:

checking for library containing png_get_libpng_ver... -lpng
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for libpng version >= 1.2.5... 1.4.3, ok

Later, the build stops with many benign warnings and two errors:

png_pov.cpp:1440: error: 'struct png_info_struct' has no member named 'trans'
png_pov.cpp:1473: error: 'struct png_info_struct' has no member named 'trans'
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-24 10:40:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->maho

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-12-25 01:45:39 UTC
maho        2010-12-25 01:45:34 UTC

  FreeBSD ports repository

  Modified files:
    graphics/megapov     Makefile 
  Added files:
    graphics/megapov/files patch-png_pov.cpp 
  Log:
  Build fix.
  
  PR:     152539
  Submitted by: Andrey Zholos <aaz@althenia.net>
  
  Revision  Changes    Path
  1.18      +2 -0      ports/graphics/megapov/Makefile
  1.1       +20 -0     ports/graphics/megapov/files/patch-png_pov.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Maho Nakata freebsd_committer freebsd_triage 2010-12-25 01:45:50 UTC
State Changed
From-To: open->closed

thanks!