Ticket #42071: Portfile.diff
File Portfile.diff, 2.2 KB (added by zpeeters@…, 11 years ago) |
---|
-
Portfile
old new 10 10 categories x11 graphics 11 11 maintainers jeremyhu openmaintainer 12 12 license MIT 13 license_noconflict py26-libxml2 py27-libxml2 13 license_noconflict py26-libxml2 py27-libxml2 py32-libxml2 py33-libxml2 14 14 description Mesa 3D Graphics Library 15 15 long_description Mesa is an open-source implementation of the OpenGL specification, a system for rendering interactive 3D graphics. 16 16 … … 91 91 patchfiles-append iglx.patch 92 92 } 93 93 94 variant python26 conflicts python27 description {Use python 2.6} {94 variant python26 conflicts python27 python32 python33 description {Use python 2.6} { 95 95 depends_build-append \ 96 96 port:py26-libxml2 97 97 build.args-append \ 98 98 PYTHON2="${prefix}/bin/python2.6" 99 99 } 100 100 101 variant python27 conflicts python26 description {Use python 2.7} {101 variant python27 conflicts python26 python32 python33 description {Use python 2.7} { 102 102 depends_build-append \ 103 103 port:py27-libxml2 104 104 build.args-append \ 105 105 PYTHON2="${prefix}/bin/python2.7" 106 106 } 107 107 108 if {![variant_isset python26] && ![variant_isset python27]} { 108 variant python32 conflicts python26 python27 python33 description {Use python 3.2} { 109 depends_build-append \ 110 port:py32-libxml2 111 patchfiles-append \ 112 patch-python3-fixes.diff 113 build.args-append \ 114 PYTHON2="${prefix}/bin/python3.2" 115 116 post-configure { 117 # do not try to 'fix' next->__next__ 118 system -W ${worksrcpath} "${prefix}/bin/2to3-3.2 -wn -x next . src/glsl/tests/compare_ir" 119 } 120 } 121 122 variant python33 conflicts python26 python27 python32 description {Use python 3.3} { 123 depends_build-append \ 124 port:py32-libxml2 125 patchfiles-append \ 126 patch-python3-fixes.diff 127 build.args-append \ 128 PYTHON2="${prefix}/bin/python3.3" 129 130 post-configure { 131 # do not try to 'fix' next->__next__ 132 system -W ${worksrcpath} "${prefix}/bin/2to3-3.3 -wn -x next . src/glsl/tests/compare_ir" 133 } 134 } 135 136 if {![variant_isset python26] && ![variant_isset python27] && \ 137 ![variant_isset python32] && ![variant_isset python33]} { 109 138 default_variants +python27 110 139 } 111 140