Subject: Re: c++ h8300-hms cross-compiler
To: Borghart Steffen <borghart@gmx.de>
From: Stephan Thesing <thesing@cs.uni-sb.de>
List: tech-pkg
Date: 04/07/2006 14:32:47
Hello,

the patch following below (relative to pkgsrc/cross/h8300-hms-gcc should add 
the C++ compiler to the package.

(Compiled, but not tried out to run it...)

Hope that helps.

Best regards....
 	Stephan
---------------------------------------------
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/cross/h8300-hms-gcc/Makefile,v
retrieving revision 1.19
diff -b -u -r1.19 Makefile
--- Makefile	20 Mar 2006 18:15:37 -0000	1.19
+++ Makefile	7 Apr 2006 12:17:04 -0000
@@ -6,7 +6,9 @@
  CATEGORIES=		cross
  MASTER_SITES=		ftp://ftp.gnu.org/gnu/gcc/gcc-3.1/ \
  			ftp://sources.redhat.com/pub/newlib/
-DISTFILES=		${DISTNAME}${EXTRACT_SUFX} newlib-1.10.0.tar.gz
+DISTFILES=		${DISTNAME}${EXTRACT_SUFX} \
+                        ${DISTNAME:S/-core-/-g++-/}${EXTRACT_SUFX} \
+                        newlib-1.10.0.tar.gz

  PATCH_SITES=		${MASTER_SITE_SOURCEFORGE:=h8300-hms/}
  PATCHFILES=		h8300-hms-gcc-3.1-1.patch
@@ -26,7 +28,7 @@
  CONFIGURE_ARGS+=	--prefix=${H8300_PREFIX:Q}
  CONFIGURE_ARGS+=	--infodir=${H8300_PREFIX}/gcc
  CONFIGURE_ARGS+=	--target=h8300-hms
-CONFIGURE_ARGS+=	--enable-languages=c
+CONFIGURE_ARGS+=	--enable-languages=c,c++
  CONFIGURE_ARGS+=	--with-newlib
  CONFIGURE_SCRIPT=	${SRCDIR}/configure
  SRCDIR=			${WRKDIR}/gcc-3.1
@@ -40,7 +42,7 @@
  	${MKDIR} ${WRKSRC}

  post-install:
-	for f in h8300-hms-cpp    h8300-hms-gcc \
+	for f in h8300-hms-c++ h8300-hms-cpp  h8300-hms-g++  h8300-hms-gcc \
  		 h8300-hms-gccbug h8300-hms-gcov ; do \
  		${LN} -s ${H8300_PREFIX}/bin/$$f ${PREFIX}/bin/$$f ; \
  	done
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/cross/h8300-hms-gcc/PLIST,v
retrieving revision 1.4
diff -b -u -r1.4 PLIST
--- PLIST	20 Mar 2006 18:15:37 -0000	1.4
+++ PLIST	7 Apr 2006 12:27:24 -0000
@@ -1,9 +1,13 @@
  @comment $NetBSD: PLIST,v 1.4 2006/03/20 18:15:37 jlam Exp $
+bin/h8300-hms-c++
  bin/h8300-hms-cpp
+bin/h8300-hms-g++
  bin/h8300-hms-gcc
  bin/h8300-hms-gccbug
  bin/h8300-hms-gcov
+libexec/cross-h8300-hms/bin/h8300-hms-c++
  libexec/cross-h8300-hms/bin/h8300-hms-cpp
+libexec/cross-h8300-hms/bin/h8300-hms-g++
  libexec/cross-h8300-hms/bin/h8300-hms-gcc
  libexec/cross-h8300-hms/bin/h8300-hms-gccbug
  libexec/cross-h8300-hms/bin/h8300-hms-gcov
@@ -98,6 +102,7 @@
  libexec/cross-h8300-hms/h8300-hms/lib/libiberty.a
  libexec/cross-h8300-hms/h8300-hms/lib/libm.a
  libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cc1
+libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cc1plus
  libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/collect2
  libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cpp0
  libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/h8300h/int32/libgcc.a
@@ -120,6 +125,7 @@
  libexec/cross-h8300-hms/lib/libiberty.a
  libexec/cross-h8300-hms/man/man1/cpp.1
  libexec/cross-h8300-hms/man/man1/gcov.1
+libexec/cross-h8300-hms/man/man1/h8300-hms-g++.1
  libexec/cross-h8300-hms/man/man1/h8300-hms-gcc.1
  libexec/cross-h8300-hms/man/man7/fsf-funding.7
  libexec/cross-h8300-hms/man/man7/gfdl.7
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/cross/h8300-hms-gcc/distinfo,v
retrieving revision 1.2
diff -b -u -r1.2 distinfo
--- distinfo	24 Feb 2005 10:16:53 -0000	1.2
+++ distinfo	7 Apr 2006 12:17:38 -0000
@@ -3,6 +3,9 @@
  SHA1 (gcc-core-3.1.tar.gz) = e93048803611b5c1e0dd745d81b43d6e34bca026
  RMD160 (gcc-core-3.1.tar.gz) = d6fe75142280778c952af0717acfa4a2cc500623
  Size (gcc-core-3.1.tar.gz) = 13381094 bytes
+SHA1 (gcc-g++-3.1.tar.gz) = 294cae404a8f66640c04668502778c3e321c9e82
+RMD160 (gcc-g++-3.1.tar.gz) = b4b45f76797bfa41544866c24dcd39dc84074193
+Size (gcc-g++-3.1.tar.gz) = 2461395 bytes
  SHA1 (newlib-1.10.0.tar.gz) = ca0747e49623cce37967243928d883247a389207
  RMD160 (newlib-1.10.0.tar.gz) = c5cd6ae5d8912848a6c3985fd74a78f4826c92a6
  Size (newlib-1.10.0.tar.gz) = 3647395 bytes
-- 
=  Tel.: +49-681-302-5571      = Universitaet des Saarlandes =
=  Fax.: +49-681-302-3065      = Postfach 15 11 50           =
=  Compiler Research Group     = 66041 Saarbruecken          =
=  FR 6.2 - Informatik         = GERMANY                     =