Ticket #31852: patch-Portfile.diff

File patch-Portfile.diff, 1.3 KB (added by jmaibaum@…, 11 years ago)

New version reflecting jmr’s advices.

  • Portfile

     
    138138    configure.args-append   --with-freetype-src=${workpath}/freetype-${ftversion}
    139139}
    140140
     141variant python26 conflicts python27 description {Enable Python support (Python 2.6)} {
     142    configure.args-delete   --without-python
     143    configure.args-append   --enable-pyextension \
     144                            --with-python=${prefix}/bin/python2.6 \
     145                            --with-python-headers=${frameworks_dir}/Python.framework/Versions/2.6/include/python2.6
     146    destroot.args-append    PYTHON=${prefix}/bin/python2.6 PYTHONPREFIX=${frameworks_dir}/Python.framework/Versions/2.6
     147    depends_lib-append      port:python26
     148}
     149
     150variant python27 conflicts python26 description {Enable Python support (Python 2.7)} {
     151    configure.args-delete   --without-python
     152    configure.args-append   --enable-pyextension \
     153                            --with-python=${prefix}/bin/python2.7 \
     154                            --with-python-headers=${frameworks_dir}/Python.framework/Versions/2.7/include/python2.7
     155    destroot.args-append    PYTHON=${prefix}/bin/python2.7 PYTHONPREFIX=${frameworks_dir}/Python.framework/Versions/2.7
     156    depends_lib-append      port:python27
     157}
     158
    141159livecheck.regex     ${name}_full-(\\d+)\.