[MacPorts] #16981: openvrml-0.17.9: new port
MacPorts
noreply at macports.org
Thu Mar 19 08:42:45 PDT 2009
#16981: openvrml-0.17.9: new port
--------------------------------+-------------------------------------------
Reporter: raphael@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Submissions
Component: ports | Version: 1.6.0
Keywords: vrml new port | Port: openvrml
--------------------------------+-------------------------------------------
Comment(by devans@…):
>
> I would propose to add the following to the Portfile (like in the xaos
port):
>
> {{{
> platform macosx {
> if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} {
> configure.args-append --x-includes=${prefix}/include \
> --x-libraries=${prefix}/lib
> } else {
> configure.args-append --x-includes=${x11prefix}/include
\
> --x-libraries=${x11prefix}/lib
> }
> }
> }}}
>
> Could you test if this works for you?
Yes, I tested this on 10.4.11 ppc in both a default (xorg-*) X11
environment and also in one with global variant +system_x11 set.
In the first case
{{{
...
checking for X... libraries /opt/local/lib, headers /opt/local/include
...
configuration:
OpenGL CFLAGS: -I/opt/local/include -D_THREAD_SAFE
OpenGL LIBS: -lGLU -lGL -L/opt/local/lib -lX11 -lm
multihead support: yes
debug: minimum
extra defs:
}}}
and in the second
{{{
...
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
...
configuration:
OpenGL CFLAGS: -I/usr/X11R6/include -D_THREAD_SAFE
OpenGL LIBS: -lGLU -lGL -L/usr/X11R6/lib -lX11 -lm
multihead support: yes
debug: minimum
extra defs:
}}}
My only concern is that the X11 library path should come before the GL
library specifications in both
cases as that is where they are.
Build still fails with bus error as before but I'm hoping this is just my
machine being over taxed.
--
Ticket URL: <http://trac.macports.org/ticket/16981#comment:23>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list