Skip to content
Permalink
Browse files

use configure.compiler instead

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28298 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Aug 27, 2007
1 parent 0ab69c5 commit eddbbb47b4666daff40c34963b4b83d9273848aa
Showing with 21 additions and 6 deletions.
  1. +4 −1 lang/gcc40/Portfile
  2. +4 −1 lang/gcc41/Portfile
  3. +12 −3 lang/gcc42/Portfile
  4. +1 −1 lang/gcc43/Portfile
@@ -41,6 +41,9 @@ post-extract {
file mkdir ${worksrcpath}
}

#patchfiles patch-config-i386-darwin.h
#patch.dir ${workpath}/gcc-${version}

configure.cmd ${workpath}/gcc-${version}/configure
configure.args --enable-languages=c,c++,java,objc,f95 \
--libdir=${prefix}/lib/${name} \
@@ -76,7 +79,7 @@ platform darwin 7 {
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
configure.compiler gcc-4.0
}

platform powerpc {
@@ -66,10 +66,13 @@ post-destroot {
cd ${destroot}${prefix}
file delete -force share/man/man7
file delete -force share/info
foreach b { c++ cpp fastjar g++ gcc gccbug gcj gcjh gcov gfortran gjnih grepjar } {
system "cd ${destroot}${prefix}/bin && ln -s ${b}-mp-4.1 ${b}-dp-4.1"
}
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
configure.compiler gcc-4.0
}

platform darwin i386 {
@@ -39,6 +39,13 @@ set major 4.2

worksrcdir build

patch {
# fix names of infopages
foreach f { cpp cppinternals gcc gccint} {
reinplace "s|${f}.info|${f}-mp-${version}.info|g" ${workpath}/gcc-${version}/gcc/doc/${f}.texi
}
}

pre-configure {
file mkdir ${worksrcpath}
}
@@ -61,9 +68,11 @@ configure.args --enable-languages=c,c++,java,objc,obj-c++,fortran \
build.target bootstrap
build.args -j 2

destroot.target install install-info-host

post-destroot {
file delete -force ${destroot}${prefix}/share/man/man7 \
${destroot}${prefix}/share/info
file delete -force ${destroot}${prefix}/share/man/man7
# ${destroot}${prefix}/share/info
}

#platform darwin 7 {
@@ -73,7 +82,7 @@ post-destroot {
#}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
configure.compiler gcc-4.0
}

post-destroot {
@@ -74,7 +74,7 @@ post-destroot {
#}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
configure.compiler gcc-4.0
}

platform powerpc {

0 comments on commit eddbbb4

Please sign in to comment.
You can’t perform that action at this time.