[119927] trunk/dports/graphics/glew/Portfile

jmr at macports.org jmr at macports.org
Sat May 10 12:48:09 PDT 2014


Revision: 119927
          https://trac.macports.org/changeset/119927
Author:   jmr at macports.org
Date:     2014-05-10 12:48:08 -0700 (Sat, 10 May 2014)
Log Message:
-----------
glew: only remove mesa dep from pc files when not using mesa (#43630)

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

Modified: trunk/dports/graphics/glew/Portfile
===================================================================
--- trunk/dports/graphics/glew/Portfile	2014-05-10 17:47:54 UTC (rev 119926)
+++ trunk/dports/graphics/glew/Portfile	2014-05-10 19:48:08 UTC (rev 119927)
@@ -59,10 +59,11 @@
     reinplace "s|${destroot}||g" \
         ${destroot}${prefix}/lib/pkgconfig/glew.pc \
         ${destroot}${prefix}/lib/pkgconfig/glewmx.pc
-    # glew is compiled with -DGLEW_NO_GLU
-    reinplace "s|Requires: glu||g" \
-        ${destroot}${prefix}/lib/pkgconfig/glew.pc \
-        ${destroot}${prefix}/lib/pkgconfig/glewmx.pc
+    if {![variant_isset x11]} {
+		reinplace "/Requires: glu/d" \
+			${destroot}${prefix}/lib/pkgconfig/glew.pc \
+			${destroot}${prefix}/lib/pkgconfig/glewmx.pc
+    }
 }
 
 livecheck.type     sourceforge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140510/c85f97e1/attachment.html>


More information about the macports-changes mailing list