Changeset 99458
- Timestamp:
- Nov 6, 2012, 1:59:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/uhd/Portfile
r78717 r99458 4 4 PortSystem 1.0 5 5 PortGroup cmake 1.0 6 PortGroup github 1.0 6 7 8 github.setup EttusResearch UHD-Mirror 003_005_000 release_ 9 10 # override name from github PortGroup 7 11 name uhd 8 version 003.001.000 12 9 13 categories science 10 maintainers michaelld 14 maintainers michaelld openmaintainer 11 15 description Universal Hardware Driver for Ettus Research products 12 16 long_description ${description} … … 16 20 platforms darwin 17 21 18 fetch.type git 19 git.url http://github.com/EttusResearch/UHD-Mirror.git 20 git.branch release_[strsed ${version} {g/\./_/}] 22 checksums sha1 efaeb888d9f2f7c9f219d140b3c924f93155d72c \ 23 rmd160 458367c42ba02219183f74ecfa4dc56c2fd290db 21 24 22 25 worksrcdir ${name}-${version} … … 25 28 26 29 # do VPATH build 27 post-extract { file mkdir ${workpath}/build }28 30 29 default configure.post_args {../${worksrcdir}/host} 30 default configure.dir {${workpath}/build} 31 default build.dir {${workpath}/build} 31 post-extract { file mkdir ${workpath}/build } 32 configure.dir ${workpath}/build 33 build.dir ${workpath}/build 34 35 # set last configure argument to the reletive path 36 # to the top-level cmake source 37 38 configure.post_args ../${worksrcdir}/host 39 40 # explicitly set configure args -D cmake flags to get MacPorts' curses 32 41 33 42 configure.args-append \ 34 -DENABLE_USB=OFF \ 35 -DENABLE_EXAMPLES=OFF \ 36 -DENABLE_TESTS=OFF \ 37 -DENABLE_MANUAL=OFF \ 38 -DENABLE_DOXYGEN=OFF 43 -DCURSES_CURSES_H_PATH=${prefix}/include \ 44 -DCURSES_CURSES_LIBRARY=${prefix}/lib/libcurses.dylib \ 45 -DCURSES_FORM_LIBRARY=${prefix}/lib/libform.dylib \ 46 -DCURSES_HAVE_CURSES_H=${prefix}/include/curses.h \ 47 -DCURSES_INCLUDE_PATH=${prefix}/include \ 48 -DCURSES_LIBRARY=${prefix}/lib/libcurses.dylib \ 49 -DCURSES_NCURSES_LIBRARY=${prefix}/lib/libncurses.dylib 39 50 40 variant tests description {enable tests} { 41 configure.args-delete -DENABLE_TESTS=OFF 42 configure.args-append -DENABLE_TESTS=ON 43 test.run yes 44 } 51 # after destroot, have uhd fetch its images into the destroot area, 52 # so that they are also tracked by MacPorts 45 53 46 variant examples description {enable examples} { 47 configure.args-delete -DENABLE_EXAMPLES=OFF 48 configure.args-append -DENABLE_EXAMPLES=ON 49 } 50 51 variant libusb description {enable USB support via libusb version 1.0} { 52 depends_lib-append port:libusb 53 configure.args-delete -DENABLE_USB=OFF 54 configure.args-append -DENABLE_USB=ON 54 post-destroot { 55 system "${destroot}${prefix}/share/uhd/utils/uhd_images_downloader.py --download-location=${destroot}${prefix}/share/uhd/images" 55 56 } 56 57 57 58 # set Python variants 59 58 60 set pythons_suffixes {26 27} 59 61 global chosen_python_suffix … … 67 69 foreach s ${pythons_suffixes} { 68 70 set p python${s} 69 set v [join [split ${ chosen_python_suffix} ""] "."]71 set v [join [split ${s} ""] "."] 70 72 set i [lsearch -exact ${pythons_ports} ${p}] 71 73 set c [lreplace ${pythons_ports} ${i} ${i}] … … 98 100 } 99 101 102 variant tests description {enable tests} { 103 configure.args-append -DENABLE_TESTS=ON 104 test.run yes 105 } 106 107 if {![variant_isset tests]} { 108 configure.args-append -DENABLE_TESTS=OFF 109 } 110 111 variant examples description {enable examples} { 112 configure.args-append -DENABLE_EXAMPLES=ON 113 } 114 115 if {![variant_isset examples]} { 116 configure.args-append -DENABLE_EXAMPLES=OFF 117 } 118 119 variant libusb description {enable USB support via libusb version 1.0} { 120 depends_lib-append port:libusb 121 configure.args-append -DENABLE_USB=ON 122 } 123 124 if {![variant_isset libusb]} { 125 configure.args-append -DENABLE_USB=OFF 126 } 127 100 128 variant docs description {build documentation} { 101 depends_lib-append \102 port:doxygen103 configure.args-delete \ 104 -DENABLE_DOXYGEN=OFF 105 configure.args-append \ 106 -DENABLE_DOXYGEN=ON129 depends_lib-append port:doxygen 130 configure.args-append -DENABLE_DOXYGEN=ON 131 } 132 133 if {![variant_isset docs]} { 134 configure.args-append -DENABLE_DOXYGEN=OFF 107 135 } 108 136 109 137 variant manual description {build manual} { 110 set v [join [split ${chosen_python_suffix} ""] "."]111 138 depends_lib-append \ 112 139 port:py${chosen_python_suffix}-docutils 113 configure.args-delete \114 -DENABLE_MANUAL=OFF115 configure.args-append\116 -DENABLE_MANUAL=ON \117 -DRST2HTML_EXECUTABLE=${prefix}/bin/rst2html-${v}.py140 pre-configure { 141 set v [join [split ${chosen_python_suffix} ""] "."] 142 configure.args-append -DENABLE_MANUAL=ON \ 143 -DRST2HTML_EXECUTABLE=${prefix}/bin/rst2html-${v}.py 144 } 118 145 } 119 146 120 #livecheck.type regex 121 #livecheck.url http://gitorious.org/dbusmenu/${name}/trees/master 122 #livecheck.regex >(\\d+(\\.\\d+)+)< 147 if {![variant_isset manual]} { 148 configure.args-append -DENABLE_MANUAL=OFF 149 }
Note: See TracChangeset
for help on using the changeset viewer.