Ticket #33107: Portfile-avrgcc.diff
File Portfile-avrgcc.diff, 4.3 KB (added by titus@…, 13 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name avr-gcc 5 version 4.0.2 6 7 # Parameters for this port. 8 set crossgcc-target avr 9 set default-languages --enable-languages="c,c++" 10 11 description gcc cross-compilers for avr 12 long_description GNU compilers collection (c and c++) for avr. 13 homepage http://gcc.gnu.org/ 5 version 4.6.2 14 6 platforms darwin 15 7 categories cross devel 16 8 maintainers nomaintainer 9 license {GPL-3+ Permissive} 10 description GNU cross compilers for Atmel AVR 11 long_description GNU compilers collection (c and c++) for Atmel AVR 8bit microcontrollers.. 12 homepage http://gcc.gnu.org/ 17 13 master_sites gnu:gcc/gcc-${version}/ 18 14 distfiles gcc-${version}.tar.bz2 15 use_bzip2 yes 19 16 worksrcdir gcc-${version} 20 checksums md5 a659b8388cac9db2b13e056e574ceeb0 \ 21 sha1 f1b714c6398393d8f7f4ad5be933b462a95b075d \ 22 rmd160 70c7e21820da4d29ce6e8e48329d906ee19333aa 17 checksums md5 028115c4fbfb6cfd75d6369f4a90d87e \ 18 sha256 60b05463dfe18d40d68fb8a71b25b408a01f86cc6ceaf5e6b22238b6b0f450c2 \ 19 rmd160 e7041933b39629f9524848dcf81a1a4c02a225c6 20 21 # Parameters for this port. 22 set crossgcc-target avr 23 set default-languages --enable-languages="c,c++" 23 24 24 25 # All cross ports violate the mtree layout. 25 26 destroot.violate_mtree yes … … 31 32 bin:${crossgcc-target}-as:${crossgcc-target}-binutils \ 32 33 bin:${crossgcc-target}-ld:${crossgcc-target}-binutils \ 33 34 bin:${crossgcc-target}-nm:${crossgcc-target}-binutils \ 34 bin:${crossgcc-target}-ranlib:${crossgcc-target}-binutils 35 bin:${crossgcc-target}-ranlib:${crossgcc-target}-binutils \ 36 port:gmp port:mpfr port:libiconv port:libmpc port:ppl 37 35 38 depends_build bin:msgfmt:gettext 36 39 37 # gcc is .bz2.38 use_bzip2 yes39 40 # Since we don't build gcc and binutils at the same time, gcc's Makefile will try to transform 40 41 # program names as gcc's name (add -${version} with ${version} being the version of gcc). 41 42 # But it won't work because binutils binaries don't have the ${version} suffix, and even if they … … 53 54 pre-configure { 54 55 file mkdir "${workpath}/build" 55 56 } 57 58 patchfiles-append lto-plugin-osx.diff 59 56 60 configure.dir ${workpath}/build 57 61 configure.cmd ${workpath}/gcc-${version}/configure 58 configure.cc"cc -no-cpp-precomp"62 # configure.cc "cc -no-cpp-precomp" 59 63 configure.env ${environment} 60 64 configure.args --infodir='${prefix}/share/info' \ 61 65 --mandir='${prefix}/share/man' \ … … 63 67 --program-prefix=${crossgcc-target}- \ 64 68 --with-included-gettext \ 65 69 --enable-obsolete \ 70 --disable-nls \ 71 --enable-lto \ 72 --with-plugin-ld=${crossgcc-target}-ld \ 73 --disable-libquadmath \ 66 74 --with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${version}/ \ 67 75 ${default-languages} 76 68 77 if {$build_arch != "" && ${os.platform} == "darwin"} { 69 78 configure.cc_archflags 70 79 configure.cxx_archflags … … 78 87 build.args ${environment} 79 88 destroot.args ${environment} 80 89 81 patchfiles gcc-config-avr-avr.c.diff \82 gcc-config-avr-avr.h.diff \83 gcc-config-avr-t-avr.diff84 85 90 platform darwin 9 { 86 91 patchfiles-append gcc-config-rs6000-host-darwin.c.diff 87 92 } … … 168 173 # gcc/doc/gccint.texi 169 174 crossgcc::fixinfo gcc/doc/ gcc/Makefile.in gccint texi 170 175 176 # libquadmath/libquadmath.texi 177 crossgcc::fixinfo libquadmath libquadmath/Makefile.in libquadmath texi 178 171 179 # gcc/f/g77.texi 172 180 crossgcc::fixinfo gcc/fortran/ gcc/fortran/Make-lang.in gfortran texi 173 181 … … 175 183 crossgcc::fixinfo gcc/java/ gcc/java/Make-lang.in gcj texi 176 184 177 185 # fastjar/fastjar.texi 178 crossgcc::fixinfo fastjar/ fastjar/Makefile.in fastjar texi186 #crossgcc::fixinfo fastjar/ fastjar/Makefile.in fastjar texi 179 187 180 188 # gcc/doc/gccinstall.info 181 189 crossgcc::fixinfo gcc/doc/ gcc/Makefile.in gccinstall info … … 220 228 file delete -force "${destroot}${prefix}/share/man/man7" 221 229 222 230 # (host) libiberty 223 file delete "${destroot}${prefix}/lib/ libiberty.a"231 file delete "${destroot}${prefix}/lib/${build_arch}/libiberty.a" 224 232 225 233 # aliases for charsets (should already be there) 226 234 file delete "${destroot}${prefix}/lib/charset.alias"