diff options
author | culot <culot@FreeBSD.org> | 2011-04-27 19:15:39 +0800 |
---|---|---|
committer | culot <culot@FreeBSD.org> | 2011-04-27 19:15:39 +0800 |
commit | fa8affe3cb6b62a70d149cd05a7d4086bc04c742 (patch) | |
tree | 59da0445acc05f0ad22b8e162f42c9a45776f82f /lang | |
parent | c0cbd44945f4f60e4c04b2ce4214004e2d3094fd (diff) | |
download | freebsd-ports-gnome-fa8affe3cb6b62a70d149cd05a7d4086bc04c742.tar.gz freebsd-ports-gnome-fa8affe3cb6b62a70d149cd05a7d4086bc04c742.tar.zst freebsd-ports-gnome-fa8affe3cb6b62a70d149cd05a7d4086bc04c742.zip |
- Update to 20110325 [1]
- Pet portlint(1) by removing trailing spaces
PR: ports/156541 [1]
Submitted by: John Marino <freebsdml@marino.st> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gnat-aux/Makefile | 78 | ||||
-rw-r--r-- | lang/gnat-aux/distinfo | 4 | ||||
-rw-r--r-- | lang/gnat-aux/pkg-plist | 26 |
3 files changed, 75 insertions, 33 deletions
diff --git a/lang/gnat-aux/Makefile b/lang/gnat-aux/Makefile index bf1b05ccac90..869da12c453e 100644 --- a/lang/gnat-aux/Makefile +++ b/lang/gnat-aux/Makefile @@ -17,7 +17,6 @@ COMMENT= GNAT Ada compiler based on GCC ${GCC_BRANCH} LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp LIB_DEPENDS+= mpfr.4:${PORTSDIR}/math/mpfr LIB_DEPENDS+= mpc.2:${PORTSDIR}/math/mpc -BUILD_DEPENDS= dejagnu>=1.4:${PORTSDIR}/misc/dejagnu ONLY_FOR_ARCHES= i386 amd64 @@ -30,9 +29,10 @@ USE_PERL5_BUILD= yes USE_LDCONFIG= yes ALL_TARGET= default -SNAPSHOT= 20110107 +SNAPSHOT= 20110325 GCC_BRANCH= 4.6 GCC_POINT= 0 +LANGS= c THREAD_MODEL= posix INTENDED_COMPILER= NATIVE @@ -40,7 +40,14 @@ BOOTSTRAP_COMPILER= NOT_REQUIRED BOOTSTRAP_TRIPLET= NOT_SET FULL_GNATGCC= NOT_SET +OPTIONS= ADA "Build Ada language" on +OPTIONS+= CXX "Build C++ language" on +OPTIONS+= TS_ADA "Enable Ada testsuite" off +OPTIONS+= TS_CXX "Enable C++ testsuite" off +OPTIONS+= TS_GCC "Enable GCC testsuite" off + .include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${ARCH} == "amd64" BLD_TARGET= x86_64-aux-freebsd${OSREL} @@ -64,7 +71,6 @@ CONFIGURE_SCRIPT= ${GCC_WRKSRC}/configure REVFILE= ${GCC_WRKSRC}/gcc/REVISION LPATH= lib/gcc/${BLD_TARGET}/${GCC_BRANCH}.${GCC_POINT} LEPATH= libexec/gcc/${BLD_TARGET}/${GCC_BRANCH}.${GCC_POINT} -LELIST= cc1 collect2 gnat1 lto1 MAN1= gnatcpp.1 gnatgcc.1 gnatgcov.1 MAN7= fsf-funding.7 gfdl.7 gpl.7 MAN1PREFIX= ${PREFIX}/share @@ -92,17 +98,53 @@ FULL_PATH=${BOOTSTRAP_PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/bin DISTFILES=${PORTNAME}-${SNAPSHOT}.tar.bz2 ${BOOTSTRAP_COMPILER} .endif +########### +## Ada ## +########### + +.if defined(WITH_ADA) +LANGS+= ada +.endif + +########### +## C++ ## +########### + +.if defined(WITH_CXX) +LANGS+= c++ +MAN1+= gnatg++.1 +LCXXPATH= include/c++/${GCC_BRANCH}.${GCC_POINT} +LSHRPATH= share/gcc-${GCC_BRANCH}.${GCC_POINT} +PLIST_SUB+= CXX="" +.else +PLIST_SUB+= CXX="@comment " +.endif + +################## +## Testsuites ## +################## + +.if defined(WITH_TS_ADA) \ + || defined(WITH_TS_CXX) \ + || defined(WITH_TS_GCC) +BUILD_DEPENDS= dejagnu>=1.4:${PORTSDIR}/misc/dejagnu +.endif + # for port maintenance, uncomment to invoke "make makesum" # DISTFILES=${PORTNAME}-${SNAPSHOT}.tar.bz2 \ # gnat-aux-460.i386.freebsd.tar.bz2 \ # gnat-aux-460.x86_64.freebsd.tar.bz2 # Establish Ada-aware compiler for use -ADA_CONFIGURE_ENV= CC=${FULL_GNATGCC} PATH=${FULL_PATH} CONFIG_SHELL=${SH} +ADA_CONFIGURE_ENV= CC=${FULL_GNATGCC} +ADA_CONFIGURE_ENV+= PATH=${FULL_PATH} +ADA_CONFIGURE_ENV+= CONFIG_SHELL=${SH} +ADA_CONFIGURE_ENV+= MAKEINFO=/usr/bin/false ADA_MAKE_ENV= PATH=${FULL_PATH} +ADA_MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/gcc # The standard configuration options -CONFIGURE_ARGS= --enable-languages=c,ada +CONFIGURE_ARGS= --enable-languages=${LANGS:Q} CONFIGURE_ARGS+= --build=${BLD_TARGET} CONFIGURE_ARGS+= --program-prefix=gnat CONFIGURE_ARGS+= --prefix=${PREFIX} @@ -114,13 +156,12 @@ CONFIGURE_ARGS+= --with-libiconv-prefix=${PKG_PREFIX} CONFIGURE_ARGS+= --enable-shared CONFIGURE_ARGS+= --enable-threads=${THREAD_MODEL} CONFIGURE_ARGS+= --disable-bootstrap +CONFIGURE_ARGS+= --disable-libquadmath CONFIGURE_ARGS+= --disable-libmudflap CONFIGURE_ARGS+= --disable-libgomp CONFIGURE_ARGS+= --disable-libssp CONFIGURE_ARGS+= --disable-nls -MAKE_ARGS+= MAKEINFOFLAGS="--no-split" - post-extract: # Personalize GNAT for each different machine @${ECHO} "-=> GNAT AUX ${OS_LABEL4VERS}" > ${REVFILE} @@ -151,14 +192,24 @@ do-build: cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} all test: build +.if defined(WITH_TS_ADA) cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-ada +.endif +.if defined(WITH_TS_CXX) + cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c++ + cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} \ + ${GMAKE} -sk check-target-libstdc++-v3 +.endif +.if defined(WITH_TS_GCC) + cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c +.endif do-install: - cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install + cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install-strip -post-install: strip-exec +post-install: ${RM} -f ${WRKDIR}/PLIST.lib -.for d in ${LPATH} ${LEPATH} +.for d in ${LPATH} ${LEPATH} ${LCXXPATH} ${LSHRPATH} cd ${PREFIX} ; ${FIND} $d \( -type f -or -type l \) | ${SORT} >> ${WRKDIR}/PLIST.lib cd ${PREFIX} ; ${FIND} $d -type d | ${SORT} -r | \ ${SED} -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.lib @@ -167,13 +218,8 @@ post-install: strip-exec ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/gcc 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc/${BLD_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib ${ECHO_CMD} "@unexec ${RMDIR} %D/libexec/gcc 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib + ${ECHO_CMD} "@unexec ${RMDIR} %D/include/c++ 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib cd ${WRKDIR}; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST} -strip-exec: - ${STRIP_CMD} ${PREFIX}/bin/gnat* -.for k in ${LELIST} - ${STRIP_CMD} ${PREFIX}/${LEPATH}/${k} -.endfor - .include <bsd.port.post.mk> diff --git a/lang/gnat-aux/distinfo b/lang/gnat-aux/distinfo index a985f6e705ba..b8694b6623bf 100644 --- a/lang/gnat-aux/distinfo +++ b/lang/gnat-aux/distinfo @@ -1,5 +1,5 @@ -SHA256 (gnat-aux-20110107.tar.bz2) = b686a639117a283e4659240439b95b446aada76825e352b12c5925918d3a8cab -SIZE (gnat-aux-20110107.tar.bz2) = 23176092 +SHA256 (gnat-aux-20110325.tar.bz2) = 9d4e2e071cd88179d3553d105735afe0e5a67e9832d50c53c1d3dfe1af46daa5 +SIZE (gnat-aux-20110325.tar.bz2) = 26700051 SHA256 (gnat-bootstrap.i386.freebsd.tar.bz2) = c38e1c960f651c3f248c1ef540b1df724058fa71c1d046af93ce975483abb645 SIZE (gnat-bootstrap.i386.freebsd.tar.bz2) = 27973176 SHA256 (gnat-bootstrap.x86_64.freebsd.tar.bz2) = c4abd6af1281785d47d99352e28e41b2a1455e25ff347eca0de5791cdede9ed8 diff --git a/lang/gnat-aux/pkg-plist b/lang/gnat-aux/pkg-plist index 1df2a83184a0..bee4e625b166 100644 --- a/lang/gnat-aux/pkg-plist +++ b/lang/gnat-aux/pkg-plist @@ -1,10 +1,11 @@ -@comment $FreeBSD bin/gnat bin/gnatbind bin/gnatchop bin/gnatclean +%%CXX%%bin/gnatc++ bin/gnatcpp bin/gnatfind +%%CXX%%bin/gnatg++ bin/gnatgcc bin/gnatgcov bin/gnatkr @@ -15,24 +16,19 @@ bin/gnatname bin/gnatprep bin/gnatxref bin/%%GNU_HOST%%-gcc-%%GCC_VER%% +%%CXX%%bin/%%GNU_HOST%%-gnatc++ +%%CXX%%bin/%%GNU_HOST%%-gnatg++ bin/%%GNU_HOST%%-gnatgcc -share/info/cpp.info -share/info/cppinternals.info -share/info/dir -share/info/gcc.info -share/info/gccinstall.info -share/info/gccint.info -share/info/gnat-style.info -share/info/gnat_rm.info -share/info/gnat_ugn.info -share/info/libquadmath.info lib/libgcc_s.so lib/libgcc_s.so.1 lib/libiberty.a -lib/libquadmath.la -lib/libquadmath.a -lib/libquadmath.so -lib/libquadmath.so.0 +%%CXX%%lib/libstdc++.a +%%CXX%%lib/libstdc++.la +%%CXX%%lib/libstdc++.so +%%CXX%%lib/libstdc++.so.6 +%%CXX%%lib/libstdc++.so.6-gdb.py +%%CXX%%lib/libsupc++.a +%%CXX%%lib/libsupc++.la @dirrmtry share/info @dirrmtry share/man/man1 @dirrmtry share/man/man7 |