Prototype MacPorts PortFile: Difference between revisions

Add -pthread and -D_THREAD_SAFE to fflags and cflags. Add -pthread to ldflags
No edit summary
(Add -pthread and -D_THREAD_SAFE to fflags and cflags. Add -pthread to ldflags)
Line 10: Line 10:
name                octave-local
name                octave-local
version            3.7.0+
version            3.7.0+
revision            4
revision            7
conflicts          octave octave-devel
conflicts          octave octave-devel
categories          math science
categories          math science
Line 87: Line 87:
                     TEXI2DVI="${prefix}/bin/texi2dvi" \
                     TEXI2DVI="${prefix}/bin/texi2dvi" \
                     TEXI2PDF="${prefix}/bin/texi2pdf"
                     TEXI2PDF="${prefix}/bin/texi2pdf"
configure.cppflags
configure.fflags    -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs
configure.ldflags
configure.cflags    -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs
configure.ldflags   -pthread


test.run            yes
test.run            yes
Line 152: Line 153:
if {${gcc_version} != ""} {
if {${gcc_version} != ""} {
     set gcc_version_join [join [split ${gcc_version} "."] ""]
     set gcc_version_join [join [split ${gcc_version} "."] ""]
     configure.ldflags    "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib"
     configure.ldflags    "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib -pthread"
     depends_build-append port:gcc${gcc_version_join}
     depends_build-append port:gcc${gcc_version_join}
     configure.compiler  macports-gcc-${gcc_version}
     configure.compiler  macports-gcc-${gcc_version}
Line 169: Line 170:
livecheck.type      regex
livecheck.type      regex
livecheck.url      http://www.gnu.org/software/octave/news.html
livecheck.url      http://www.gnu.org/software/octave/news.html
livecheck.regex    Version (\\d+(\\.\\d+)*)</nowiki>
livecheck.regex    Version (\\d+(\\.\\d+)*)
</nowiki>
364

edits