OpenGL libraries

Mark Brethen mark.brethen at gmail.com
Mon Nov 12 19:17:41 UTC 2018


Per the attached Calculix-cgx Makefile, I needed to modify it to indicate the OpenGL framework. I tried this:

CFLAGS = -O2 -Wall -Wno-narrowing \
  -I./ \
  -I/usr/include \
  -I../../libSNL/src \
  -I../../glut-3.5/src \
  -I/usr/X11/include 

LFLAGS = \
  -framework OpenGL -lGL -lGLU \
  -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
  -lm -lpthread

.
.
.

cgx: $(OLIB) $(OUTIL) $(OULIB)
	g++  $(OULIB)  $(OLIB) $(OUTIL)  $(CFLAGS) $(LFLAGS) -o  $@

This didn’t work. Is LDFlags appropriate here? There isn’t a config file so in the portfile I pass the following @ pre-build:

    pre-build {
        build.args          CC=${configure.cc} \
                            CXX=${configure.cxx}
    }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1983 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20181112/db4bd01b/attachment.obj>
-------------- next part --------------

Mark Brethen
mark.brethen at gmail.com





More information about the macports-dev mailing list