Changeset 80294
- Timestamp:
- 07/08/11 11:44:01 (4 years ago)
- Location:
- trunk/dports/lang/apple-gcc42
- Files:
-
- 1 added
- 2 edited
-
Portfile (modified) (5 diffs)
-
files/other_langs.patch (added)
-
files/suffix.patch (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/apple-gcc42/Portfile
r80265 r80294 6 6 name apple-gcc42 7 7 version 5666.3 8 set gcc_version 4.2.1 8 9 revision 1 9 10 categories lang … … 15 16 16 17 homepage http://opensource.apple.com/ 17 master_sites http://opensource.apple.com/tarballs/gcc/ 18 master_sites gnu:/gcc/gcc-4.2.1:gnu \ 19 http://opensource.apple.com/tarballs/gcc/:apple 20 18 21 distname gcc-${version} 19 checksums md5 188c7769db5c898922b0976fab148a63 \ 20 sha1 292a0cfcfdc061cb083658efd9a3812a120a1f50 \ 21 rmd160 a01d000f89c0e89dd0079dcd202bba7629ba78dc 22 23 set dcore ${distname}.tar.gz 24 set dfort gcc-fortran-${gcc_version}.tar.bz2 25 set djava gcc-java-${gcc_version}.tar.bz2 26 27 distfiles ${dcore}:apple 28 # ${dfort}:gnu ${djava}:gnu 29 30 checksums gcc-5666.3.tar.gz \ 31 md5 188c7769db5c898922b0976fab148a63 \ 32 sha1 292a0cfcfdc061cb083658efd9a3812a120a1f50 \ 33 rmd160 a01d000f89c0e89dd0079dcd202bba7629ba78dc 34 35 # gcc-fortran-4.2.1.tar.bz2 \ 36 # md5 2a91d467b50a404ca0cd3b10b413f9b2 \ 37 # sha1 37a0466b393ade9291dcec315c69c371e42db7f5 \ 38 # rmd160 2475594dad66277fd0c5fe42389fb8fa2665e5ce \ 39 # gcc-java-4.2.1.tar.bz2 \ 40 # md5 3fc64e96388b939fada65fe3bffb5924 \ 41 # sha1 4615c85ef9010304bf412adc2f2c33d256e177fd \ 42 # rmd160 bb4b256f7e7779361214593343821a127ee78d1a 43 44 # Needed for gfortran: 45 # gmp and mpfr are not universal 46 #universal_variant no 47 #depends_lib port:gmp port:mpfr port:libiconv 22 48 23 49 depends_run port:gcc_select … … 37 63 # suffix.patch : Make binaries end in -apple-4.2 38 64 # stage1-cc.patch : Use $CC for our stage1 compiler 65 # other_langs.patch : Add support for gcj and gfortran to build_gcc 39 66 # makeinfo.patch : Fix version detection for makeinfo in configure scripts 40 67 # werror-*.patch : Fix compilation errors when building for x86_64 … … 46 73 makeinfo.patch \ 47 74 stage1-cc.patch \ 75 other_langs.patch \ 48 76 werror-c-incpath.patch \ 49 77 werror-local-alloc.patch 78 79 # gcj fails to build: 80 # gcc/java/lang.c: In function 'java_init': 81 # gcc/java/lang.c:378: error: 'force_align_functions_log' undeclared (first use in this function) 82 # gcc/java/lang.c:378: error: (Each undeclared identifier is reported only once 83 # gcc/java/lang.c:378: error: for each function it appears in.) 84 # 85 # gfortrain fails to link due to functionality moving around in core in a way the module doesn't expect 86 87 #extract { 88 # system "cd ${workpath} && tar xzf ${distpath}/${dfort}" 89 # system "cd ${workpath} && tar xzf ${distpath}/${djava}" 90 # file rename ${workpath}/gcc-${gcc_version} ${worksrcpath} 91 # system "cd ${workpath} && tar xjf ${distpath}/${dcore}" 92 #} 50 93 51 94 post-patch { … … 78 121 LIBRARY_PATH="/usr/lib" \ 79 122 CPATH="/usr/include" \ 80 PATH="/bin:/usr/bin:/sbin:/usr/sbin" 123 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 124 LANGUAGES="c,c++,objc,obj-c++" 81 125 82 126 # MAKEINFO=${prefix}/bin/makeinfo -
trunk/dports/lang/apple-gcc42/files/suffix.patch
r80247 r80294 6 6 --enable-languages=$LANGUAGES \ 7 7 - --program-transform-name=/^[cg][^.-]*$/s/$/-$MAJ_VERS/ \ 8 + --libexecdir= \${prefix}/libexec/apple-gcc42 \9 + --libdir= \${prefix}/lib/apple-gcc42 \10 + --includedir= \${prefix}/include/apple-gcc42 \8 + --libexecdir=$DEST_ROOT/libexec/apple-gcc42 \ 9 + --libdir=$DEST_ROOT/lib/apple-gcc42 \ 10 + --includedir=$DEST_ROOT/include/apple-gcc42 \ 11 11 + --program-suffix=-apple-$MAJ_VERS \ 12 12 --with-slibdir=/usr/lib \
Note: See TracChangeset
for help on using the changeset viewer.

