source: trunk/dports/devel/inventor/Portfile @ 47537

Last change on this file since 47537 was 47537, checked in by jeremyhu@…, 8 years ago

inventor: Fix linking against MacPorts X11 libs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 47537 2009-03-01 00:02:19Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name       inventor
6version    2.1.5-10
7revision        6
8categories      devel graphics x11
9platforms       darwin
10maintainers     css
11
12description     SGI Open InventorTM graphics toolkit
13long_description    Open InventorTM is an object-oriented 3D toolkit offering a comprehensive \
14                    solution to interactive graphics programming problems. It presents a \
15                    programming model based on a 3D  scene database that dramatically simplifies \
16                    graphics programming. It includes a rich set of objects such as cubes, \
17                    polygons, text, materials, cameras, lights, trackballs, handle boxes, 3D \
18                    viewers, and editors that speed up your programming time and extend your \
19                    3D programming capabilities.
20
21homepage            http://oss.sgi.com/projects/inventor/
22master_sites        ftp://oss.sgi.com/projects/inventor/download/
23checksums           md5 82208096f1e0b111160e864e239c3a51
24distname            ${name}-${version}.src
25worksrcdir          ${name}
26
27depends_lib         port:xorg-libXi \
28                    port:xorg-libXt \
29                    port:freetype \
30                    lib:libjpeg.62:jpeg \
31                    lib:libdl:dlcompat \
32                    port:glw
33
34patchfiles          patch-BarChart-GNUmakefile.diff \
35                    patch-Decal-GNUmakefile.diff \
36                    patch-GeneralizedCylinder-GNUmakefile.diff \
37                    patch-SceneViewer-GNUmakefile.diff \
38                    patch-SoCalcParse.y.diff \
39                    patch-SoGLTextureImageElement.c++.diff \
40                    patch-drop-GNUmakefile.diff \
41                    patch-flfreetype.h.diff \
42                    patch-gview-GNUmakefile.diff \
43                    patch-ivcat-GNUmakefile.diff \
44                    patch-ivcommondefs.diff \
45                    patch-ivdowngrade-GNUmakefile.diff \
46                    patch-ivfix-GNUmakefile.diff \
47                    patch-ivinfo-GNUmakefile.diff \
48                    patch-ivman-GNUmakefile.diff \
49                    patch-ivview-GNUmakefile.diff \
50                    patch-lib-GNUmakefile.diff \
51                    patch-libSoXt-GNUmakefile.diff \
52                    patch-localrules.apple.diff \
53                    patch-machine.h.diff \
54                    patch-maze-GNUmakefile.diff \
55                    patch-noodle-GNUmakefile.diff \
56                    patch-qmorf-GNUmakefile.diff \
57                    patch-revo-GNUmakefile.diff \
58                    patch-soxt-GNUmakefile.diff \
59                    patch-textomatic-GNUmakefile.diff \
60                    patch-widgets-GNUmakefile.componentTest.diff
61
62post-patch {
63           reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/make/ivcommondefs
64           if { [file exists ${prefix}/lib/pkgconfig/x11.pc] } {
65              reinplace "s|/usr/X11R6|${prefix}|" ${worksrcpath}/make/ivcommondefs
66           } else {
67              reinplace "s|/usr/X11R6|${x11prefix}|" ${worksrcpath}/make/ivcommondefs
68           }
69}
70
71universal_variant       no
72use_configure   no
73build.env       DYLD_LIBRARY_PATH=${worksrcpath}/lib IVROOT=${destroot}
74
75destroot.env    ${build.env}
76
77post-destroot {
78              xinstall -m 755 -d ${destroot}${prefix}/share/${name}
79              xinstall -m 644 -W ${worksrcpath} COPYING FAQ.misc KNOWN.BUGS \
80              ${destroot}${prefix}/share/${name}
81}
82
83variant debug description {build with debug information} {
84    build.env-append      LIBTYPE=debug
85    patchfiles-append     patch-SoV1NkCatalog.c++.diff \
86                          patch-SoText3V2.c++.diff
87}
88
89variant imagelib description {include the image library} {
90        post-destroot {
91                xinstall -m 644 -W ${worksrcpath}/libimage libimage.a \
92                        ${destroot}${prefix}/lib
93                xinstall -m 644 -W ${worksrcpath}/libimage image.h \
94                        ${destroot}${prefix}/include
95                system "ranlib ${destroot}${prefix}/lib/libimage.a"
96        }
97}
Note: See TracBrowser for help on using the repository browser.