[38918] trunk/dports/graphics/poppler/Portfile

rhwood at macports.org rhwood at macports.org
Sat Aug 2 04:22:08 PDT 2008


Revision: 38918
          http://trac.macosforge.org/projects/macports/changeset/38918
Author:   rhwood at macports.org
Date:     2008-08-02 04:22:08 -0700 (Sat, 02 Aug 2008)
Log Message:
-----------
Automagically set default variant

Modified Paths:
--------------
    trunk/dports/graphics/poppler/Portfile

Modified: trunk/dports/graphics/poppler/Portfile
===================================================================
--- trunk/dports/graphics/poppler/Portfile	2008-08-02 11:18:23 UTC (rev 38917)
+++ trunk/dports/graphics/poppler/Portfile	2008-08-02 11:22:08 UTC (rev 38918)
@@ -34,6 +34,20 @@
     --enable-zlib \
     --mandir=${prefix}/share/man
 
+if {[variant_isset no_x11]} {
+    default_variants    +quartz
+}
+
+if {![variant_isset quartz]} {
+    default_variants    +x11
+}
+
+pre-fetch {
+    if {![variant_isset quartz] && ![variant_isset x11]} {
+        error "Either +x11 or +quartz is required"
+    }
+}
+
 variant quartz conflicts x11 description { Support for the native Mac OS X interface } {
     configure.args-append --disable-gtk-test --without-x
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080802/694b60e2/attachment-0001.html 


More information about the macports-changes mailing list