Ticket #17515: Portfile.diff
File Portfile.diff, 1.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name binutils 5 version 2.1 75 version 2.19 6 6 7 7 description FSF Binutils for native development. 8 8 long_description Free Software Foundation development toolchain ("binutils") \ … … 14 14 homepage http://www.gnu.org/software/binutils/binutils.html 15 15 master_sites gnu:binutils 16 16 use_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" 17 checksums md5 17a52219dee5a76c1a9d9b0bfd337d66 \ 18 sha1 a150b97ec47996bf8f01d6bc14d41587faa4bbff \ 19 rmd160 1d5e234e22dbd9cd126ccfd685bf5700dc36ad1a 20 21 depends_lib-append port:zlib port:libiconv 22 26 23 configure.args --infodir='${prefix}/share/info' \ 27 24 --mandir='${prefix}/share/man' \ 28 25 --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. 30 build.env-append CPPFLAGS='-I${prefix}/include' 30 31 31 32 # Binutils violates the mtree layout by creating ${prefix}/<arch>/ 32 33 destroot.violate_mtree yes 33 34 34 # Fix the configure script to build bfd, binutils and opcode.35 patchfiles patch-configure36 37 35 # We don't want the etc module. 38 36 post-extract { 39 37 system "rm -rf ${worksrcpath}/etc"