New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #24796 (closed submission: fixed)

Opened 4 years ago

Last modified 4 years ago

yorick-z: zlib, jpeg and png support for the Yorick language

Reported by: thibaut.paumard@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: yorick-z

Description (last modified by macsforever2000@…) (diff)


again a Yorick plug-in (zlib, png and jpeg compression).

Depends on submitted yorick port.



Portfile (1.3 KB) - added by thibaut.paumard@… 4 years ago.

Change History

comment:1 Changed 4 years ago by macsforever2000@…

  • Description modified (diff)

Changed 4 years ago by thibaut.paumard@…

comment:2 Changed 4 years ago by thibaut.paumard@…

Removed "revision" and took care of building with the right instance of yorick.

comment:3 Changed 4 years ago by ryandesign@…

  • Owner changed from macports-tickets@… to ryandesign@…
  • Status changed from new to assigned

On my Mac (with Snow Leopard) the configure script finds zlib but not png or jpeg:

================ begin yorick-z configuration ====================

updated ./Makefile
Using /opt/local/lib/yorick/Make.cfg
CFLAGS=-arch x86_64
LDFLAGS=-L/opt/local/lib -arch x86_64
zlib: found
  ZLIB_LIB=-L/opt/local/lib -lz
WARNING: --png=/opt/local/lib DID NOT WORK, IS IT BUILT?
png: not found
WARNING: --jpeg=/opt/local/lib DID NOT WORK, IS IT BUILT?
jpeg: not found

================ yorick-z configuration completed ================

These yorick configuration scripts are really peculiar. They want us to point these arguments at a "directory containing png.h and libpng.a (uninstalled)". We don't have such a directory. We have installed directories, where png.h is in ${prefix}/include and libpng.a is in ${prefix}/lib. These configure scripts may need some surgery before they'll function sensibly.

comment:4 Changed 4 years ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

The README claims we can set environment variables like ZLIB_INC and ZLIB_LIB instead of passing configure arguments like --zlib=, but this appears to be a lie (does not work).

The easiest fix I found was to replace the hardcoded list of paths in the configure script (/sw and /usr/local) with the MacPorts prefix.

Committed the port in r67911 with these changes:

  • fixed detection of libpng and libjpeg
  • disabled universal variant
  • some whitespace and formatting changes

I trust there was a good reason why we are building from CVS instead of the latest stable version of this software?

Note: See TracTickets for help on using tickets.