Opened 15 years ago

Closed 14 years ago

#24796 closed submission (fixed)

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

Reported by: paumard Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: yorick-z

Description (last modified by mf2k (Frank Schima))

Hi,

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

Depends on submitted yorick port.

T.

Attachments (1)

Portfile (1.3 KB) - added by paumard 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)

Changed 15 years ago by paumard

Attachment: Portfile added

comment:2 Changed 15 years ago by paumard

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

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

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
CC=/usr/bin/gcc-4.2
CFLAGS=-arch x86_64
LDFLAGS=-L/opt/local/lib -arch x86_64
zlib: found
  ZLIB_INC=-I/opt/local/lib
  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 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

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.