Ticket #17515: Portfile.diff

File Portfile.diff, 1.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

    old new  
    22
    33PortSystem                      1.0
    44name                            binutils
    5 version                         2.17
     5version                         2.19
    66
    77description                     FSF Binutils for native development.
    88long_description        Free Software Foundation development toolchain ("binutils") \
     
    1414homepage                        http://www.gnu.org/software/binutils/binutils.html
    1515master_sites            gnu:binutils
    1616use_bzip2                       yes
    17 checksums                       md5 e26e2e06b6e4bf3acf1dc8688a94c0d1 \
    18                                         sha1 a557686eef68362ea31a3aa41ce274e3eeae1ef0 \
    19                                         rmd160 3995d7ed97f115e76ce55b4c1f5256d53559c84f
    20 
    21 # Build in a different directory, as advised in the README file.
    22 pre-configure           { system "cd ${workpath} && mkdir -p build"}
    23 configure.dir           ${workpath}/build
    24 configure.cmd           ${worksrcpath}/configure
    25 configure.cc            "cc -no-cpp-precomp"
     17checksums                       md5 17a52219dee5a76c1a9d9b0bfd337d66 \
     18                                        sha1 a150b97ec47996bf8f01d6bc14d41587faa4bbff \
     19                                        rmd160 1d5e234e22dbd9cd126ccfd685bf5700dc36ad1a
     20
     21depends_lib-append      port:zlib port:libiconv
     22
    2623configure.args          --infodir='${prefix}/share/info' \
    2724                                        --mandir='${prefix}/share/man' \
    2825                                        --program-prefix=g
    29 build.dir               ${workpath}/build
     26
     27# The Makefile runs configure again in subdirectories.
     28# It correcty passes along most configure variables (CFLAGS, LDFLAGS, ...),
     29#    but seems to neglect CPPFLAGS.
     30build.env-append        CPPFLAGS='-I${prefix}/include'
    3031
    3132# Binutils violates the mtree layout by creating ${prefix}/<arch>/
    3233destroot.violate_mtree  yes
    3334
    34 # Fix the configure script to build bfd, binutils and opcode.
    35 patchfiles                      patch-configure
    36                                        
    3735# We don't want the etc module.
    3836post-extract {
    3937        system "rm -rf ${worksrcpath}/etc"