diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2007-05-03 20:39:13 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2007-05-03 20:39:13 +0800 |
commit | 326183e626cf3988b68d0cbf7077122f64680bb7 (patch) | |
tree | 72234a45e9c3a1020baa61aae8676928f2b99c26 /lang/gnat-gcc42 | |
parent | 533dcdbd46936033d2c251cfde1df60d330257d1 (diff) | |
download | freebsd-ports-gnome-326183e626cf3988b68d0cbf7077122f64680bb7.tar.gz freebsd-ports-gnome-326183e626cf3988b68d0cbf7077122f64680bb7.tar.zst freebsd-ports-gnome-326183e626cf3988b68d0cbf7077122f64680bb7.zip |
o Finish transition a repocopy from gnat-gcc41 to gnat-gcc42:
The GNAT Ada compiler made from recent snapshot of GCC 4.2.
- gcc-4.2.0 version, snapshot 20070307 is used
PR: 112223
Submitted by: Karel Miklav <karel AT lovetemple.net>
Approved by: clsung (mentor)
Repocopy by: marcus
Diffstat (limited to 'lang/gnat-gcc42')
-rw-r--r-- | lang/gnat-gcc42/Makefile | 161 | ||||
-rw-r--r-- | lang/gnat-gcc42/distinfo | 29 | ||||
-rw-r--r-- | lang/gnat-gcc42/files/patch-gcc-ada-Makefile.in | 6 | ||||
-rw-r--r-- | lang/gnat-gcc42/pkg-descr | 4 |
4 files changed, 110 insertions, 90 deletions
diff --git a/lang/gnat-gcc42/Makefile b/lang/gnat-gcc42/Makefile index 892a96a2347f..60e7b4a09018 100644 --- a/lang/gnat-gcc42/Makefile +++ b/lang/gnat-gcc42/Makefile @@ -1,141 +1,150 @@ -# ex:ts=4 -# Ports collection makefile for: gnat-gcc -# Date created: 22 Jun 2006 -# Whom: Karel Miklav <karel@lovetemple.net> +# ex:ts=8 +# +# Ports collection makefile for: gnat-gcc +# Date created: 9 Jul 2006 +# Whom: Karel Miklav <karel@lovetemple.net> # # $FreeBSD$ # PORTNAME= gnat-gcc -PORTVERSION= 4.1.2 -PORTREVISION= 2 +PORTVERSION= 4.2.0 CATEGORIES= lang -MASTER_SITES= ${MASTER_SITE_GCC} +MASTER_SITES= ${MASTER_SITE_GCC} \ + http://lovetemple.net/data/:boot MASTER_SITE_SUBDIR= snapshots/${versionstring} DISTFILES= gcc-core-${versionstring}${EXTRACT_SUFX} \ - gcc-ada-${versionstring}${EXTRACT_SUFX} \ - gcc-testsuite-${versionstring}${EXTRACT_SUFX} + gcc-ada-${versionstring}${EXTRACT_SUFX} \ + gcc-testsuite-${versionstring}${EXTRACT_SUFX} \ + gnat-gcc41-boot-${boot_stamp}.tbz:boot MAINTAINER= karel@lovetemple.net COMMENT= The GNU Ada Compiler system -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 USE_BZIP2= yes USE_GMAKE= yes USE_ICONV= yes -USE_PERL5_BUILD= yes +USE_PERL5_BUILD= yes # Needed for man pages. USE_BISON= yes -CONFLICTS= gcc-4.1.* +CONFLICTS= gcc-4.2.* WRKSRC= ${WRKDIR}/build MAN1= cpp${gcc_suffix}.1 \ - gcc${gcc_suffix}.1 \ - gcov${gcc_suffix}.1 + gcc${gcc_suffix}.1 \ + gcov${gcc_suffix}.1 MAN7= ${fsf_mans:S/$/${fsf_suffix}.7/} -NOMANCOMPRESS= yes # 5-cur and releng4 problems? +NOMANCOMPRESS= yes # XXX 5-cur and releng4 problems? INFO= gcc${gcc_suffix}/cpp \ - gcc${gcc_suffix}/cppinternals \ - gcc${gcc_suffix}/gcc \ - gcc${gcc_suffix}/gccinstall \ - gcc${gcc_suffix}/gccint \ - gcc${gcc_suffix}/gnat-style \ - gcc${gcc_suffix}/gnat_rm \ - gcc${gcc_suffix}/gnat_ugn_unw + gcc${gcc_suffix}/cppinternals \ + gcc${gcc_suffix}/gcc \ + gcc${gcc_suffix}/gccinstall \ + gcc${gcc_suffix}/gccint \ + gcc${gcc_suffix}/gnat-style \ + gcc${gcc_suffix}/gnat_rm \ + gcc${gcc_suffix}/gnat_ugn_unw \ + gcc${gcc_suffix}/libgomp -LATEST_LINK= ${PORTNAME}${gcc_suffix} +LATEST_LINK= ${PORTNAME}${gcc_suffix} .include <bsd.port.pre.mk> -gcc_snapshot= 20061201 -versionstring= ${PORTVERSION:C/\.[0-9]*$//}-${gcc_snapshot} +gcc_snapshot= 20070307 +versionstring= ${PORTVERSION:C/\.[0-9]*$//}-${gcc_snapshot} srcdir= ${WRKDIR}/gcc-${versionstring} -gcc_suffix= 41 +gcc_suffix= 42 fsf_mans= fsf-funding gfdl gpl fsf_suffix= -${PORTNAME}${gcc_suffix} -targlib= ${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/${PORTVERSION} +targlib= ${PREFIX}/lib/gcc-${PORTVERSION} +gcc_link= ${PREFIX}/bin/gcc${gcc_suffix}/gcc +boot_stamp= ${ARCH}-freebsd-${OSREL:C/\.[0-9.]*//} -PATCH_WRKSRC= ${srcdir} +PATCH_WRKSRC= ${srcdir} -GNU_CONFIGURE= yes +GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../${srcdir:C/${WRKDIR}//}/configure -CONFIGURE_ARGS= --enable-languages="c,ada" \ - --disable-nls \ - --with-system-zlib \ - --with-libiconv-prefix=${LOCALBASE} \ - --program-suffix=${gcc_suffix} \ - --bindir=${PREFIX}/bin/gcc${gcc_suffix} \ - --libdir=${targlib} \ - --infodir=${PREFIX}/${INFO_PATH}/gcc${gcc_suffix} +CONFIGURE_ARGS= --enable-languages="c,ada" \ + --disable-nls \ + --with-system-zlib \ + --with-libiconv-prefix=${LOCALBASE} \ + --program-suffix=${gcc_suffix} \ + --bindir=${PREFIX}/bin/gcc${gcc_suffix} \ + --libdir=${targlib} \ + --infodir=${PREFIX}/${INFO_PATH}/gcc${gcc_suffix} ALL_TARGET= bootstrap-lean MAKE_ENV+= MAKEINFOFLAGS="--no-split" PTHREAD_LIBS=${PTHREAD_LIBS} PLIST_SUB= GCC_VER=${PORTVERSION} \ - GNU_HOST=${CONFIGURE_TARGET} \ - SUFFIX=${gcc_suffix} + GNU_HOST=${CONFIGURE_TARGET} \ + SUFFIX=${gcc_suffix} + +USE_LDCONFIG= ${targlib} -USE_LDCONFIG= ${targlib} +# Prepare environment for the bootstrap compiler. +build_env= CC=${WRKDIR}/boot/bin/gcc \ + PTHREAD_LIBS=${PTHREAD_LIBS} \ + PATH=${WRKDIR}/boot/bin:${WRKDIR}/boot/libexec:${PATH} -# We need an existing GNAT compiler to bootstrap this one. -BUILD_DEPENDS+= ${LOCALBASE}/bin/gcc34/gcc34:${PORTSDIR}/lang/gnat-gcc34 -CONFIGURE_ENV+= PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34 -MAKE_ENV+= PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34 +CONFIGURE_ENV+= ${build_env} +MAKE_ENV+= ${build_env} pre-everything:: - @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}" + @${ECHO_MSG} -n "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} " + @${ECHO_MSG} "${OSREL} target=${CONFIGURE_TARGET}" -# Append ' [FreeBSD]' to gcc version string. +# Append ' [FreeBSD]' to the gcc version string. post-patch: - ${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \ + @${REINPLACE_CMD} \ + -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \ ${srcdir}/gcc/version.c pre-configure: cd ${srcdir} ; contrib/gcc_update --touch - ${RM} -f ${srcdir}/gcc/*/*.info* - ${MKDIR} ${CONFIGURE_WRKSRC} + @${RM} -f ${srcdir}/gcc/*/*.info* + @${MKDIR} ${CONFIGURE_WRKSRC} post-build: - @${ECHO_MSG} "Consider running 'make check' before 'make install', especially" - @${ECHO_MSG} "if you have not performed this build on -STABLE or -CURRENT." - @${ECHO_MSG} "This assumes that you have the dejagnu port installed." + @${ECHO_MSG} -n "Consider running 'make check' before 'make install', " + @${ECHO_MSG} -n "especially if you have not performed this build on " + @${ECHO_MSG} -n "-STABLE or -CURRENT. This assumes that you have " + @${ECHO_MSG} "dejagnu and autogen ports installed." check: build - cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check + cd ${WRKSRC} && \ + export RUNTESTFLAGS='--target_board ''unix{-pthread}''' && \ + ${GMAKE} -sk ${check_target} post-install: - ${LN} -s ${PREFIX}/bin/gcc${gcc_suffix}/gcc${gcc_suffix} \ - ${PREFIX}/bin/gcc${gcc_suffix}/gcc - @# Man pages can only be generated if Perl >= 5.6 is installed; fake them otherwise. + # Create a gcc link. + ${RM} -f ${gcc_link} + ${LN} -s ${PREFIX}/bin/gcc${gcc_suffix}/gcc${gcc_suffix} ${gcc_link} + # This empty fortran directory is making trouble. + ${RM} -rf ${PREFIX}/lib/gcc-${PORTVERSION}/gcc/${CONFIGURE_TARGET}/${PORTVERSION}/finclude + # Man pages can only be generated if Perl >= 5.6 is installed; fake them otherwise. for mp in ${_MANPAGES}; do \ - ${TEST} -e $${mp} || ${TOUCH} ${TOUCH_FLAGS} $${mp}; \ + ${TEST} -e $${mp} || ${TOUCH} ${TOUCH_FLAGS} $${mp}; \ done - @# Version FSF funding and licensing manuals. + # Version FSF funding and licensing manuals. XXX Fix before it happens! for mp in ${fsf_mans}; do \ - ${MV} -f ${PREFIX}/man/man7/$${mp}.7 \ - ${PREFIX}/man/man7/$${mp}${fsf_suffix}.7; \ + ${MV} -f ${PREFIX}/man/man7/$${mp}.7 \ + ${PREFIX}/man/man7/$${mp}${fsf_suffix}.7; \ done - @# Save the runaway header. - ${MV} -f ${PREFIX}/include/mf-runtime.h \ - ${targlib}/gcc/${CONFIGURE_TARGET}/${PORTVERSION}/include - @# Remove libtool library files. - ${RM} -f ${targlib}/*.la - @# Prepare a temporary list of installed libraries and include files. + # Prepare a temporary list of installed libraries and include files. ${RM} -f ${WRKDIR}/PLIST.lib - for d in ${targlib:S/^${PREFIX}\///} ${targlib:S/^${PREFIX}\///:S/lib/libexec/}; do \ - cd ${PREFIX}; \ - if [ -d $${d} ]; then \ - ${FIND} $${d} -type f -o -type l >>${WRKDIR}/PLIST.lib; \ - ${FIND} $${d} -type d | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib; \ - fi; \ + for d in lib/gcc-${PORTVERSION} libexec/gcc/${CONFIGURE_TARGET}/${PORTVERSION}; do \ + cd ${PREFIX}; \ + if [ -d $${d} ]; then \ + ${FIND} $${d} -type f -o -type l >>${WRKDIR}/PLIST.lib; \ + ${FIND} $${d} -type d | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib; \ + fi; \ done - @# Following directories should be removed on deinstal if empty. Add them to the temporary list. - ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/gcc/${CONFIGURE_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib - ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/gcc 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib + # Following directories should be removed on deinstal if empty. Add them to the temporary list. ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc/${CONFIGURE_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib - @# Insert the temporary list in the packing list. + # Insert the temporary list in the packing list. cd ${WRKDIR}; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST} .include <bsd.port.post.mk> diff --git a/lang/gnat-gcc42/distinfo b/lang/gnat-gcc42/distinfo index 7f71caa1ce72..cee9342f1dd3 100644 --- a/lang/gnat-gcc42/distinfo +++ b/lang/gnat-gcc42/distinfo @@ -1,9 +1,20 @@ -MD5 (gcc-core-4.1-20061201.tar.bz2) = 2fc712263dfa9c503386692664212443 -SHA256 (gcc-core-4.1-20061201.tar.bz2) = 9dbc1debe8c27f2a107f237df4080fca0a28d27089794a3a174fbee260479c02 -SIZE (gcc-core-4.1-20061201.tar.bz2) = 14905058 -MD5 (gcc-ada-4.1-20061201.tar.bz2) = af671cac304a15be3164360acdf96566 -SHA256 (gcc-ada-4.1-20061201.tar.bz2) = 347b2246249a2adfc30cd24bef14578870ad03dd03e9c71e2ae3382626540657 -SIZE (gcc-ada-4.1-20061201.tar.bz2) = 4629808 -MD5 (gcc-testsuite-4.1-20061201.tar.bz2) = 89463a383ad7be1e38a830c10696953e -SHA256 (gcc-testsuite-4.1-20061201.tar.bz2) = ff84ba7b1a5f0b67c328c093fa172c55042e6847cd25cab3cb7d2433bd4e7bb7 -SIZE (gcc-testsuite-4.1-20061201.tar.bz2) = 3602869 +MD5 (gcc-core-4.2-20070307.tar.bz2) = a142c5c2b46d2d6cdff8a06df4a31c63 +SHA256 (gcc-core-4.2-20070307.tar.bz2) = 0fb6dca2ab41cc9b41984f3c6d81d6241e93126f9f96c26ce13f9db4cd423bc8 +SIZE (gcc-core-4.2-20070307.tar.bz2) = 15957365 +MD5 (gcc-ada-4.2-20070307.tar.bz2) = 0d543d218d6d6cf13d8dfb0ca125bb1d +SHA256 (gcc-ada-4.2-20070307.tar.bz2) = 19331f2614d251fe902f636385d86f4e4170ff8c72a1229c896d4e444ad5c67e +SIZE (gcc-ada-4.2-20070307.tar.bz2) = 4748161 +MD5 (gcc-testsuite-4.2-20070307.tar.bz2) = 11d7aca1995fe9e8c5277ed6a50483ec +SHA256 (gcc-testsuite-4.2-20070307.tar.bz2) = 8dee29d5143442582a37be771f07033f6a7448bb303f0c594ea8484a09f522ed +SIZE (gcc-testsuite-4.2-20070307.tar.bz2) = 3836944 +MD5 (gnat-gcc41-boot-i386-freebsd-4.tbz) = a9848cbeb6a0dca57cbe312e1546b79e +SIZE (gnat-gcc41-boot-i386-freebsd-4.tbz) = 11508394 +MD5 (gnat-gcc41-boot-i386-freebsd-5.tbz) = e439eaefcafdf6056896a16a89671a9e +SHA256 (gnat-gcc41-boot-i386-freebsd-5.tbz) = 16b00882f06b4c3813a379ad6c089c3c70c17cdcbb4d07ca33d390c906b5dd16 +SIZE (gnat-gcc41-boot-i386-freebsd-5.tbz) = 11503432 +MD5 (gnat-gcc41-boot-i386-freebsd-6.tbz) = 155c930f11f04f04c32f5f9371649352 +SHA256 (gnat-gcc41-boot-i386-freebsd-6.tbz) = 7b3eae94a9dadf901ed55bf660f24f34ecb19f2d48245fe352a6137366dc5fac +SIZE (gnat-gcc41-boot-i386-freebsd-6.tbz) = 11840609 +MD5 (gnat-gcc41-boot-i386-freebsd-7.tbz) = 3d35eb856a515fb2aeb665c8a81e7a95 +SHA256 (gnat-gcc41-boot-i386-freebsd-7.tbz) = e8bab1a79c372dda9abc40129c6ee8dfd72503430e865bec8396d491e78a292f +SIZE (gnat-gcc41-boot-i386-freebsd-7.tbz) = 11606581 diff --git a/lang/gnat-gcc42/files/patch-gcc-ada-Makefile.in b/lang/gnat-gcc42/files/patch-gcc-ada-Makefile.in index c99640561416..390980406659 100644 --- a/lang/gnat-gcc42/files/patch-gcc-ada-Makefile.in +++ b/lang/gnat-gcc42/files/patch-gcc-ada-Makefile.in @@ -1,6 +1,6 @@ ---- gcc/ada/Makefile.in.orig Fri Sep 8 00:21:56 2006 -+++ gcc/ada/Makefile.in Fri Sep 8 00:27:47 2006 -@@ -742,7 +742,7 @@ +--- gcc/ada/Makefile.in.orig Sun Oct 22 00:57:17 2006 ++++ gcc/ada/Makefile.in Sun Oct 22 00:57:43 2006 +@@ -842,7 +842,7 @@ mlib-tgt.adb<mlib-tgt-linux.adb GNATLIB_SHARED = gnatlib-shared-dual diff --git a/lang/gnat-gcc42/pkg-descr b/lang/gnat-gcc42/pkg-descr index 450edb68cc63..2820e6ed1c69 100644 --- a/lang/gnat-gcc42/pkg-descr +++ b/lang/gnat-gcc42/pkg-descr @@ -1,6 +1,6 @@ -The GNU Ada compiler system built from GCC 4.1.2. +The GNU Ada compiler system built from GCC 4.2.0. -Please add ${PREFIX}/bin/gcc41 to your PATH variable +Please add ${PREFIX}/bin/gcc42 to your PATH variable before using this port. WWW: http://gcc.gnu.org/ |