Ticket #49913: Portfile.diff

File Portfile.diff, 2.3 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 8 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        anholt libepoxy 1.2 v
    8 revision            1
     7github.setup        anholt libepoxy 1.3.1 v
    98license             MIT permissive
    109categories          graphics
    1110maintainers         devans openmaintainer
     
    1615
    1716long_description    ${description}
    1817
    19 checksums           rmd160  ffe7d6d6c85af31dca7a0fea7a3c9bf7af103807 \
    20                     sha256  3364f09ef5cf0c53f8879b6b6165d4d7bd82756ee44f019075fad679346be6d8
     18checksums           rmd160  fc67ebfc18fe1209d23d8ef315cc9ab387731563 \
     19                    sha256  2c8155016e6bcf2ad604094ba84f0404edda3278dea851d6ce44830291eb885b
    2120
    2221depends_build       port:pkgconfig \
    2322                    port:autoconf \
    2423                    port:automake \
    2524                    port:libtool \
    26                     port:xorg-util-macros \
    27                     port:python34
     25                    port:xorg-util-macros
    2826
    2927depends_lib         port:mesa \
    3028                    port:xorg-libX11
     
    3230patchfiles          patch-configure.ac.diff \
    3331                    patch-src-dispatch_common.c.diff
    3432
     33# turn on support for glx
     34#     see https://github.com/anholt/libepoxy/commit/e3051481cc9f5b7b36b317aff1454ee16ea9cdb9
     35#     see https://github.com/anholt/libepoxy/releases/tag/v1.3
     36patchfiles-append   patch-glx.diff
     37
    3538post-patch {
    3639    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dispatch_common.c
    3740}
    3841
    3942configure.cmd       ./autogen.sh
    4043
    41 configure.python    ${prefix}/bin/python3.4
    42 
    4344configure.args      --disable-silent-rules
     45
     46variant python27 conflicts python34 python35 description {build with python 2.7} {
     47    depends_lib-append      port:python27
     48    configure.python        ${prefix}/bin/python2.7
     49}
     50
     51variant python34 conflicts python27 python35 description {build with python 3.4} {
     52    depends_lib-append      port:python34
     53    configure.python        ${prefix}/bin/python3.4
     54}
     55
     56variant python35 conflicts python27 python34 description {build with python 3.5} {
     57    depends_lib-append      port:python35
     58    configure.python        ${prefix}/bin/python3.5
     59}
     60
     61if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} {
     62    default_variants +python34
     63}