diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2002-10-05 21:03:51 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-10-05 21:03:51 +0000 |
commit | 2f1bac96e9c2d2a6511652e38603f0f38ac5e6f0 (patch) | |
tree | d0b7cc1cb97f0e2b08754a451c6999dfbe92649b /lang/gcc32 | |
parent | 8193f9108d136a7aeed5d51f33015db974330e54 (diff) | |
download | ports-2f1bac96e9c2d2a6511652e38603f0f38ac5e6f0.tar.gz ports-2f1bac96e9c2d2a6511652e38603f0f38ac5e6f0.zip |
Notes
Diffstat (limited to 'lang/gcc32')
-rw-r--r-- | lang/gcc32/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lang/gcc32/Makefile b/lang/gcc32/Makefile index dba052d210f5..77a70b8bc935 100644 --- a/lang/gcc32/Makefile +++ b/lang/gcc32/Makefile @@ -8,6 +8,7 @@ SNAPDATE= 2002-09-02 SNAPVER= ${SNAPDATE:S/-//g} +#CVS_DATE= ${SNAPDATE} 23:46:00 EDT PORTNAME= gcc PORTVERSION= 3.2 @@ -16,12 +17,14 @@ CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_SOURCEWARE} \ ftp://gcc.gnu.org/pub/%SUBDIR%/ MASTER_SITE_SUBDIR= gcc/snapshots/${SNAPDATE} +.if !defined(CVS_DATE) DISTFILES= \ gcc-core-${SNAPVER}${EXTRACT_SUFX} \ gcc-g++-${SNAPVER}${EXTRACT_SUFX} \ gcc-g77-${SNAPVER}${EXTRACT_SUFX} \ gcc-java-${SNAPVER}${EXTRACT_SUFX} \ gcc-objc-${SNAPVER}${EXTRACT_SUFX} +.endif PATCH_SITES= ftp://relay.nuxi.com/obrien/ PATCHFILES= port_gcc32_${SNAPDATE}.diff @@ -83,6 +86,37 @@ MAN7= fsf-funding.7 gfdl.7 gpl.7 pre-fetch: @${ECHO} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${CONFIGURE_TARGET}" +.if defined(CVS_DATE) +DIST_SUBDIR= ${PKGNAME} +CVS_CMD?= cvs -z3 -qR +CVSROOT= :pserver:anoncvs@subversions.gnu.org:/cvsroot/gcc +STAMPFILE= ${DISTDIR}/${DIST_SUBDIR}/.timestamp +_CKSUMFILES= ${DIST_SUBDIR}/${PATCHFILES} +do-fetch: + @if [ ! -e ${STAMPFILE} ] || \ + [ "X${CVS_DATE}" != "X$$(${CAT} ${STAMPFILE})" ]; then \ + ${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \ + cd ${DISTDIR}/${DIST_SUBDIR} ; \ + unset CVS_RSH CVS_SERVER || ${TRUE} ; \ + ${ECHO_MSG} ">> Attempting to CVS checkout from ${CVSROOT}." ;\ + if ${CVS_CMD} -d ${CVSROOT} co -r gcc-3_2-branch gcc ; \ + then \ + ( ${ECHO} -n "${CVS_DATE}" > ${STAMPFILE} ) ; \ + exit ; \ + fi ; \ + ${ECHO_MSG} ">> Couldn't CVS checkout ${PKGNAME}." ; \ + ${ECHO_MSG} ">> Please try again later."; \ + exit 1; \ + fi + @test -e ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES} \ + || fetch -o ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES} \ + ${PATCH_SITES}${PATCHFILES} + +do-extract: + ${MKDIR} ${SRCDIR} + cd ${DISTDIR}/${DIST_SUBDIR}/gcc ; pax -pe -rwt . ${SRCDIR} +.endif # CVS_DATE + pre-configure: @# Keep from running `autoconf' and `autoheader' since we modified @# configure.in by patching it. |