aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mipsel-linux-gcc/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-11-06 01:15:54 +0800
committersobomax <sobomax@FreeBSD.org>2001-11-06 01:15:54 +0800
commitf53d9b47168b6e9c7c63433643f331fdc52deea6 (patch)
treef553bf04afb0c67f4c06d1a7599be6163a6943ba /devel/mipsel-linux-gcc/Makefile
parent3578dbe0cb8822504f39fac301c52f19adc79aff (diff)
downloadfreebsd-ports-gnome-f53d9b47168b6e9c7c63433643f331fdc52deea6.tar.gz
freebsd-ports-gnome-f53d9b47168b6e9c7c63433643f331fdc52deea6.tar.zst
freebsd-ports-gnome-f53d9b47168b6e9c7c63433643f331fdc52deea6.zip
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/mipsel-linux-gcc/Makefile')
-rw-r--r--devel/mipsel-linux-gcc/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/devel/mipsel-linux-gcc/Makefile b/devel/mipsel-linux-gcc/Makefile
new file mode 100644
index 000000000000..81b4ee207811
--- /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>