[149337] trunk/dports/science/OpenCSG/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Mon Jun 13 13:25:22 PDT 2016
Revision: 149337
https://trac.macports.org/changeset/149337
Author: dstrubbe at macports.org
Date: 2016-06-13 13:25:22 -0700 (Mon, 13 Jun 2016)
Log Message:
-----------
OpenCSG: Enable test phase. Remove LIBS specification which has no apparent effect.
Modified Paths:
--------------
trunk/dports/science/OpenCSG/Portfile
Modified: trunk/dports/science/OpenCSG/Portfile
===================================================================
--- trunk/dports/science/OpenCSG/Portfile 2016-06-13 19:46:13 UTC (rev 149336)
+++ trunk/dports/science/OpenCSG/Portfile 2016-06-13 20:25:22 UTC (rev 149337)
@@ -27,13 +27,15 @@
depends_lib-append port:glew
-worksrcdir ${distname}/src
+worksrcdir ${distname}
post-patch {
- reinplace "s@\\.\\./glew/include@@" ${worksrcpath}/src.pro
+ reinplace "s@\\.\\./glew/include@@" ${worksrcpath}/src/src.pro
}
-configure.args -o Makefile src.pro LIBS+="-lGLEW"
+configure.optflags -O3
+configure.args -r -o Makefile OpenCSG.pro
+build.target sub-src-all
destroot {
eval file copy [glob ${worksrcpath}/../lib/*] ${destroot}${prefix}/lib
@@ -45,5 +47,9 @@
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.-\]+)\\.tar.gz
-#test.run yes
-#test.target -C .. check
+test.run yes
+test.target sub-example-all
+post-test {
+ ui_msg "Close the window that appears to complete the test."
+ system "DYLD_LIBRARY_PATH=${worksrcpath}/lib ${worksrcpath}/example/opencsgexample.app/Contents/MacOS/opencsgexample"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160613/d22a7a3f/attachment.html>
More information about the macports-changes
mailing list