summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-02-20 23:39:18 +0000
committerjlam <jlam@pkgsrc.org>2001-02-20 23:39:18 +0000
commita7ec5d1ddeb80c08d1c804535c7027e1d6387693 (patch)
tree3821936fc1a2dc33eedb8102d2df7214c3beec25 /lang
parentb379b4a4ca94cfc06cf66694851f593de38263d1 (diff)
downloadpkgsrc-a7ec5d1ddeb80c08d1c804535c7027e1d6387693.tar.gz
Pentium GNU Compiler Collection.
Provided in pkg/11483 by Jared McNeill <jmcneill@invisible.yi.org> with several modifications by me to synchronize with lang/gcc.
Diffstat (limited to 'lang')
-rw-r--r--lang/pgcc/Makefile96
-rw-r--r--lang/pgcc/files/md54
-rw-r--r--lang/pgcc/pkg/DESCR4
3 files changed, 104 insertions, 0 deletions
diff --git a/lang/pgcc/Makefile b/lang/pgcc/Makefile
new file mode 100644
index 00000000000..a121685b57e
--- /dev/null
+++ b/lang/pgcc/Makefile
@@ -0,0 +1,96 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/02/20 23:39:18 jlam Exp $
+
+DISTNAME= gcc-2.95.2
+PKGNAME= pgcc-2.95.2.1
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GNU:=gcc/}
+
+PATCH_SITES= http://goof.com/pcg/data/source/
+PATCHFILES= gcc-${PGCC_VERSION}-${PKGNAME}.diff.gz
+PATCH_DIST_ARGS= -d ${SRCDIR} -s -p1 -E
+
+MAINTAINER= jmcneill@invisible.yi.org
+HOMEPAGE= http://goof.com/pcg/
+COMMENT= Pentium GNU Compiler Collection
+
+BUILD_DEPENDS+= ${LOCALBASE}/bin/bison:../../devel/bison
+
+# 'Pentium GCC' is optimized for the Intel Pentium processor, but should
+# work on all platforms on which GCC works.
+ONLY_FOR_PLATFORM= NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k \
+ SunOS-*-*
+
+.include "../../mk/bsd.prefs.mk"
+
+FILESDIR= ${PKGSRCDIR}/lang/gcc/files
+PATCHDIR= ${PKGSRCDIR}/lang/gcc/patches
+PKGDIR= ${PKGSRCDIR}/lang/gcc/pkg
+
+MD5_FILE= ${.CURDIR}/files/md5
+DESCR_SRC= ${.CURDIR}/pkg/DESCR
+
+.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF")
+MACHINE_GCC_PLATFORM= ${MACHINE_GNU_PLATFORM}elf
+.else
+MACHINE_GCC_PLATFORM= ${MACHINE_GNU_PLATFORM}
+.endif
+
+USE_GMAKE= YES
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS= --host=${MACHINE_GCC_PLATFORM} \
+ --prefix=${GCC_PREFIX}
+CONFIGURE_SCRIPT= ${SRCDIR}/configure
+
+# For pgcc, GCC_VERSION is actually the name of a subdirectory in the gcc
+# library tree. We keep the odd name to keep this Makefile in-sync with
+# lang/gcc/Makefile. PGCC_VERSION is set to the actual version of pgcc.
+#
+PGCC_VERSION= ${PKGNAME:C/.*-//}
+GCC_VERSION= ${PKGNAME}
+MESSAGE_SUBST+= MAKE=${MAKE}
+PLIST_SUBST+= GCC_VERSION=${GCC_VERSION} \
+ MACHINE_GCC_PLATFORM=${MACHINE_GCC_PLATFORM}
+SRCDIR= ${WRKDIR}/${DISTNAME}
+WRKSRC= ${WRKDIR}/objdir
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} != SunOS)
+CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld
+GCC_PREFIX= ${LOCALBASE}/${PKGNAME}
+.else
+.if (${CC} != gcc)
+ALL_TARGET= bootstrap
+.endif
+GCC_PREFIX= ${LOCALBASE}
+PLIST_SRC= ${PKGDIR}/PLIST.SunOS
+MESSAGE= ${PKGDIR}/MESSAGE.SunOS
+.endif
+
+post-extract:
+ ${MKDIR} ${WRKSRC}
+
+post-patch:
+ ${ECHO} "bogus" >${WRKSRC}/../${DISTNAME}/gcc/cstamp-h.in
+
+.if (${OPSYS} != SunOS)
+post-build:
+ for FILE in ${FILESDIR}/gcc.mk; do \
+ ${SED} -e 's#@@MAKE@@#${MAKE}#g' \
+ -e 's#@@PKGNAME@@#${PKGNAME}#g' \
+ -e 's#@@PREFIX@@#${PREFIX}#g' \
+ <$$FILE >${WRKDIR}/`basename $$FILE`; \
+ done
+.endif
+
+.if (${OPSYS} != SunOS)
+post-install:
+ ${LN} -s gcc ${PREFIX}/${PKGNAME}/bin/cc
+ ${RM} -f ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h
+ ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/etc/${PKGNAME}.mk
+.endif
+
+.include "../../mk/bsd.pkg.mk"
+
+# Make bootstrap with compiler != gcc possible.
+LDFLAGS= ${STRIPFLAG}
diff --git a/lang/pgcc/files/md5 b/lang/pgcc/files/md5
new file mode 100644
index 00000000000..29ec60183c1
--- /dev/null
+++ b/lang/pgcc/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2001/02/20 23:39:18 jlam Exp $
+
+MD5 (gcc-2.95.2.tar.gz) = 0e36957d734286e242e9697fd2806c4f
+MD5 (gcc-2.95.2.1-pgcc-2.95.2.1.diff.gz) = e25608592a02aae0a12941044e7b212e
diff --git a/lang/pgcc/pkg/DESCR b/lang/pgcc/pkg/DESCR
new file mode 100644
index 00000000000..bfaf608c038
--- /dev/null
+++ b/lang/pgcc/pkg/DESCR
@@ -0,0 +1,4 @@
+PGCC stands for Pentium GCC. The PGCC is a version of the GNU C compiler
+(GCC) that provides the feature-set in similarly numbered versions of GCC,
+and in addition, provides special optimizations for the Intel Pentium and
+Pentium-compatible processors.