Modified: trunk/dports/lang/sdcc29/Portfile (74015 => 75731)
--- trunk/dports/lang/sdcc/Portfile 2010-12-02 13:02:37 UTC (rev 74015)
+++ trunk/dports/lang/sdcc29/Portfile 2011-02-06 01:14:37 UTC (rev 75731)
@@ -3,12 +3,12 @@
PortSystem 1.0
-name sdcc
-version 3.0.0
+name sdcc29
+version 2.9.0
categories lang
platforms darwin
#license GPLv3
-maintainers snc openmaintainer
+maintainers michaelld openmaintainer
description ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80
long_description SDCC is a freeware, retargettable, optimizing ANSI C \
compiler that targets the Intel 8051, Maxim 80DS390, and \
@@ -17,28 +17,37 @@
homepage http://sdcc.sourceforge.net/
master_sites sourceforge
-checksums md5 20fbd49a3421e09fe65577c45524c89e \
- sha1 5f50f3841d58c10432bc4352e06a3f1b1f339ec1 \
+checksums md5 a6151ed328fd3bc48305ffbc628dc122 \
+ sha1 03308a233a67e7fdce3f7e4972acb8731ae42666 \
+ rmd160 38f23365b676132651f0322779bff498eb7e2b8d
+dist_subdir sdcc
+
depends_build port:gputils
depends_lib port:readline
+depends_run port:gputils
use_bzip2 yes
-distfiles ${name}-src-${version}${extract.suffix}
+distfiles sdcc-src-${version}${extract.suffix}
-worksrcdir ${name}
+worksrcdir sdcc
-# Setting CPP explicitly is bad, because 'cpp' and 'gcc -E' are not the same.
+# requires "sizeof (long)" to be the a single value, so no universal;
+# universal isn't really required anyway.
+universal_variant no
+
+# Setting CPP explicitly is bad, because 'cpp' and
+# 'gcc -E' are not the same.
configure.cpp {}
-configure.args --enable-avr-port \
- --enable-xa51-port
-build.type gnu
+# make sure to not use any already installed headers and libraries;
+# these are set in CPATH and LIBRARY_PATH anyway.
+configure.args-append --prefix=${prefix}/libexec/${name}
+configure.ldflags-delete "-L${prefix}/lib"
+configure.cppflags-delete "-I${prefix}/include"
-destroot.destdir prefix=${destroot}${prefix} \
- docdir=${destroot}${prefix}/share/doc/${name}
-
platform darwin 8 {
depends_build-append port:gmake
build.cmd ${prefix}/bin/gmake
+ build.type gnu
}