Changeset 144718


Ignore:
Timestamp:
Jan 16, 2016, 3:39:31 AM (23 months ago)
Author:
css@…
Message:

inventor: fix building on El Capitan. refs #48558

  • add libGLU dependency
  • patch for explicitly using $DYLD_LIBRARY_PATH
  • fix main functions not declaring return types
Location:
trunk/dports/devel/inventor
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/inventor/Portfile

    r102822 r144718  
    55name       inventor
    66version    2.1.5-10
    7 revision        9
     7revision        10
    88categories      devel graphics x11
    99platforms       darwin
     
    1111
    1212description     SGI Open InventorTM graphics toolkit
     13license         GPL-2
    1314long_description    Open InventorTM is an object-oriented 3D toolkit offering a comprehensive \
    1415                    solution to interactive graphics programming problems. It presents a \
     
    2728depends_lib         port:xorg-libXi \
    2829                    port:xorg-libXt \
     30                    port:libGLU \
    2931                    port:freetype \
    3032                    port:jpeg \
     
    4244                    patch-ivcat-GNUmakefile.diff \
    4345                    patch-ivcommondefs.diff \
     46                    patch-ivcommonrules.diff \
    4447                    patch-ivdowngrade-GNUmakefile.diff \
    4548                    patch-ivfix-GNUmakefile.diff \
     
    4851                    patch-ivview-GNUmakefile.diff \
    4952                    patch-lib-GNUmakefile.diff \
     53                    patch-libFL-fl.c.diff \
    5054                    patch-libSoXt-GNUmakefile.diff \
    5155                    patch-localrules.apple.diff \
     
    6367
    6468post-patch {
     69        # gcc allows for declaring main without a return type, clang does not.
     70        reinplace "s|^main|int main|" \
     71${worksrcpath}/apps/demos/qmorf/quadCube.c++ \
     72${worksrcpath}/apps/demos/qmorf/quadSheet.c++ \
     73${worksrcpath}/apps/demos/qmorf/quadSphere.c++ \
     74${worksrcpath}/apps/examples/Mentor/CXX/09.3.Search.c++ \
     75${worksrcpath}/apps/examples/Mentor/CXX/09.5.GenSph.c++ \
     76${worksrcpath}/apps/examples/Mentor/CXX/17.3.GLFloor.c++ \
     77${worksrcpath}/apps/examples/Toolmaker/02.Nodes/newNodes.c++ \
     78${worksrcpath}/apps/examples/Toolmaker/04.Actions/printVolume.c++ \
     79${worksrcpath}/apps/examples/Toolmaker/07.Nodekits/jumpingJackKitTest.c++ \
     80${worksrcpath}/apps/examples/Toolmaker/07.Nodekits/pyramidKitTest.c++ \
     81${worksrcpath}/apps/examples/Toolmaker/08.Manips/newManips.c++ \
     82${worksrcpath}/apps/samples/4view/4view.c++ \
     83${worksrcpath}/apps/samples/ivNodeKitStructure/ivNodeKitStructure.c++ \
     84${worksrcpath}/apps/samples/ivToInclude/ivToIncludeFile.c++ \
     85${worksrcpath}/apps/samples/ivToInclude/testResults.c++ \
     86${worksrcpath}/apps/tools/ivcat/ivcat.c++ \
     87${worksrcpath}/apps/tools/ivfix/ivfix.c++ \
     88${worksrcpath}/apps/tools/ivinfo/ivinfo.c++ \
     89${worksrcpath}/apps/tools/ivperf/ivperf.c++ \
     90${worksrcpath}/doc/man/ivman/Main.c++ \
     91${worksrcpath}/tools/ppp/ppp.c++
     92        reinplace "s|unsigned int argc| int argc |" ${worksrcpath}/apps/samples/widgets/componentTest.c++
     93
     94        # path substitutions
    6595        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/make/ivcommondefs
    6696        reinplace "s|/usr/X11R6|${prefix}|" ${worksrcpath}/make/ivcommondefs
     97
     98        # El Capitan security workaround
     99        reinplace "s|__WORKSRCPATH__|${worksrcpath}/lib|" ${worksrcpath}/make/ivcommonrules
    67100}
    68101
Note: See TracChangeset for help on using the changeset viewer.