[138750] trunk/dports/math/caffe/Portfile

hum at macports.org hum at macports.org
Fri Jul 17 21:26:57 PDT 2015


Revision: 138750
          https://trac.macports.org/changeset/138750
Author:   hum at macports.org
Date:     2015-07-17 21:26:57 -0700 (Fri, 17 Jul 2015)
Log Message:
-----------
caffe: update to 20150717; set shared library name; see #48379

Modified Paths:
--------------
    trunk/dports/math/caffe/Portfile

Modified: trunk/dports/math/caffe/Portfile
===================================================================
--- trunk/dports/math/caffe/Portfile	2015-07-18 04:26:01 UTC (rev 138749)
+++ trunk/dports/math/caffe/Portfile	2015-07-18 04:26:57 UTC (rev 138750)
@@ -4,8 +4,8 @@
 PortSystem          1.0
 PortGroup           github 1.0
 
-github.setup        BVLC caffe af37efdae91744fba989a17419521dbcae126992
-version             20150624
+github.setup        BVLC caffe 6d92d8fcfe0eea9495ffbc326256ec5b70c3eed1
+version             20150717
 categories          math science
 maintainers         hum openmaintainer
 
@@ -16,8 +16,8 @@
 platforms           darwin
 license             BSD
 
-checksums           rmd160  fc86b19e76f2a6020fb213a26d98f28d43111c04 \
-                    sha256  02f53b05a2a5fe46cfd6415a5a23101b6b64fc288fcc63a98d4b60def76a6eb5
+checksums           rmd160  12d7cddfe2b38f5b1a1b1675c457a7a958bff127 \
+                    sha256  07caf1bf1bfebe1a331e2ee61b4b3cccd415b3bd7da641ab8cb5373aabd5d612
 
 depends_lib-append  port:google-glog \
                     port:gflags \
@@ -51,12 +51,18 @@
 set caffe_root ${prefix}/libexec/${name}
 
 destroot {
+    # install libraries
+    xinstall -m 644 -W ${worksrcpath}/.build_release/lib \
+        libcaffe.a libcaffe.so \
+        ${destroot}${prefix}/lib
+    system "install_name_tool -id ${prefix}/lib/libcaffe.so \
+            ${destroot}${prefix}/lib/libcaffe.so"
+
     # copy files to caffe_root
     xinstall -m 755 -d ${destroot}${caffe_root}
     foreach dir {data examples models python scripts tools} {
         copy ${worksrcpath}/${dir} ${destroot}${caffe_root}
     }
-    copy ${worksrcpath}/.build_release ${destroot}${caffe_root}/build
 
     # install additional documents
     set docdir ${prefix}/share/doc/${name}
@@ -117,8 +123,12 @@
 
     post-destroot {
         set packages_dir \
-            ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
-        xinstall -m 755 -d ${packages_dir}
-        copy ${worksrcpath}/python/caffe ${packages_dir}
+            ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
+        xinstall -m 755 -d ${destroot}${packages_dir}
+        copy ${worksrcpath}/python/caffe ${destroot}${packages_dir}
+        system "install_name_tool -id ${packages_dir}/caffe/_caffe.so \
+                ${destroot}${packages_dir}/caffe/_caffe.so"
+        system "install_name_tool -change @rpath/libcaffe.so ${prefix}/lib/libcaffe.so \
+                ${destroot}${packages_dir}/caffe/_caffe.so"
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150717/8dd66374/attachment.html>


More information about the macports-changes mailing list