Ignore:
Timestamp:
Feb 6, 2011, 1:15:49 AM (7 years ago)
Author:
michaelld@…
Message:

usrp: Use new sdcc29 port, with correct PATH during configure and build stages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/usrp/Portfile

    r71144 r75732  
    88name                    usrp
    99version         3.3.0
     10revision        1
    1011maintainers             michaelld
    1112description             USRP user-space driver / interface via USB.
     
    2930                rmd160  ae83bd8a93deaf73d730e2af0d05c9ffc4c98520
    3031
     32# USRP does not work with SDCC3
    3133depends_build   port:gnuradio-gruel \
    32                 port:sdcc
     34                port:sdcc29
     35
     36# do not archcheck sdcc, just use it
     37depends_skip_archcheck sdcc29
    3338
    3439configure.args  --disable-all-components \
    3540                                --with-gruel \
    3641                                --enable-usrp
     42configure.env-append PATH=${prefix}/libexec/sdcc29/bin:$env(PATH)
     43build.env-append PATH=${prefix}/libexec/sdcc29/bin:$env(PATH)
    3744
    3845use_parallel_build      yes
     
    4956variant python25 conflicts python26 python27 \
    5057description "Use Python 2.5" {
    51     configure.env      PYTHON=${prefix}/bin/python2.5
     58    configure.env-append PYTHON=${prefix}/bin/python2.5
    5259    depends_lib-append port:python25
    5360}
     
    5562variant python26 conflicts python25 python27 \
    5663description "Use Python 2.6" {
    57     configure.env      PYTHON=${prefix}/bin/python2.6
     64    configure.env-append PYTHON=${prefix}/bin/python2.6
    5865    depends_lib-append port:python26
    5966}
     
    6168variant python27 conflicts python25 python26 \
    6269description "Use Python 2.7" {
    63     configure.env      PYTHON=${prefix}/bin/python2.7
     70    configure.env-append PYTHON=${prefix}/bin/python2.7
    6471    depends_lib-append port:python27
    6572}
     
    6976     ![variant_isset python27] } {
    7077    default_variants +python26
     78}
     79
     80# make sure -python26 is not alone
     81if { ![variant_isset python25] && \
     82     ![variant_isset python26] && \
     83     ![variant_isset python27] } {
     84    return -code error \
     85        "\n\nThe variant -python26 will not work alone.
     86Please select one of +python25, +python26, or +python27 as a variant."
    7187}
    7288
     
    91107    default_variants +libusb_legacy
    92108}
     109
     110# make sure -libusb_legacy is not alone
     111if { ![variant_isset libusb_legacy] && \
     112     ![variant_isset libusb_1] } {
     113    return -code error \
     114"\n\nThe variant -libusb_legacy will not work alone.
     115Please select one of +libusb_legacy or +libusb_1 as a variant.\n"
     116}
Note: See TracChangeset for help on using the changeset viewer.