Changeset 110848 for trunk/dports/cross


Ignore:
Timestamp:
Sep 8, 2013, 6:30:16 AM (6 years ago)
Author:
mojca@…
Message:

i386-mingw32-binutils: whitespace & first line only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/cross/i386-mingw32-binutils/Portfile

    r80347 r110848  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    2 PortSystem              1.0
     3PortSystem          1.0
    34
    4 name                    i386-mingw32-binutils
    5 version                 2.21-3
    6 maintainers             landonf
    7 description             Mingw32 Binutils for i386-mingw32 cross development
    8 long_description        Mingw32 development toolchain ("binutils") \
    9                         for i386-mingw32 (Windows) cross development.
    10 homepage                http://www.mingw.org
    11 categories              cross devel
     5name                i386-mingw32-binutils
     6version             2.21-3
     7maintainers         landonf
     8description         Mingw32 Binutils for i386-mingw32 cross development
     9long_description    Mingw32 development toolchain ("binutils") \
     10                    for i386-mingw32 (Windows) cross development.
     11homepage            http://www.mingw.org
     12categories          cross devel
    1213
    13 depends_lib             port:gettext
     14depends_lib         port:gettext
    1415
    1516# Parameters for this port.
    1617set crossgcc-target i386-mingw32
    1718
    18 platforms               darwin
    19 master_sites            sourceforge:project/mingw/MinGW/BaseSystem/GNU-Binutils/binutils-[lindex [split ${version} -] 0]
    20 use_lzma                yes
    21 distname                binutils-${version}-mingw32-src
    22 worksrcdir              binutils-[lindex [split ${version} -] 0]
     19platforms           darwin
     20master_sites        sourceforge:project/mingw/MinGW/BaseSystem/GNU-Binutils/binutils-[lindex [split ${version} -] 0]
     21use_lzma            yes
     22distname            binutils-${version}-mingw32-src
     23worksrcdir          binutils-[lindex [split ${version} -] 0]
    2324
    24 checksums               sha1    ad67d8f010b87643087f77390aebef287b00a189 \
    25                         rmd160  0774cd01e36e0dfabafd73950cc071754fbe8d1a
     25# checksums       sha1    ad67d8f010b87643087f77390aebef287b00a189 \
     26#                 rmd160  0774cd01e36e0dfabafd73950cc071754fbe8d1a
    2627
    2728# Build in a different directory, as advised in the README file.
    28 pre-configure           { system "cd ${workpath} && mkdir -p build"}
    29 configure.dir           ${workpath}/build
    30 configure.cmd           ${worksrcpath}/configure
    31 configure.args          --infodir='${prefix}/share/info' --target=${crossgcc-target} \
    32                                         --program-prefix=${crossgcc-target}- --mandir='${prefix}/share/man' \
    33                                         --disable-werror
     29pre-configure       { system "cd ${workpath} && mkdir -p build"}
     30configure.dir       ${workpath}/build
     31configure.cmd       ${worksrcpath}/configure
     32configure.args      --infodir='${prefix}/share/info' --target=${crossgcc-target} \
     33                    --program-prefix=${crossgcc-target}- --mandir='${prefix}/share/man' \
     34                    --disable-werror
    3435if {${os.platform} == "darwin" && $build_arch != ""} {
    3536    configure.args-append --build=${build_arch}-apple-darwin${os.major}
    3637}
    3738# Append CPPFLAGS to CFLAGS and CXXFLAGS as CPPFLAGS seems to be ignored
    38 configure.cflags-append ${configure.cppflags}
    39 configure.cxxflags-append       ${configure.cppflags}
    40 build.dir               ${workpath}/build
     39configure.cflags-append     ${configure.cppflags}
     40configure.cxxflags-append   ${configure.cppflags}
     41build.dir                   ${workpath}/build
    4142
    4243# We don't want the etc module.
    4344post-extract {
    44         system "rm -rf ${worksrcpath}/etc"
     45    system "rm -rf ${worksrcpath}/etc"
    4546}
    4647
    4748post-patch {
    48         namespace eval crossgcc {}
     49    namespace eval crossgcc {}
    4950
    50         # Fix the info pages and related stuff.
    51         #       
    52         # path: path to the doc directory (e.g. gas/doc/)
    53         # makefile: path to Makefile.in (e.g. gas/doc/Makefile.in)
    54         # name: name of the info page (e.g. as)
    55         # suffix: suffix of the souce page (texinfo or texi)
    56         proc crossgcc::fixinfo { path makefile name suffix } {
    57                 global crossgcc-target worksrcpath
     51    # Fix the info pages and related stuff.
     52    #   
     53    # path: path to the doc directory (e.g. gas/doc/)
     54    # makefile: path to Makefile.in (e.g. gas/doc/Makefile.in)
     55    # name: name of the info page (e.g. as)
     56    # suffix: suffix of the souce page (texinfo or texi)
     57    proc crossgcc::fixinfo { path makefile name suffix } {
     58        global crossgcc-target worksrcpath
    5859
    59                 # Fix the source
    60                 reinplace "s|setfilename ${name}.info|setfilename ${crossgcc-target}-${name}.info|g" \
    61                         ${worksrcpath}/${path}/${name}.${suffix}
    62                 reinplace "s|(${name})|(${crossgcc-target}-${name})|g" \
    63                         ${worksrcpath}/${path}/${name}.${suffix}
    64                 reinplace "s|@file{${name}}|@file{${crossgcc-target}-${name}}|g" \
    65                         ${worksrcpath}/${path}/${name}.${suffix}
    66                
    67                 # Fix the Makefile
    68                 reinplace "s|${name}.info|${crossgcc-target}-${name}.info|g" \
    69                         ${worksrcpath}/${makefile}
    70                 reinplace "s|${name}.${suffix}|${crossgcc-target}-${name}.${suffix}|g" \
    71                         ${worksrcpath}/${makefile}
    72                
    73                 # Rename the source
    74                 file rename ${worksrcpath}/${path}/${name}.${suffix} \
    75                         ${worksrcpath}/${path}/${crossgcc-target}-${name}.${suffix}
    76                
    77                 # Fix install-info's dir.
    78                 # (note: this may be effectless if there was no info dir to be fixed)
    79                 reinplace "s|__TARGET|${crossgcc-target}|g" \
    80                         "${worksrcpath}/${makefile}"
    81         }
     60        # Fix the source
     61        reinplace "s|setfilename ${name}.info|setfilename ${crossgcc-target}-${name}.info|g" \
     62            ${worksrcpath}/${path}/${name}.${suffix}
     63        reinplace "s|(${name})|(${crossgcc-target}-${name})|g" \
     64            ${worksrcpath}/${path}/${name}.${suffix}
     65        reinplace "s|@file{${name}}|@file{${crossgcc-target}-${name}}|g" \
     66            ${worksrcpath}/${path}/${name}.${suffix}
     67       
     68        # Fix the Makefile
     69        reinplace "s|${name}.info|${crossgcc-target}-${name}.info|g" \
     70            ${worksrcpath}/${makefile}
     71        reinplace "s|${name}.${suffix}|${crossgcc-target}-${name}.${suffix}|g" \
     72            ${worksrcpath}/${makefile}
     73       
     74        # Rename the source
     75        file rename ${worksrcpath}/${path}/${name}.${suffix} \
     76            ${worksrcpath}/${path}/${crossgcc-target}-${name}.${suffix}
     77       
     78        # Fix install-info's dir.
     79        # (note: this may be effectless if there was no info dir to be fixed)
     80        reinplace "s|__TARGET|${crossgcc-target}|g" \
     81            "${worksrcpath}/${makefile}"
     82    }
    8283
    83         # Fix the gettext files and related stuff.
    84         #       
    85         # module: name of the module (e.g. gas)
    86         proc crossgcc::fixgettext { module } {
    87                 global crossgcc-target worksrcpath
     84    # Fix the gettext files and related stuff.
     85    #   
     86    # module: name of the module (e.g. gas)
     87    proc crossgcc::fixgettext { module } {
     88        global crossgcc-target worksrcpath
    8889
    89                 if { [ file exists "${worksrcpath}/${module}/Makefile.in" ] } {
    90                         reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
    91                                 "${worksrcpath}/${module}/Makefile.in"
    92                 }
    93                 if { [ file exists "${worksrcpath}/${module}/doc/Makefile.in" ] } {
    94                         reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
    95                                 "${worksrcpath}/${module}/doc/Makefile.in"
    96                 }
    97                 if { [ file exists "${worksrcpath}/${module}/po/Make-in" ] } {
    98                         reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
    99                                 "${worksrcpath}/${module}/po/Make-in"
    100                 }
    101         }
     90        if { [ file exists "${worksrcpath}/${module}/Makefile.in" ] } {
     91            reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
     92                "${worksrcpath}/${module}/Makefile.in"
     93        }
     94        if { [ file exists "${worksrcpath}/${module}/doc/Makefile.in" ] } {
     95            reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
     96                "${worksrcpath}/${module}/doc/Makefile.in"
     97        }
     98        if { [ file exists "${worksrcpath}/${module}/po/Make-in" ] } {
     99            reinplace "s|@PACKAGE@|${crossgcc-target}-@PACKAGE@|g" \
     100                "${worksrcpath}/${module}/po/Make-in"
     101        }
     102    }
    102103
    103         # gas/doc/as.texinfo
    104         crossgcc::fixinfo gas/doc/ gas/doc/Makefile.in as texinfo
     104    # gas/doc/as.texinfo
     105    crossgcc::fixinfo gas/doc/ gas/doc/Makefile.in as texinfo
    105106
    106         # bfd/doc/bfd.texinfo
    107         crossgcc::fixinfo bfd/doc/ bfd/doc/Makefile.in bfd texinfo
     107    # bfd/doc/bfd.texinfo
     108    crossgcc::fixinfo bfd/doc/ bfd/doc/Makefile.in bfd texinfo
    108109
    109         # binutils/doc/binutils.texi
    110         crossgcc::fixinfo binutils/doc/ binutils/doc/Makefile.in binutils texi
     110    # binutils/doc/binutils.texi
     111    crossgcc::fixinfo binutils/doc/ binutils/doc/Makefile.in binutils texi
    111112
    112         # gprof/gprof.texi
    113         crossgcc::fixinfo gprof/ gprof/Makefile.in gprof texi
     113    # gprof/gprof.texi
     114    crossgcc::fixinfo gprof/ gprof/Makefile.in gprof texi
    114115
    115         # ld/ld.texinfo
    116         crossgcc::fixinfo ld/ ld/Makefile.in ld texinfo
    117        
    118         # gettext stuff.
    119         crossgcc::fixgettext bfd
    120         crossgcc::fixgettext binutils
    121         crossgcc::fixgettext gas
    122         crossgcc::fixgettext gprof
    123         crossgcc::fixgettext ld
    124         crossgcc::fixgettext opcodes
     116    # ld/ld.texinfo
     117    crossgcc::fixinfo ld/ ld/Makefile.in ld texinfo
     118   
     119    # gettext stuff.
     120    crossgcc::fixgettext bfd
     121    crossgcc::fixgettext binutils
     122    crossgcc::fixgettext gas
     123    crossgcc::fixgettext gprof
     124    crossgcc::fixgettext ld
     125    crossgcc::fixgettext opcodes
    125126}
    126127
    127 destroot.violate_mtree  yes
     128destroot.violate_mtree  yes
    128129post-destroot {
    129         # Installing (host) libiberty was a mistake.
    130         foreach f [glob -directory "${destroot}${prefix}/lib" libiberty.a */libiberty.a] {
     130    # Installing (host) libiberty was a mistake.
     131    foreach f [glob -directory "${destroot}${prefix}/lib" libiberty.a */libiberty.a] {
    131132        file delete $f
    132133    }
Note: See TracChangeset for help on using the changeset viewer.