1998-12-13 04:40:49 -05:00
|
|
|
# ex:ts=8
|
2000-02-12 22:25:05 -05:00
|
|
|
# Ports collection makefile for: pgcc
|
|
|
|
# Date created: 10 Dec 1998
|
|
|
|
# Whom: David O'Brien <obrien@NUXI.com>
|
1998-12-13 04:40:49 -05:00
|
|
|
#
|
1999-08-25 02:35:40 -04:00
|
|
|
# $FreeBSD$
|
1998-12-13 04:40:49 -05:00
|
|
|
#
|
|
|
|
|
2000-04-12 02:21:15 -04:00
|
|
|
PORTNAME= pgcc
|
|
|
|
PORTVERSION= 2.95.1
|
1998-12-13 04:40:49 -05:00
|
|
|
CATEGORIES= lang
|
1999-09-08 06:41:57 -04:00
|
|
|
MASTER_SITES= ftp://go.cygnus.com/pub/sourceware.cygnus.com/pub/egcs/releases/${DISTNAME}/ \
|
|
|
|
ftp://egcs.cygnus.com/pub/egcs/releases/${DISTNAME}/ \
|
|
|
|
${MASTER_SITE_GNU} \
|
|
|
|
ftp://ftp.nluug.nl/pub/languages/egcs/releases/${DISTNAME}/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/egcs/releases/${DISTNAME}/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/${DISTNAME}/
|
|
|
|
MASTER_SITE_SUBDIR= gcc
|
2000-04-16 00:14:12 -04:00
|
|
|
DISTNAME= gcc-${PORTVERSION}
|
1999-09-08 06:41:57 -04:00
|
|
|
DISTFILES= gcc-core-${DISTNAME:S/gcc-//g}${EXTRACT_SUFX} \
|
|
|
|
gcc-g++-${DISTNAME:S/gcc-//g}${EXTRACT_SUFX} \
|
|
|
|
gcc-g77-${DISTNAME:S/gcc-//g}${EXTRACT_SUFX} \
|
|
|
|
gcc-java-${DISTNAME:S/gcc-//g}${EXTRACT_SUFX} \
|
|
|
|
gcc-objc-${DISTNAME:S/gcc-//g}${EXTRACT_SUFX}
|
1998-12-13 04:40:49 -05:00
|
|
|
|
|
|
|
PATCH_SITES= http://www.gcc.ml.org/data/source/ \
|
|
|
|
ftp://ftp.goof.com/pub/pcg/source/ \
|
|
|
|
ftp://ftp.hitachi-sk.co.jp/pub/pentium-gcc/source/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/languages/pgcc/source/
|
1999-09-08 06:41:57 -04:00
|
|
|
PATCHFILES= gcc-2.95.1-pgcc-2.95.1.diff.gz
|
1999-09-05 18:15:15 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1998-12-13 04:40:49 -05:00
|
|
|
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
|
1999-02-03 06:12:01 -05:00
|
|
|
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
|
|
|
|
1999-09-08 06:41:57 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1998-12-13 04:40:49 -05:00
|
|
|
|
1999-09-05 18:15:15 -04:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
1999-09-08 06:41:57 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
GCC_REV= p${DISTNAME}
|
|
|
|
LIBSTDCPP_REV= 4
|
1998-12-13 04:40:49 -05:00
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
1999-05-24 13:13:07 -04:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
|
1998-12-13 04:40:49 -05:00
|
|
|
.else
|
1999-05-24 13:13:07 -04:00
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
|
1998-12-13 04:40:49 -05:00
|
|
|
.endif
|
|
|
|
|
1999-09-08 06:41:57 -04:00
|
|
|
PLIST_SUB= EGCS_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET}
|
1998-12-13 04:40:49 -05:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
1999-03-08 02:28:36 -05:00
|
|
|
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld \
|
1999-09-08 06:41:57 -04:00
|
|
|
--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/include/g++
|
1999-05-24 13:13:07 -04:00
|
|
|
.if defined(WANT_SHAREDLIBS)
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
.endif
|
1999-09-08 06:41:57 -04:00
|
|
|
.if defined(WANT_THREADS)
|
|
|
|
# ?is this an ObjC only thing?
|
|
|
|
CONFIGURE_ARGS+= --enable-threads=posix
|
|
|
|
.endif
|
1998-12-13 04:40:49 -05:00
|
|
|
ALL_TARGET= bootstrap
|
1999-09-08 06:41:57 -04:00
|
|
|
MAN1= cccp.1 pg++.1 pg77.1 pgcc.1
|
1998-12-13 04:40:49 -05:00
|
|
|
|
1999-05-24 13:13:07 -04:00
|
|
|
pre-patch:
|
|
|
|
@${MV} ${WRKSRC}/gcc/config/i386/freebsd.h ${WRKSRC}/gcc/config/i386/freebsd-aout.h
|
|
|
|
@${MV} ${WRKSRC}/gcc/config/i386/freebsd-elf.h ${WRKSRC}/gcc/config/i386/freebsd.h
|
|
|
|
|
1998-12-13 04:40:49 -05:00
|
|
|
pre-configure:
|
1999-05-24 13:13:07 -04:00
|
|
|
@(MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
|
1999-09-08 06:41:57 -04:00
|
|
|
${SED} -e "s:__FreeBSD__[0-9=]*:__FreeBSD__=$${MAJ}:" ${FILESDIR}/freebsd.h \
|
1999-05-24 13:13:07 -04:00
|
|
|
>${WRKSRC}/gcc/config/freebsd.h )
|
|
|
|
.if ${PORTOBJFORMAT} == "elf" && ${MACHINE_ARCH} == "i386"
|
|
|
|
@${SED} -e 's/^@comment ELF-only://' ${PKGDIR}/PLIST >${PLIST}
|
|
|
|
.endif
|
1998-12-13 04:40:49 -05:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/info
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${RM} -f ${PREFIX}/bin/c++
|
|
|
|
@${MV} -f ${PREFIX}/bin/c++filt ${PREFIX}/bin/g++filt
|
|
|
|
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ \
|
1999-05-24 13:13:07 -04:00
|
|
|
${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \
|
|
|
|
${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
|
|
|
|
${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
|
1999-09-08 06:41:57 -04:00
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1 \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1obj \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1plus \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cpp \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/collect2 \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/f771 ; \
|
1999-05-24 13:13:07 -04:00
|
|
|
do \
|
|
|
|
strip $$prog ; \
|
|
|
|
done)
|
1999-09-10 13:44:53 -04:00
|
|
|
${MV} ${PREFIX}/bin/${CONFIGURE_TARGET}-gcc ${PREFIX}/bin/${CONFIGURE_TARGET}-pgcc
|
1999-05-24 13:13:07 -04:00
|
|
|
${MV} ${PREFIX}/bin/gcc ${PREFIX}/bin/pgcc
|
|
|
|
${MV} ${PREFIX}/bin/g++ ${PREFIX}/bin/pg++
|
|
|
|
${MV} ${PREFIX}/bin/g77 ${PREFIX}/bin/pg77
|
|
|
|
${MV} ${PREFIX}/bin/gcov ${PREFIX}/bin/pgcov
|
|
|
|
${MV} ${PREFIX}/bin/g++filt ${PREFIX}/bin/pg++filt
|
1999-09-08 06:41:57 -04:00
|
|
|
${MV} ${PREFIX}/bin/gcj ${PREFIX}/bin/pgcj
|
|
|
|
${MV} ${PREFIX}/bin/gcjh ${PREFIX}/bin/pgcjh
|
|
|
|
${MV} ${PREFIX}/bin/jv-scan ${PREFIX}/bin/pjv-scan
|
|
|
|
${MV} ${PREFIX}/bin/jcf-dump ${PREFIX}/bin/pjcf-dump
|
|
|
|
${RM} -f ${PREFIX}/bin/cpp
|
1998-12-13 04:40:49 -05:00
|
|
|
${MV} ${PREFIX}/lib/libiberty.a \
|
1999-09-08 06:41:57 -04:00
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
|
|
|
|
${MV} -f ${PREFIX}/lib/libstdc++.a.${LIBSTDCPP_REV} \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/libstdc++.a
|
|
|
|
${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/pgcc.1
|
|
|
|
${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/pg++.1
|
|
|
|
${MV} ${PREFIX}/man/man1/g77.1 ${PREFIX}/man/man1/pg77.1
|
1999-05-24 13:13:07 -04:00
|
|
|
.if defined(WANT_SHAREDLIBS)
|
|
|
|
${MV} -f ${PREFIX}/lib/libstdc++.so* \
|
1999-09-08 06:41:57 -04:00
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
|
1999-05-24 13:13:07 -04:00
|
|
|
.endif
|
1998-12-13 04:40:49 -05:00
|
|
|
.for info in cpp g77 gcc
|
|
|
|
install-info ${PREFIX}/info/${info}.info ${PREFIX}/info/dir
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|