Date: Mon, 10 Jul 2006 20:12:20 +0200 (CEST) From: Karel Miklav <karel@lovetemple.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/100038: New port: lang/gnat-gcc41 GNU Ada compiler Message-ID: <200607101812.k6AICKYx001180@tp.unitedpeople.info> Resent-Message-ID: <200607101820.k6AIKDCB087153@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100038 >Category: ports >Synopsis: New port: lang/gnat-gcc41 GNU Ada compiler >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 10 18:20:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Karel Miklav >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD tp.unitedpeople.info 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Jun 16 19:08:52 CEST 2006 lino@tp.unitedpeople.info:/usr/obj/usr/src/sys/TPX40 i386 >Description: GCC version of the GNAT Ada compiler >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gnat-gcc41 # gnat-gcc41/files # gnat-gcc41/files/patch-gengtype-yacc.y # gnat-gcc41/Makefile # gnat-gcc41/pkg-plist # gnat-gcc41/pkg-descr # gnat-gcc41/distinfo # echo c - gnat-gcc41 mkdir -p gnat-gcc41 > /dev/null 2>&1 echo c - gnat-gcc41/files mkdir -p gnat-gcc41/files > /dev/null 2>&1 echo x - gnat-gcc41/files/patch-gengtype-yacc.y sed 's/^X//' >gnat-gcc41/files/patch-gengtype-yacc.y << 'END-of-gnat-gcc41/files/patch-gengtype-yacc.y' X--- gcc/gengtype-yacc.y.orig Fri Sep 20 00:33:24 2002 X+++ gcc/gengtype-yacc.y Tue Apr 22 09:11:27 2003 X@@ -24,6 +24,9 @@ X #include "system.h" X #include "gengtype.h" X #define YYERROR_VERBOSE X+ X+#define malloc xmalloc X+#define realloc xrealloc X %} X X %union { END-of-gnat-gcc41/files/patch-gengtype-yacc.y echo x - gnat-gcc41/Makefile sed 's/^X//' >gnat-gcc41/Makefile << 'END-of-gnat-gcc41/Makefile' X# ex:ts=4 X# Ports collection makefile for: gnat-gcc X# Date created: 22 Jun 2006 X# Whom: Karel Miklav <karel@lovetemple.net> X# X# $FreeBSD$ X# X XPORTNAME= gnat-gcc XPORTVERSION= 4.1.2 XCATEGORIES= lang XMASTER_SITES= ${MASTER_SITE_GCC} XMASTER_SITE_SUBDIR= snapshots/${versionstring} XDISTFILES= gcc-core-${versionstring}${EXTRACT_SUFX} \ X gcc-ada-${versionstring}${EXTRACT_SUFX} \ X gcc-testsuite-${versionstring}${EXTRACT_SUFX} X XMAINTAINER= karel@lovetemple.net XCOMMENT= The GNU Ada Compiler system X XNOT_FOR_ARCHS= alpha XUSE_BZIP2= yes XUSE_GMAKE= yes XUSE_ICONV= yes XUSE_PERL5_BUILD= yes XUSE_BISON= yes X XCONFLICTS= gcc-4.1.* XWRKSRC= ${WRKDIR}/build X XMAN1= cpp${gcc_suffix}.1 \ X gcc${gcc_suffix}.1 \ X gcov${gcc_suffix}.1 XMAN7= fsf-funding.7 gfdl.7 gpl.7 XNOMANCOMPRESS= yes # 5-cur and releng4 problems? XINFO= gcc${gcc_suffix}/cpp \ X gcc${gcc_suffix}/cppinternals \ X gcc${gcc_suffix}/gcc \ X gcc${gcc_suffix}/gccinstall \ X gcc${gcc_suffix}/gccint \ X gcc${gcc_suffix}/gnat-style \ X gcc${gcc_suffix}/gnat_rm \ X gcc${gcc_suffix}/gnat_ugn_unw X X.include <bsd.port.pre.mk> X Xgcc_snapshot= 20060616 Xversionstring= ${PORTVERSION:C/\.[0-9]*$//}-${gcc_snapshot} Xsrcdir= ${WRKDIR}/gcc-${versionstring} Xgcc_suffix= 41 Xtarglib= ${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/${PORTVERSION} X XPATCH_WRKSRC= ${srcdir} X XGNU_CONFIGURE= yes XCONFIGURE_SCRIPT= ../${srcdir:C/${WRKDIR}//}/configure XCONFIGURE_ARGS= --enable-languages="c,ada" \ X --disable-nls \ X --with-system-zlib \ X --with-libiconv-prefix=${LOCALBASE} \ X --program-suffix=${gcc_suffix} \ X --bindir=${PREFIX}/bin/gcc${gcc_suffix} \ X --libdir=${targlib} \ X --infodir=${PREFIX}/${INFO_PATH}/gcc${gcc_suffix} X XALL_TARGET= bootstrap-lean XMAKE_ARGS+= MAKEINFOFLAGS="--no-split" X XUSE_LDCONFIG= ${targlib} X XPLIST_SUB= GCC_VER=${PORTVERSION} \ X GNU_HOST=${CONFIGURE_TARGET} \ X SUFFIX=${gcc_suffix} X X.if ${ARCH} == "amd64" XCONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} X.endif X X# We need an existing GNAT compiler to bootstrap this one. Xhave_gnat!= if ${WHICH} gnatmake > /dev/null 2>&1; then \ X ${ECHO_CMD} "t"; \ X else \ X ${ECHO_CMD} ""; \ X fi X.if empty(have_gnat) XBUILD_DEPENDS+= ${LOCALBASE}/bin/gcc34/gcc34:${PORTSDIR}/lang/gnat-gcc34 XCONFIGURE_ENV+= PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34 XMAKE_ENV+= PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34 X.endif X Xpre-everything:: X @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}" X X# Append ' [FreeBSD]' to gcc version string. Xpost-patch: X @${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \ X ${srcdir}/gcc/version.c X Xpre-configure: X cd ${srcdir} ; contrib/gcc_update --touch X @${RM} -f ${srcdir}/gcc/*/*.info* X @${MKDIR} ${CONFIGURE_WRKSRC} X Xpost-build: X @${ECHO_MSG} "Consider running 'make check' before 'make install', especially" X @${ECHO_MSG} "if you have not performed this build on -STABLE or -CURRENT." X @${ECHO_MSG} "This assumes that you have the dejagnu port installed." X Xcheck: build X cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check X Xpost-install: X ${LN} -s ${PREFIX}/bin/gcc${gcc_suffix}/gcc${gcc_suffix} \ X ${PREFIX}/bin/gcc${gcc_suffix}/gcc X # Man pages can only be generated if Perl >= 5.6 is installed; X # fake them otherwise. X for mp in ${_MANPAGES}; do \ X ${TEST} -e $${mp} || ${TOUCH} ${TOUCH_FLAGS} $${mp}; \ X done X # Save the runaway header. X ${MV} -f ${PREFIX}/include/mf-runtime.h \ X ${targlib}/gcc/${CONFIGURE_TARGET}/${PORTVERSION}/include X # Remove libtool library files. X ${RM} -f ${targlib}/*.la X # Add target libraries and include files to packaging list. X ${RM} -f ${WRKDIR}/PLIST.lib X for d in ${targlib:S/^${PREFIX}\///} ${targlib:S/^${PREFIX}\///:S/lib/libexec/}; do \ X cd ${PREFIX} ; \ X if [ -d $${d} ]; then \ X ${FIND} $${d} -type f -o -type l >>${WRKDIR}/PLIST.lib ; \ X ${FIND} $${d} -type d | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ; \ X fi ; \ X done X ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" >> ${WRKDIR}/PLIST.lib X ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/gcc 2>&1 || true" >> ${WRKDIR}/PLIST.lib X ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc/${CONFIGURE_TARGET} 2>&1 || true" >> ${WRKDIR}/PLIST.lib X ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc 2>&1 || true" >> ${WRKDIR}/PLIST.lib X cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST} X X.include <bsd.port.post.mk> END-of-gnat-gcc41/Makefile echo x - gnat-gcc41/pkg-plist sed 's/^X//' >gnat-gcc41/pkg-plist << 'END-of-gnat-gcc41/pkg-plist' Xbin/gcc%%SUFFIX%%/cpp%%SUFFIX%% Xbin/gcc%%SUFFIX%%/gcc Xbin/gcc%%SUFFIX%%/gcc%%SUFFIX%% Xbin/gcc%%SUFFIX%%/gccbug%%SUFFIX%% Xbin/gcc%%SUFFIX%%/gcov%%SUFFIX%% Xbin/gcc%%SUFFIX%%/gnat Xbin/gcc%%SUFFIX%%/gnatbind Xbin/gcc%%SUFFIX%%/gnatbl Xbin/gcc%%SUFFIX%%/gnatchop Xbin/gcc%%SUFFIX%%/gnatclean Xbin/gcc%%SUFFIX%%/gnatfind Xbin/gcc%%SUFFIX%%/gnatkr Xbin/gcc%%SUFFIX%%/gnatlink Xbin/gcc%%SUFFIX%%/gnatls Xbin/gcc%%SUFFIX%%/gnatmake Xbin/gcc%%SUFFIX%%/gnatname Xbin/gcc%%SUFFIX%%/gnatprep Xbin/gcc%%SUFFIX%%/gnatxref Xbin/gcc%%SUFFIX%%/gprmake Xbin/gcc%%SUFFIX%%/%%GNU_HOST%%-gcc-%%GCC_VER%% Xbin/gcc%%SUFFIX%%/%%GNU_HOST%%-gcc%%SUFFIX%% Xinfo/gcc%%SUFFIX%%/dir X@dirrm bin/gcc%%SUFFIX%% X@comment Insert PLIST.lib here END-of-gnat-gcc41/pkg-plist echo x - gnat-gcc41/pkg-descr sed 's/^X//' >gnat-gcc41/pkg-descr << 'END-of-gnat-gcc41/pkg-descr' XThe GNU Ada compiler system built from GCC 4.1.2. X XPlease add ${PREFIX}/bin/gcc41 to your PATH variable Xbefore using this port. X XWWW: http://gcc.gnu.org/ END-of-gnat-gcc41/pkg-descr echo x - gnat-gcc41/distinfo sed 's/^X//' >gnat-gcc41/distinfo << 'END-of-gnat-gcc41/distinfo' XMD5 (gcc-core-4.1-20060616.tar.bz2) = 17bee655fe147e529c390ea22c0db900 XSHA256 (gcc-core-4.1-20060616.tar.bz2) = 0961d436a6f140fd3fe356d53911c40f2d53c76f821d8ed445bffffa447bf410 XSIZE (gcc-core-4.1-20060616.tar.bz2) = 14937238 XMD5 (gcc-g++-4.1-20060616.tar.bz2) = 3f8a0d03fde550efa0862f3e1128883a XSHA256 (gcc-g++-4.1-20060616.tar.bz2) = f5636cab5c129dfc527655bdffe99e9a851eab2cc7af817ceb908f75c607ec9b XSIZE (gcc-g++-4.1-20060616.tar.bz2) = 3831902 XMD5 (gcc-objc-4.1-20060616.tar.bz2) = 6a2150292fdb4e76ceec0e1987d2d6bf XSHA256 (gcc-objc-4.1-20060616.tar.bz2) = ca4c48a9555d2c36f69a7884168ede0358a98c755a343766138662e5cabab10a XSIZE (gcc-objc-4.1-20060616.tar.bz2) = 191016 XMD5 (gcc-testsuite-4.1-20060616.tar.bz2) = ab964790b1a3a374159c6126e311992d XSHA256 (gcc-testsuite-4.1-20060616.tar.bz2) = 1424850b612b09eb60c73f83d9a6565f1ae4be02ea9132059c85fd598bb619ff XSIZE (gcc-testsuite-4.1-20060616.tar.bz2) = 3560594 XMD5 (gcc-fortran-4.1-20060616.tar.bz2) = f601838100b23d97c5146285a4d9eb06 XSHA256 (gcc-fortran-4.1-20060616.tar.bz2) = 49fc8e05c189f4c63fd29a7e8136f6969ce0b6265ad9ce41c85d16db655271e8 XSIZE (gcc-fortran-4.1-20060616.tar.bz2) = 769853 XMD5 (gcc-java-4.1-20060616.tar.bz2) = f78b169f262a6e7e723133b43dbba932 XSHA256 (gcc-java-4.1-20060616.tar.bz2) = e928d74be6b43a17ac4ee719b627a39bd9934d0fd022f210784983b1dd9ae67a XSIZE (gcc-java-4.1-20060616.tar.bz2) = 9088097 XMD5 (gcc-ada-4.1-20060616.tar.bz2) = 93b3ec04bd80976283900da19e7ad866 XSHA256 (gcc-ada-4.1-20060616.tar.bz2) = 34618b2e1c50b122a8ad92a704e01d32163a26096db9cee5e516ca46184abc6e XSIZE (gcc-ada-4.1-20060616.tar.bz2) = 4628439 END-of-gnat-gcc41/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607101812.k6AICKYx001180>