New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79770


Ignore:
Timestamp:
06/25/11 02:44:44 (4 years ago)
Author:
michaelld@…
Message:

octave-devel: Fixes ticket #29919. Update to 3.4.2; add in support for latest fltk-devel; remove cruft.

Location:
trunk/dports/math/octave-devel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/octave-devel/Portfile

    r78774 r79770  
    55 
    66name                octave-devel 
    7 version             3.4.0 
     7version             3.4.2 
    88conflicts           octave 
    99categories          math science 
     
    2424use_bzip2           yes 
    2525 
    26 checksums           md5     c8144cee1d37e645d3368a8e8a5f1856 \ 
    27                     sha1    936a8fc962abd96e7568fb5909ec2a4d7997a1a8 \ 
    28                     rmd160  8448fc8277e19dab8dbc5c0121e673e9198c74ec 
     26checksums           md5     31c744ab4555a2bf04d5e644b93f9b51 \ 
     27                    sha1    12cac29ef7d1ab8374980e1e2fd14637b2f15ba5 \ 
     28                    rmd160  ad2222ad0b3e0f1dd6db1ff8ca93c0666b95e3a0 
    2929 
    3030depends_build       port:bison \ 
     
    3232                    port:gawk \ 
    3333                    port:gperf \ 
     34                    port:grep \ 
    3435                    port:gsed \ 
    3536                    path:bin/perl:perl5 \ 
     
    5758 
    5859# allow non-Apple compilers to work with FLTK by removing the -arch 
    59 # flag, which means this port cannot easy compile as universal. 
     60# flag, which means this port cannot easily compile as universal. 
    6061patchfiles-append patch-configure.diff 
    6162 
    6263universal_variant   no 
    6364 
    64 configure.args      --without-x \ 
    65                     --enable-shared \ 
    66                     --enable-dl \ 
     65configure.args      --disable-dependency-tracking \ 
     66                    --without-x \ 
    6767                    --disable-docs \ 
    68                     --disable-openmp 
     68                    --with-cholmod="-lcholmod -lmetis" 
    6969 
    70 # do not build static libraries; just shared 
    71 #                    --enable-static 
    72  
    73 ### the following are probably not necessary (except possibly the 
    74 ### 'cholmod' one), but are included for completion.  Ordering is the 
    75 ### same as in './configure --help'. 
    76 configure.args-append \ 
    77                     --enable-readline \ 
    78                     --enable-extra-warning-flags \ 
    79                     --with-qhull \ 
    80                     --with-z \ 
    81                     --with-hdf5 \ 
    82                     --with-fftw3 \ 
    83                     --with-fftw3f \ 
    84                     --with-glpk \ 
    85                     --with-curl \ 
    86                     --with-blas \ 
    87                     --with-lapack \ 
    88                     --with-qrupdate \ 
    89                     --with-amd \ 
    90                     --with-camd \ 
    91                     --with-colamd \ 
    92                     --with-ccolamd \ 
    93                     --with-cholmod="-lcholmod -lmetis" \ 
    94                     --with-cxsparse \ 
    95                     --with-umfpack \ 
    96                     --with-arpack 
    97  
    98 ### the following are probably not necessary, but are included for 
    99 ### completion. 
    10070# octave uses a number of other ports to create sources from template: 
    101 # perl, gawk, gsed, flex, bison, texinfo.  python is not used if perl 
    102 # is available, so clear it out.  FLTK doesn't work as of 1.3.x-r7794, 
    103 # so disable it entirely (via "no" here and a configure patch). 
     71# perl, gawk, gsed, flex, bison, texinfo.  Make sure these are the 
     72# MacPorts' versions.  Python is not used if perl is available, so 
     73# clear it out.  grep is checked for in 'configure', but not used 
     74# except inside that script; include it here for completion. 
    10475configure.perl      ${prefix}/bin/perl 
    10576configure.python    ' ' 
    10677configure.awk       ${prefix}/bin/gawk 
    107 configure.env-append SED="${prefix}/bin/gsed" \ 
     78configure.env-append GREP="${prefix}/bin/grep" \ 
     79                     FLTK_CONFIG=no \ 
     80                     SED="${prefix}/bin/gsed" \ 
    10881                     TEXI2DVI="${prefix}/bin/texi2dvi" \ 
    109                      TEXI2PDF="${prefix}/bin/texi2pdf" \ 
    110                      FLTK_CONFIG=no 
     82                     TEXI2PDF="${prefix}/bin/texi2pdf" 
    11183configure.cppflags 
    11284configure.ldflags 
     
    12698} 
    12799 
    128 # check for default variant 
     100# check for GCC / G95 variants.  The default here must match the 
     101# default found in the 'arpack' and 'atlas' ports. 
     102 
     103# check for setting the default variant (gcc44) 
    129104if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ 
    130105         ![variant_isset gcc45] && ![variant_isset g95] } { 
     
    132107} 
    133108 
    134 # check for just -gcc44 
     109# check if the user disabled just the default variant: -gcc44 
    135110if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ 
    136111         ![variant_isset gcc45] && ![variant_isset g95] } { 
     
    178153} 
    179154 
    180 #variant fltk description {Include FLTK option} { 
    181 #    depends_lib-append port:fltk-devel 
    182 #    post-patch { 
    183 #        # fix use of #include Fl -> FL 
    184 #        reinplace "/include/s,Fl/,FL/,g" 
    185 #            ${worksrcpath}/src/DLD-FUNCTIONS/__init_fltk__.cc 
    186 #    } 
    187 #} 
    188  
    189 #if {![variant_isset fltk]} { 
    190 #    configure.env-append FLTK_CONFIG=no 
    191 #} 
     155# FLTK does work as of 1.3.x-r8635, so allow it as an option 
     156variant fltk description {Include FLTK for graphical front-end} { 
     157    depends_lib-append port:fltk-devel 
     158    configure.env-delete FLTK_CONFIG=no 
     159} 
    192160 
    193161livecheck.type      regex 
  • trunk/dports/math/octave-devel/files/patch-configure.diff

    r75278 r79770  
    1 --- configure.orig      2011-01-15 04:08:46.000000000 -0500 
    2 +++ configure   2011-01-19 10:06:38.000000000 -0500 
    3 @@ -32346,6 +32346,21 @@ 
     1--- configure.orig      2011-06-25 10:04:48.000000000 +0200 
     2+++ configure   2011-06-25 10:05:19.000000000 +0200 
     3@@ -33171,6 +33171,21 @@ 
    44  
    55   ## fltk (www.fltk.org) 
     
    2323 # Check whether --with-fltk-prefix was given. 
    2424 if test "${with_fltk_prefix+set}" = set; then : 
    25 @@ -32422,6 +32437,7 @@ 
     25@@ -33247,6 +33262,7 @@ 
    2626 $as_echo "no" >&6; } 
    2727 fi 
     
    3131  
    3232   warn_fltk_config="" 
    33 @@ -32432,11 +32448,29 @@ 
     33@@ -33257,11 +33273,29 @@ 
    3434   else 
    3535     FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" 
Note: See TracChangeset for help on using the changeset viewer.