summaryrefslogtreecommitdiff
path: root/lang/gcc3-ada/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3-ada/Makefile')
-rw-r--r--lang/gcc3-ada/Makefile71
1 files changed, 8 insertions, 63 deletions
diff --git a/lang/gcc3-ada/Makefile b/lang/gcc3-ada/Makefile
index 2151940706b..ccff0da7709 100644
--- a/lang/gcc3-ada/Makefile
+++ b/lang/gcc3-ada/Makefile
@@ -1,65 +1,15 @@
-# $NetBSD: Makefile,v 1.2 2003/07/06 12:31:58 grant Exp $
+# $NetBSD: Makefile,v 1.3 2003/07/08 15:04:53 drochner Exp $
#
-DISTNAME= gcc-3.3
PKGNAME= gcc3-ada-3.3
-CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.3/}
-EXTRACT_SUFX= .tar.bz2
+COMMENT= GNU Compiler Collection, Ada compiler
-MAINTAINER= tech-pkg@netbsd.org
-HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html
-COMMENT= GNU Compiler Collection
-
-NOT_FOR_PLATFORM= Darwin-*-*
-
-USE_BUILDLINK2= YES
-USE_PKGINSTALL= YES
-USE_GMAKE= YES
-
-HAS_CONFIGURE= YES
-
-CONFIGURE_ARGS+= --infodir=${PREFIX}/info
-CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
-CONFIGURE_ARGS+= --enable-languages="ada"
-
-# as this is named gcc3, use DISTNAME instead.
-FILES_SUBST+= PKGNAME_NOREV=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
-MESSAGE_SUBST+= PKGNAME_NOREV=${DISTNAME}
-
-TEXINFO_REQD= 4.2
INFO_FILES= gnat_ug_unx.info gnat_ug_vms.info gnat_ug_vxw.info
-INFO_FILES= gnat_ug_wnt.info gnat_rm.info gnat-style.info
-
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h)
-GCC_PLATFORM= ${MACHINE_GNU_ARCH}--netbsdelf2.0
-PTHREAD_OPTS+= require native
-.include "../../mk/pthread.buildlink2.mk"
-CPPFLAGS+= -I${BUILDLINK_DIR}/include
-CFLAGS+= -I${BUILDLINK_DIR}/include
-.else
-GCC_PLATFORM= ${MACHINE_GNU_PLATFORM}
-.endif
-CONFIGURE_ARGS+= --host=${GCC_PLATFORM}
-PLIST_SUBST+= GCC_PLATFORM=${GCC_PLATFORM}
+INFO_FILES+= gnat_ug_wnt.info gnat_rm.info gnat-style.info
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
-CONFIGURE_ARGS+= --enable-shared
-.else
-. if ${OPSYS} == "SunOS"
-CONFIGURE_ARGS+= --enable-shared
-. else
-CONFIGURE_ARGS+= --disable-shared
-. endif
-. if ${CC:M*gcc*} == ""
-ALL_TARGET= bootstrap
-. endif
-.endif
+.include "../../lang/gcc3-c/buildaddon.mk"
-GCC_PREFIX= ${PREFIX}/gcc3
-GCC_VERSION= ${PKGVERSION:C|nb*||}
-GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${GCC_VERSION}
+CONFIGURE_ARGS+= --enable-languages="ada"
#
# Bootstrap section. Define something to make the pkg usable.
@@ -116,18 +66,14 @@ ONLY_FOR_PLATFORM= sorry_need_ada_compiler
# End of bootstrap section
#
-pre-configure:
- ${MKDIR} ${BUILD_DIRS}
- cd ${WRKSRC} && contrib/gcc_update --touch
-
post-configure:
- ${LN} -sf ${GCC_PREFIX}/bin/gcc ${WRKSRC}/gcc/xgcc
+ ${TEST} -f ${WRKSRC}/gcc/ada/Makefile \
+ || ${FALSE} # no ada bootstrap found by configure
.if defined(ADA_BOOT) # ??? see install notes
(cd ${WRKSRC}/gcc/ada && ${TOUCH} treeprs.ads [es]info.h nmake.ad[bs])
.endif
do-build:
- (cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} tconfig.h)
(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} ada)
# XXX avoid some VPATH related lossage
(cd ${WRKSRC}/gcc/ada && ${MV} targtyps.o targtyps.o.sav)
@@ -139,7 +85,6 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gcc/gnat1 ${GCC_ARCHDIR}
(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
ada.install-common ada.install-info install-gnatlib)
+ ${RM} -f ${GCC_ARCHDIR}/adalib/lib*.so
-.include "../../lang/gcc3-c/buildlink2.mk"
-.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"