diff options
author | shannonjr <shannonjr> | 2004-08-11 22:45:00 +0000 |
---|---|---|
committer | shannonjr <shannonjr> | 2004-08-11 22:45:00 +0000 |
commit | 3d56f75847d6aa9b0457252be65b6156ca09f880 (patch) | |
tree | cc845e550b366d5115b866d6dbf796607a942170 /lang/gcc34-ada | |
parent | 6b2f9799b55ee7a730a3174165037887887013c5 (diff) | |
download | pkgsrc-3d56f75847d6aa9b0457252be65b6156ca09f880.tar.gz |
Bring inline with gcc34 pkg by incomporating the following changes
already in lang/gcc34:
1) Locate adalib for bootstrap compiler with ${ALT_GCC} --print-file-name=adalib
rather than find. This behaves better if ${ALT_GCC} does not specify
a gcc executable.
2) Elide trailing letters from GCC_PLATFORM so that GCC_ARCHSUBDIR
remains constant for CURRENT when the version letter changes.
Diffstat (limited to 'lang/gcc34-ada')
-rw-r--r-- | lang/gcc34-ada/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lang/gcc34-ada/Makefile b/lang/gcc34-ada/Makefile index 1438b55598b..d2d211183dc 100644 --- a/lang/gcc34-ada/Makefile +++ b/lang/gcc34-ada/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2004/08/08 11:14:37 shannonjr Exp $ +# $NetBSD: Makefile,v 1.8 2004/08/11 22:45:00 shannonjr Exp $ # DISTNAME= gcc-${GCC_VERSION} @@ -67,9 +67,12 @@ CONFIGURE_ARGS+= --with-gnu-ld #ALT_GCC= prefix/bin/gcc .if defined(ALT_GCC) . if exists(${ALT_GCC}) -ALT_GCC_PREFIX:= ${ALT_GCC:H}/.. -ALT_GCC_RTS!= ${FIND} ${ALT_GCC_PREFIX} -name adalib +ALT_GCC_RTS!= ${ALT_GCC} --print-file-name=adalib +. if !empty(ALT_GCC_RTS) RALT_GCC_RTS= ${ALT_GCC_RTS:S%${LOCALBASE}%%:S%/%%} +. else +PKG_SKIP_REASON= "${ALT_GCC} does not appear to be an Ada compiler" +. endif . else PKG_SKIP_REASON= "Missing bootstrap Ada compiler" . endif @@ -87,7 +90,7 @@ GCC34_PKGMODIF= ${GCC34_INSTALLTO_SUBPREFIX} GCC_SUBPREFIX= ${GCC34_INSTALLTO_SUBPREFIX} GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} -GCC_PLATFORM= ${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/_.*//} +GCC_PLATFORM= ${LOWER_ARCH}--${LOWER_OPSYS}${APPEND_ELF}${LOWER_OS_VERSION:C/[_a-z].*//} CONFIGURE_ARGS+= --host=${GCC_PLATFORM} GCC_ARCHSUBDIR= ${GCC_SUBPREFIX}/lib/gcc/${GCC_PLATFORM}/${GCC_VERSION} GCC_ARCHDIR= ${PREFIX}/${GCC_ARCHSUBDIR} |