[47407] trunk/dports/science/geomview/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Feb 27 17:41:35 PST 2009


Revision: 47407
          http://trac.macports.org/changeset/47407
Author:   jeremyhu at macports.org
Date:     2009-02-27 17:41:35 -0800 (Fri, 27 Feb 2009)
Log Message:
-----------
geomview: Update X11 dependencies

Modified Paths:
--------------
    trunk/dports/science/geomview/Portfile

Modified: trunk/dports/science/geomview/Portfile
===================================================================
--- trunk/dports/science/geomview/Portfile	2009-02-28 01:36:52 UTC (rev 47406)
+++ trunk/dports/science/geomview/Portfile	2009-02-28 01:41:35 UTC (rev 47407)
@@ -4,7 +4,7 @@
 
 name                geomview
 version             1.9.4
-revision            1
+revision            2
 categories          science graphics x11
 maintainers         ira.uka.de:raphael openmaintainer
 description         interactive 3D viewing program
@@ -31,26 +31,32 @@
                     delete ${worksrcpath}/doc/geomview-pt_BR.html
 }
 
-configure.args      --with-opengl=${x11prefix} \
+configure.args      --with-opengl=${prefix} \
                     --with-htmlbrowser=open \
                     --with-pdfviewer=open
+
 depends_lib         port:openmotif \
                     port:zlib \
-                    port:xorg-libs
+                    port:xorg-libXt \
+		    port:mesa
+
 depends_build       path:bin/tex:texlive \
                     port:texinfo
 
-platform darwin 9 {
-    configure.ldflags-append    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
-                                /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-}
-
 variant no_zlib description {do not use zlib} {
     configure.args-append       --without-zlib
     depends_lib-delete          port:zlib
 }
 
+# For +system_x11 variant
+if { ![file exists ${prefix}/lib/pkgconfig/gl.pc] } {
+        configure.args-delete --with-opengl=${prefix}
+        configure.args-append --with-opengl=${x11prefix}
+}
+
+
 variant no_opengl description {do not use OpenGL} {
     configure.args-append       --without-opengl
+    configure.args-delete       --with-opengl=${prefix}
     configure.args-delete       --with-opengl=${x11prefix}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090227/98c27115/attachment-0001.html>


More information about the macports-changes mailing list