[99427] trunk/dports/cross/m68k-elf-gcc/Portfile
jmr at macports.org
jmr at macports.org
Sun Nov 4 18:43:11 PST 2012
Revision: 99427
http://trac.macports.org//changeset/99427
Author: jmr at macports.org
Date: 2012-11-04 18:43:11 -0800 (Sun, 04 Nov 2012)
Log Message:
-----------
m68k-elf-gcc: build fixes (#36574), set license
Modified Paths:
--------------
trunk/dports/cross/m68k-elf-gcc/Portfile
Modified: trunk/dports/cross/m68k-elf-gcc/Portfile
===================================================================
--- trunk/dports/cross/m68k-elf-gcc/Portfile 2012-11-05 02:02:51 UTC (rev 99426)
+++ trunk/dports/cross/m68k-elf-gcc/Portfile 2012-11-05 02:43:11 UTC (rev 99427)
@@ -1,6 +1,7 @@
# $Id$
PortSystem 1.0
+
name m68k-elf-gcc
version 3.4.6
revision 1
@@ -16,6 +17,7 @@
homepage http://gcc.gnu.org/
platforms darwin
categories cross devel
+license {GPL-2+ Permissive}
maintainers nomaintainer
master_sites gnu:gcc/gcc-${version}/:gcc \
ftp://sources.redhat.com/pub/newlib/:newlib \
@@ -38,12 +40,8 @@
# Download everything to gcc/
dist_subdir gcc
-depends_lib bin:${crossgcc-target}-ar:${crossgcc-target}-binutils \
- bin:${crossgcc-target}-as:${crossgcc-target}-binutils \
- bin:${crossgcc-target}-ld:${crossgcc-target}-binutils \
- bin:${crossgcc-target}-nm:${crossgcc-target}-binutils \
- bin:${crossgcc-target}-ranlib:${crossgcc-target}-binutils
-depends_build bin:msgfmt:gettext
+depends_lib port:${crossgcc-target}-binutils
+depends_build port:gettext
# gcc is .bz2, newlib is .gz.
# let's extract only gcc with MacPorts infrastructure, we'll do newlib manually.
@@ -68,6 +66,12 @@
NM_FOR_TARGET=${crossgcc-target}-nm \
RANLIB_FOR_TARGET=${crossgcc-target}-ranlib]
+# ticket #36574, cf. #31892
+compiler.blacklist clang llvm-gcc-4.2
+if {${configure.compiler} == "apple-gcc-4.2"} {
+ depends_build-append port:apple-gcc42
+}
+
# Build in a different directory, as advised in the README file.
pre-configure {
file mkdir "${workpath}/build"
@@ -75,6 +79,7 @@
configure.dir ${workpath}/build
configure.cmd ${workpath}/gcc-${version}/configure
configure.env ${environment}
+configure.cflags-append -DLIBICONV_PLUG
configure.args --infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' \
--target=${crossgcc-target} \
@@ -86,6 +91,14 @@
--enable-multilib \
--with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${version}/ \
${default-languages}
+configure.cc_archflags
+configure.cxx_archflags
+configure.objc_archflags
+configure.ld_archflags
+if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "ppc64")} {
+ configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} \
+ --host=${build_arch}-apple-${os.platform}${os.version}
+}
build.dir ${workpath}/build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121104/05b1abb1/attachment.html>
More information about the macports-changes
mailing list