Revision
144087
Author
dstrubbe@macports.org
Date
2015-12-31 15:50:07 -0800 (Thu, 31 Dec 2015)

Log Message

xtide: Enable building without X if desired.

Modified Paths

Diff

Modified: trunk/dports/science/xtide/Portfile (144086 => 144087)


--- trunk/dports/science/xtide/Portfile	2015-12-31 20:52:50 UTC (rev 144086)
+++ trunk/dports/science/xtide/Portfile	2015-12-31 23:50:07 UTC (rev 144087)
@@ -33,7 +33,6 @@
 
     depends_lib         port:libpng \
                         port:libtcd \
-                        port:xorg-libXaw \
                         port:${name}-data
 
     post-extract {
@@ -44,6 +43,15 @@
     # Per the configure script: "if using GCC, version 4.4 or later is required"
     compiler.blacklist  *gcc-4.2 gcc-4.0 gcc-3.3 {clang < 300}
 
+    configure.args-append   --without-x
+    
+    variant xwindows description {Build xtide executable for use with X-Windows} {
+        depends_lib-append      port:xorg-libXaw
+        configure.args-delete   --without-x
+    }
+
+    default_variants-append +xwindows
+
     livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
 }