Changeset 154216


Ignore:
Timestamp:
Oct 24, 2016, 2:38:29 PM (4 years ago)
Author:
ryandesign@…
Message:

TinySVM: Fix build on Sierra.

Remove questionable build system sanity test which fails on Sierra.

Resolves #52692

Move a reinplace to the existing patchfile.

autoreconf to allow building shared library.

Location:
trunk/dports/math/TinySVM
Files:
1 added
1 edited
1 moved

Legend:

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

    r110631 r154216  
    66name                TinySVM
    77version             0.09
     8revision            1
    89categories          math
    910platforms           darwin
     
    2526                    rmd160  d44586810d4776a251cda4a08b1aa9148108c8e6
    2627
    27 # respect build_arch / universal_archs
    28 patchfiles          patch-configure.diff
    29 
    30 post-patch {
    31     reinplace "s|-O9||g" ${worksrcpath}/configure
     28post-extract {
     29    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
    3230}
    3331
    34 configure.args      --disable-shared \
    35                     --mandir=${prefix}/share/man
     32patchfiles          patch-aclocal.m4.diff \
     33                    patch-configure.ac.diff
     34
     35# Teach configure script how to build modern dylibs.
     36use_autoreconf      yes
    3637
    3738configure.cppflags-append -D__GNU_LIBRARY__
  • trunk/dports/math/TinySVM/files/patch-configure.ac.diff

    r154215 r154216  
    1 --- configure.orig      2002-08-20 01:01:54.000000000 -0500
    2 +++ configure   2011-04-19 02:33:14.000000000 -0500
    3 @@ -6105,8 +6105,8 @@
    4  
    5  
     1Respect user-supplied CFLAGS and CXXFLAGS, and do not try to use -O9
     2which clang does not like.
     3--- configure.ac.orig   2002-08-20 00:58:13.000000000 -0500
     4+++ configure.ac        2016-10-24 09:19:02.000000000 -0500
     5@@ -82,8 +82,8 @@
     6 dnl check gcc
     7 dnl
    68 if test -n "$GCC"; then
    79-   CFLAGS="-Wall -O9 -funroll-all-loops -finline -ffast-math"
    810-   CXXFLAGS="-Wall -O9 -funroll-all-loops -finline -ffast-math"
    9 +   CFLAGS="$CFLAGS -Wall -O9 -funroll-all-loops -finline -ffast-math"
    10 +   CXXFLAGS="$CXXFLAGS -Wall -O9 -funroll-all-loops -finline -ffast-math"
     11+   CFLAGS="$CFLAGS -Wall -funroll-all-loops -finline -ffast-math"
     12+   CXXFLAGS="$CXXFLAGS -Wall -funroll-all-loops -finline -ffast-math"
    1113 fi
    1214 
Note: See TracChangeset for help on using the changeset viewer.