Changeset 80249
- Timestamp:
- 07/07/11 13:08:29 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/lang/apple-gcc42-devel/Portfile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/apple-gcc42-devel/Portfile
r74555 r80249 7 7 categories lang 8 8 platforms darwin 9 maintainers illogic-al9 maintainers nomaintainer 10 10 description Updated version of Apple's version of gcc 4.2 11 11 long_description Apple's version of the GNU compiler collection, \ … … 13 13 14 14 homepage http://developer.apple.com/documentation/DeveloperTools/gcc-4.2/gcc/ 15 master_sites http://www.opensource.apple.com/darwinsource/tarballs/other/16 distname gcc_42-${version}17 checksums md5 cc919b07776db1a209ccaa48b0e19da718 15 19 # The prefix is set to /usr because parts of the script are hardcoded to expect it 20 set build_prefix /usr 16 replaced_by apple-gcc42 21 17 22 post-extract { 23 file mkdir ${worksrcpath}/debug 24 file mkdir ${destroot} 18 distfiles 19 20 pre-configure { 21 ui_error "${name} has been replaced by ${replaced_by}. Please install ${replaced_by} instead." 22 return -code error "obsolete port" 25 23 } 26 24 27 post-patch { 28 reinplace "s|MAKEINFO=\$\(MAKEINFO\) \$\(MAKEINFOFLAGS\)|MAKEINFO=makeinfo \$\(MAKEINFOFLAGS\)|" ${worksrcpath}/Makefile.in 29 } 30 31 use_configure no 32 universal_variant yes 33 if {[variant_isset universal]} { 34 set archs ${configure.universal_archs} 35 } else { 36 set archs ${configure.build_arch} 37 } 38 39 # first parameter: space-separated list of archs compiler will run on 40 # second parameter: space-separated list of archs compiler will generate code for 41 # third parameter: path to the compiler sources 42 # fourth parameter: location compiler will be installed to. /usr is expected 43 # fifth parameter: place compiler will be copied once it's built 44 # sixth parameter: a directory to place information helpful in debugging compiler 45 # This build.cmd line will build gcc 4.2 with c++ and obj-c++ support 46 build.cmd ${worksrcpath}/build_gcc \ 47 \"${archs}\" \"${archs}\" \ 48 ${worksrcpath} ${build_prefix} ${destroot} ${worksrcpath}/debug 49 50 destroot {} 51 52 platform darwin 8 { 53 destroot.violate_mtree yes 54 # Delete docs and not violate_mtree 55 #system "rm -rf ${destroot}/Developer" 56 } 57 58 platform darwin 9 { 59 post-destroot { 60 # This documentation is already installed in Xcode for 10.5 61 system "rm -rf ${destroot}/Developer" 62 } 63 } 64 65 post-destroot { 66 system "mkdir -p ${destroot}${prefix}" 67 system "rm -rf ${destroot}${prefix}/*" 68 system "mv -f ${destroot}${build_prefix}/* ${destroot}${prefix}" 69 system "rmdir ${destroot}${build_prefix}" 70 } 71 72 livecheck.type moddate 73 livecheck.url ${master_sites} 74 25 livecheck.type none
Note: See TracChangeset
for help on using the changeset viewer.

