[64125] trunk/dports/cross/avr-binutils

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Feb 22 13:24:31 PST 2010


Revision: 64125
          http://trac.macports.org/changeset/64125
Author:   macsforever2000 at macports.org
Date:     2010-02-22 13:24:28 -0800 (Mon, 22 Feb 2010)
Log Message:
-----------
Update to version 2.20. (#23216)

Modified Paths:
--------------
    trunk/dports/cross/avr-binutils/Portfile

Removed Paths:
-------------
    trunk/dports/cross/avr-binutils/files/

Modified: trunk/dports/cross/avr-binutils/Portfile
===================================================================
--- trunk/dports/cross/avr-binutils/Portfile	2010-02-22 18:54:03 UTC (rev 64124)
+++ trunk/dports/cross/avr-binutils/Portfile	2010-02-22 21:24:28 UTC (rev 64125)
@@ -2,7 +2,7 @@
 
 PortSystem			1.0
 name				avr-binutils
-version				2.16.1
+version				2.20
 
 # Parameters for this port.
 set crossgcc-target avr
@@ -14,60 +14,45 @@
 categories			cross devel
 maintainers			gmail.com:metamagix
 homepage			http://www.gnu.org/software/binutils/binutils.html
-master_sites		gnu:binutils
+master_sites		http://ftp.gnu.org/gnu/binutils/ \
+					ftp://ftp.kernel.org/pub/linux/devel/binutils/ \
+					http://ftp.kernel.org/pub/linux/devel/binutils/
 distname			binutils-${version}
 use_bzip2			yes
-checksums			md5 6a9d529efb285071dad10e1f3d2b2967 \
-					sha1 5c80fd5657da47efc16a63fdd93ef7395319fbbf \
-					rmd160 638861a6b709ac380f1bc13d55c6b48d0532b3d0
+checksums			md5     ee2d3e996e9a2d669808713360fa96f8 \
+					sha1    747e7b4d94bce46587236dc5f428e5b412a590dc \
+					rmd160  284074e2453e517d036ffce2c0f3d56439e2e5c0
 
+depends_lib		    port:gettext
+
 # All cross ports violate the mtree layout.
 destroot.violate_mtree	yes
 
 # Download everything to binutils/
 dist_subdir			binutils
 
-# Patches
-patchfiles		patch-bfd-Makefile.am.diff \
-				patch-bfd-Makefile.in.diff \
-				patch-bfd-coff-avr.c.diff \
-				patch-bfd-coff-ext-avr.c.diff \
-				patch-bfd-coffcode.h.diff \
-				patch-bfd-coffgen.c.diff \
-				patch-bfd-coffswap.h.diff \
-				patch-bfd-config.bfd.diff \
-				patch-bfd-configure.diff \
-				patch-bfd-configure.in.diff \
-				patch-bfd-targets.c.diff \
-				patch-binutils-Makefile.am.diff \
-				patch-binutils-Makefile.in.diff \
-				patch-binutils-bucomm.c.diff \
-				patch-binutils-bucomm.h.diff \
-				patch-binutils-budbg.h.diff \
-				patch-binutils-debug.c.diff \
-				patch-binutils-debug.h.diff \
-				patch-binutils-doc-objcopy.1.diff \
-				patch-binutils-objcopy.c.diff \
-				patch-binutils-rdcoff.c.diff \
-				patch-binutils-wrcoff.c.diff \
-				patch-gas-config-tc-avr.c.diff \
-				patch-include-coff-avr.h.diff \
-				patch-include-coff-internal.h.diff \
-				patch-include-opcode-avr.h.diff \
-				patch-libiberty-Makefile.diff \
-				patch-opcodes-Makefile.diff 
-
 # Build in a different directory, as advised in the README file.
 pre-configure   	{ system "cd ${workpath} && mkdir -p build"}
 configure.dir   	${workpath}/build
 configure.cmd   	${worksrcpath}/configure
-configure.cc    	"cc -no-cpp-precomp"
-configure.args  	--infodir='${prefix}/share/info' --target=${crossgcc-target} \
-					--program-prefix=${crossgcc-target}- --mandir='${prefix}/share/man'
-if {$build_arch != "" && ${os.platform} == "darwin"} {
-    configure.args-append --build=${build_arch}-apple-darwin${os.major} \
-                          --host=${build_arch}-apple-darwin${os.major}
+configure.cc	   	"cc -no-cpp-precomp"
+
+# using --disable-werror because of 
+# "strings.c:419: warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:465)"
+# don't know how to fix this proper...
+configure.args  	--disable-werror \
+					--infodir='${prefix}/share/info' \
+					--disable-nls \
+					--disable-install-libiberty \
+					--target=${crossgcc-target} \
+					--program-prefix=${crossgcc-target}- \
+					--mandir='${prefix}/share/man'
+
+if {$build_arch != "" && ${os.platform} == "darwin"} { 
+	configure.args-append --build=${build_arch}-apple-darwin${os.major} \
+						  --host=${build_arch}-apple-darwin${os.major} 
 }
+
 build.dir       	${workpath}/build
 					
 # We don't want the etc module.
@@ -157,12 +142,11 @@
 
 post-destroot {
 	# Installing (host) libiberty was a mistake.
-	file delete "${destroot}/${prefix}/lib/libiberty.a"
+    if { [ file exists "${destroot}${prefix}/lib/libiberty.a" ] } {
+	    file delete "${destroot}${prefix}/lib/libiberty.a"
+	}
+    if { [ file exists "${destroot}${prefix}/lib/x86_64/libiberty.a" ] } {
+	    file delete "${destroot}${prefix}/lib/x86_64/libiberty.a"
+	}
 }
 
-# livecheck.
-# This release is equivalent to FreeBSD 2.16.1_5
-# It doesn't make much sense to compare to binutils release.
-livecheck.regex				">$name-(.*?)<"
-livecheck.url				"http://www.freebsd.org/cgi/ports.cgi?query=${name}&stype=all"
-livecheck.version			2.16.1_5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100222/6ef36561/attachment.html>


More information about the macports-changes mailing list