Changeset 138750 for trunk/dports/math


Ignore:
Timestamp:
Jul 18, 2015, 4:26:57 AM (5 years ago)
Author:
hum@…
Message:

caffe: update to 20150717; set shared library name; see #48379

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/caffe/Portfile

    r138063 r138750  
    55PortGroup           github 1.0
    66
    7 github.setup        BVLC caffe af37efdae91744fba989a17419521dbcae126992
    8 version             20150624
     7github.setup        BVLC caffe 6d92d8fcfe0eea9495ffbc326256ec5b70c3eed1
     8version             20150717
    99categories          math science
    1010maintainers         hum openmaintainer
     
    1717license             BSD
    1818
    19 checksums           rmd160  fc86b19e76f2a6020fb213a26d98f28d43111c04 \
    20                     sha256  02f53b05a2a5fe46cfd6415a5a23101b6b64fc288fcc63a98d4b60def76a6eb5
     19checksums           rmd160  12d7cddfe2b38f5b1a1b1675c457a7a958bff127 \
     20                    sha256  07caf1bf1bfebe1a331e2ee61b4b3cccd415b3bd7da641ab8cb5373aabd5d612
    2121
    2222depends_lib-append  port:google-glog \
     
    5252
    5353destroot {
     54    # install libraries
     55    xinstall -m 644 -W ${worksrcpath}/.build_release/lib \
     56        libcaffe.a libcaffe.so \
     57        ${destroot}${prefix}/lib
     58    system "install_name_tool -id ${prefix}/lib/libcaffe.so \
     59            ${destroot}${prefix}/lib/libcaffe.so"
     60
    5461    # copy files to caffe_root
    5562    xinstall -m 755 -d ${destroot}${caffe_root}
     
    5764        copy ${worksrcpath}/${dir} ${destroot}${caffe_root}
    5865    }
    59     copy ${worksrcpath}/.build_release ${destroot}${caffe_root}/build
    6066
    6167    # install additional documents
     
    118124    post-destroot {
    119125        set packages_dir \
    120             ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
    121         xinstall -m 755 -d ${packages_dir}
    122         copy ${worksrcpath}/python/caffe ${packages_dir}
     126            ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
     127        xinstall -m 755 -d ${destroot}${packages_dir}
     128        copy ${worksrcpath}/python/caffe ${destroot}${packages_dir}
     129        system "install_name_tool -id ${packages_dir}/caffe/_caffe.so \
     130                ${destroot}${packages_dir}/caffe/_caffe.so"
     131        system "install_name_tool -change @rpath/libcaffe.so ${prefix}/lib/libcaffe.so \
     132                ${destroot}${packages_dir}/caffe/_caffe.so"
    123133    }
    124134}
Note: See TracChangeset for help on using the changeset viewer.