[70947] trunk/dports/devel/gtkglext/Portfile

jmr at macports.org jmr at macports.org
Thu Aug 26 23:20:30 PDT 2010


Revision: 70947
          http://trac.macports.org/changeset/70947
Author:   jmr at macports.org
Date:     2010-08-26 23:20:28 -0700 (Thu, 26 Aug 2010)
Log Message:
-----------
gtkglext: define a quartz variant rather than just checking whether it's set when it doesn't exist

Modified Paths:
--------------
    trunk/dports/devel/gtkglext/Portfile

Modified: trunk/dports/devel/gtkglext/Portfile
===================================================================
--- trunk/dports/devel/gtkglext/Portfile	2010-08-27 06:11:12 UTC (rev 70946)
+++ trunk/dports/devel/gtkglext/Portfile	2010-08-27 06:20:28 UTC (rev 70947)
@@ -16,14 +16,21 @@
 master_sites	sourceforge
 
 checksums	md5 5c3240bfc1b21becd33ce35c5abe6f8d
-depends_lib	port:gtk2
+depends_lib	port:gtk2 \
+		port:mesa \
+		port:xorg-libXmu
 
 patchfiles	patch-examples-pixmap-mixed.c.diff \
 		patch-examples-pixmap.c.diff \
 		patch-gtk-gtkglwidget.c.diff
 
-if {[variant_isset quartz]} {
-	configure.args --without-x
+configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib
+
+variant quartz {
+	configure.args-delete --x-include=${prefix}/include --x-lib=${prefix}/lib
+	configure.args-append --without-x
+	depends_lib-delete	port:mesa \
+				port:xorg-libXmu
 	patchfiles-append	patch-configure.diff \
 				patch-makefile.in.diff \
 				patch-gdk-makefile.in.diff \
@@ -36,8 +43,3 @@
 			depends_lib-append port:xorg-glproto
 	}
 }
-if {![variant_isset quartz]} {
-	depends_lib-append	port:mesa \
-						port:xorg-libXmu
-	configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100826/588989b9/attachment.html>


More information about the macports-changes mailing list