diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-11-05 17:15:54 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-11-05 17:15:54 +0000 |
commit | f53d9b47168b6e9c7c63433643f331fdc52deea6 (patch) | |
tree | f553bf04afb0c67f4c06d1a7599be6163a6943ba /devel | |
parent | 3578dbe0cb8822504f39fac301c52f19adc79aff (diff) | |
download | FreeBSD-ports-f53d9b47168b6e9c7c63433643f331fdc52deea6.zip FreeBSD-ports-f53d9b47168b6e9c7c63433643f331fdc52deea6.tar.gz |
Add mipsel-linux-gcc 2.97, gcc-2.97 for mipsel-linux cross-development with
SNOW ABI.
PR: 31410
Submitted by: Lev Serebryakov <lev@serebryakov.spb.ru>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/Makefile | 56 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/distinfo | 1 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h | 22 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/pkg-comment | 1 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/pkg-descr | 13 | ||||
-rw-r--r-- | devel/mipsel-linux-gcc/pkg-plist | 35 |
7 files changed, 129 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 7800ed5..4413364 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -277,6 +277,7 @@ SUBDIR += mips-rtems-gcj SUBDIR += mips-rtems-objc SUBDIR += mipsel-linux-binutils + SUBDIR += mipsel-linux-gcc SUBDIR += mipsel-linux-kernel-headers SUBDIR += mkcmd SUBDIR += mkmf diff --git a/devel/mipsel-linux-gcc/Makefile b/devel/mipsel-linux-gcc/Makefile new file mode 100644 index 0000000..81b4ee2 --- /dev/null +++ b/devel/mipsel-linux-gcc/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: mipsel-linux-gcc +# Date created: 20 October 2001 +# Whom: Lev Serebryakov <lev@serebryakov.spb.ru> +# +# $FreeBSD$ +# + +PORTNAME= gcc +PORTVERSION= 2.97 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.agendacomputing.com/pub/dev/snow/snap-02212000/src/ +PKGNAMEPREFIX= mipsel-linux- + +MAINTAINER= lev@serebryakov.spb.ru + +BUILD_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \ + ${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \ + ${LOCALBASE}/${PKGNAMEPREFIX:S/-$//}/include/stdio.h:${PORTSDIR}/devel/agenda-headers \ + ${LOCALBASE}/${PKGNAMEPREFIX:S/-$//}/lib/crti.o:${PORTSDIR}/devel/agenda-static-libs \ + ${LOCALBASE}/${PKGNAMEPREFIX:S/-$//}/lib/libc.a:${PORTSDIR}/devel/agenda-static-libs +RUN_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \ + ${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils + +WRKSRC= ${WRKDIR}/gcc + +CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \ + --enable-languages=c,c++ \ + --enable-soft-float \ + --enable-multilib \ + --disable-shared + +MAKE_ENV= PATH=${PREFIX}/bin:${PATH} +USE_GMAKE= yes +USE_LIBTOOL= yes +LIBTOOLFILES= configure gcc/configure +MAN1= ${PKGNAMEPREFIX}g++.1 ${PKGNAMEPREFIX}gcc.1 + +GCC_REV= 2.97 + +PLIST_SUB+= PORTVERSION=${PORTVERSION} GCC_TARG=${PKGNAMEPREFIX:S/-$//} \ + GCC_REV=${GCC_REV} + +BINARIES = gcc g++ c++ cpp + +post-configure: + @${PERL} -pi.bak -e 's,^(TARGET_CONFIGDIRS\s*=).+$$,\1,' ${WRKSRC}/Makefile + @${PERL} -pi.bak -e 's,^(install-info:),\1\ndonot-\1,' ${WRKSRC}/gcc/Makefile + +post-install: +.for F in ${BINARIES} + @strip ${PREFIX}/bin/${PKGNAMEPREFIX}$F + @${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}$F \ + ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F +.endfor + +.include <bsd.port.mk> diff --git a/devel/mipsel-linux-gcc/distinfo b/devel/mipsel-linux-gcc/distinfo new file mode 100644 index 0000000..06aa1dc --- /dev/null +++ b/devel/mipsel-linux-gcc/distinfo @@ -0,0 +1 @@ +MD5 (gcc-2.97.tar.gz) = cb7f3ff569c6c270c970d606d51ed27c diff --git a/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h b/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h new file mode 100644 index 0000000..69f8109 --- /dev/null +++ b/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h @@ -0,0 +1,22 @@ +*** gcc/config/fp-bit.h.orig Thu Oct 18 22:57:05 2001 +--- gcc/config/fp-bit.h Thu Oct 18 22:58:46 2001 +*************** +*** 164,169 **** +--- 164,170 ---- + # define divide fpdiv + # define compare fpcmp + # define si_to_float sitofp ++ # define usi_to_float uitofp + # define float_to_si fptosi + # define float_to_usi fptoui + # define negate __negsf2 +*************** +*** 176,181 **** +--- 177,183 ---- + # define divide dpdiv + # define compare dpcmp + # define si_to_float litodp ++ # define usi_to_float ultodp + # define float_to_si dptoli + # define float_to_usi dptoul + # define negate __negdf2 diff --git a/devel/mipsel-linux-gcc/pkg-comment b/devel/mipsel-linux-gcc/pkg-comment new file mode 100644 index 0000000..fd8c23e --- /dev/null +++ b/devel/mipsel-linux-gcc/pkg-comment @@ -0,0 +1 @@ +Gcc-2.97 for mipsel-linux cross-development with SNOW ABI diff --git a/devel/mipsel-linux-gcc/pkg-descr b/devel/mipsel-linux-gcc/pkg-descr new file mode 100644 index 0000000..4162c7e --- /dev/null +++ b/devel/mipsel-linux-gcc/pkg-descr @@ -0,0 +1,13 @@ + + It is gcc (c and c++ compiler suite) for MIPS Little Endian Linux + (mipsel-linux) target with SNOW ABI. + This target is, for example, VR Linux on NEC's VR-based PDAs (Agenda VR3 + and others). + This port doesn't contains any libraries or headers. To build it you must + have headers for your target in ${PREFIX}/mipsel-linux/include directory. + Headers and libraries for Agenda VR6 PDA could be installed from + devel/agenda-headers and devel/agenda-libs ports. + +http://dev.agendacomputing.org/ -- Agenda VR3 PDA +http://gcc.gnu.org/ -- Home page of GNU gcc +WWW: http://www.vr-linux.org/ diff --git a/devel/mipsel-linux-gcc/pkg-plist b/devel/mipsel-linux-gcc/pkg-plist new file mode 100644 index 0000000..296cc5d --- /dev/null +++ b/devel/mipsel-linux-gcc/pkg-plist @@ -0,0 +1,35 @@ +%%GCC_TARG%%/bin/c++ +%%GCC_TARG%%/bin/cpp +%%GCC_TARG%%/bin/g++ +%%GCC_TARG%%/bin/gcc +bin/%%GCC_TARG%%-c++ +bin/%%GCC_TARG%%-cpp +bin/%%GCC_TARG%%-g++ +bin/%%GCC_TARG%%-gcc +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/cc1 +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/cc1plus +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/collect2 +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/cpp0 +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/crtbegin.o +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/crtbeginS.o +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/crtend.o +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/crtendS.o +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/README +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/float.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/iso646.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/limits.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/proto.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/stdarg.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/stdbool.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/stddef.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/syslimits.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include/varargs.h +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/libgcc.a +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/single/libgcc.a +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/specs +lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/tradcpp0 +@dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/single +@dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include +@dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%% +@dirrm lib/gcc-lib/%%GCC_TARG%% +@dirrm lib/gcc-lib |