Opened 15 years ago

Closed 14 years ago

#24818 closed submission (fixed)

yorick-gl: OpenGL 3D graphics support for the Yorick language

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

Description

Hi,

This is the OpenGL wrapper for Yorick.

Yorick is submitted: 24768.

To test this port, install it, launch yorick (preferentially with "rlwrap yorick"), and at the yorick prompt type:

#include "testgl.i"
testall3d, 32
quit

Regards, Thibaut.

PS: I have noticed a strange behavior:

port install yorick-gl
port uninstall yorick-gl
port install yorick-gl

fails with:

Error: Target org.macports.activate returned: Image error: /opt/local/lib/yorick/i/contour.i already exists and does not belong to a registered port.  Unable to activate port yorick-gl.
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

I really don't understand why since "port -d uninstall yorick-gl" does:

[...]
DEBUG: deactivating file: /opt/local/lib/yorick/i/contour.i
[...]
DEBUG: Removing entry from file_map: /opt/local/lib/yorick/i/contour.i
[...]
DEBUG: uninstalling file: /opt/local/var/macports/software/yorick-gl/1.1.0.cvs20100504_0/opt/local/lib/yorick/i/contour.i
[...]

and after that:

ls: /opt/local/lib/yorick/i/contour.i: No such file or directory

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by paumard

Attachment: Portfile added

comment:1 in reply to:  description Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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

Replying to thibaut.paumard@…:

Error: Target org.macports.activate returned: Image error: /opt/local/lib/yorick/i/contour.i already exists and does not belong to a registered port. Unable to activate port yorick-gl.

Agreed, looks like yorick-gl is not DESTDIR-aware. I'll patch its Makefile using the method used by another of the yorick ports that are DESTDIR-aware.

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

Resolution: fixed
Status: assignedclosed

Committed the port in r67913 with these changes:

  • changed mesa dependency from lib:-style to port:-style (we always want to use libGL from MacPorts mesa; we never want to use another libGL the user might have coincidentally installed somewhere)
  • removed xorg-libXext dependency (xorg-libXext is already in mesa's dependency chain)
  • patched configure script to only look for GL files in ${prefix}; even without this patch yorgl.so ended up linked with ${prefix}/lib/libGL.1.dylib like it's supposed to, but the output of the configure phase said it had found something in /usr/X11R6 and I wasn't comfortable with that
  • patched Makefile to be DESTDIR-aware using technique adapted from yorick-yutils
  • disabled universal variant
  • whitespace and formatting changes
Note: See TracTickets for help on using tickets.