diff options
author | hsu <hsu@FreeBSD.org> | 1995-03-28 12:41:43 +0800 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1995-03-28 12:41:43 +0800 |
commit | ef9ec8b3ee29629a3cd4eab6108f69ce1976b14e (patch) | |
tree | e186af1cf07ed81e02f4b48c8566f0a5a1ce3b62 /lang/gnat/Makefile | |
parent | f033ee1628316d70158fb2ca2c2bb5e8570598e1 (diff) | |
download | freebsd-ports-gnome-ef9ec8b3ee29629a3cd4eab6108f69ce1976b14e.tar.gz freebsd-ports-gnome-ef9ec8b3ee29629a3cd4eab6108f69ce1976b14e.tar.zst freebsd-ports-gnome-ef9ec8b3ee29629a3cd4eab6108f69ce1976b14e.zip |
gnat-2.03 - The GNU Ada Translator. Version 2.03.
Submitted by: nils@guru.ims.uni-stuttgart.de (Cornelis van der Laan)
Diffstat (limited to 'lang/gnat/Makefile')
-rw-r--r-- | lang/gnat/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/lang/gnat/Makefile b/lang/gnat/Makefile new file mode 100644 index 000000000000..47ecba9f65ba --- /dev/null +++ b/lang/gnat/Makefile @@ -0,0 +1,70 @@ +# -*- Mode: Makefile -*- +# Port of: GNU Ada gnat +# Version required: 2.03 +# Space required: >= 23MB +# Date created: Sat Mar 18 02:16:45 1995 +# Porter: nils@guru.ims.uni-stuttgart.de +# + +DISTNAME= gnat-2.03-src +MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/ +EXTRACT_SUFX= .tar.gz + +# You need a compiler who calls an existing gnat compiler: +CC = gcc-2.6.3 + +# You have to tell me where your gcc 2.6.3 source is located +COMPILERSOURCE = /usr/src/gnu/usr.bin/cc +#COMPILERSOURCE = /cdrom/filesys/usr/src/gnu/usr.bin/cc + +# Which version of gcc do we have? Must be either 2.6.2 or 2.6.3. +CCVERSION= 2.6.3 + +USE_GMAKE= true + +# This is for the package: target. I decided to install the Ada compiler +# as /usr/libexec/gnat1, the rest in /usr/local/{bin,adainclude,adalib}. +PREFIX = /usr + +WRKDIR = ${.CURDIR}/work +CONFIGURE_COOKIE= ${WRKDIR}/.configure_done +PREBUILD_COOKIE = ${WRKDIR}/.prebuild_done +BUILD_COOKIE = ${WRKDIR}/.build_done +INSTALL_COOKIE = ${WRKDIR}/.install_done + +pre-build: ${PREBUILD_COOKIE} +${PREBUILD_COOKIE}: + @echo "===> Building patched gcc library for ${DISTNAME}" + cd ${WRKSRC}/gcc && \ + ${MAKE} CC="${CC} -I. -I${COMPILERSOURCE}/include" \ + COMPILERSOURCE="${COMPILERSOURCE}" + @${TOUCH} ${TOUCHFLAGS} ${PREBUILD_COOKIE} + +build: configure pre-build ${BUILD_COOKIE} +${BUILD_COOKIE}: + @echo "===> Building for ${DISTNAME}" + cd ${WRKSRC}/ada; \ + ${GMAKE} CC="${CC}" COMPILERSOURCE="${COMPILERSOURCE}" + @${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE} + +configure: extract patch ${CONFIGURE_COOKIE} +${CONFIGURE_COOKIE}: + @echo "===> Configuring for ${DISTNAME}" + @env CURDIR=${.CURDIR} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} \ + WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \ + FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \ + DEPENDS="${DEPENDS}" \ + COMPILERSOURCE="${COMPILERSOURCE}" CCVERSION="${CCVERSION}" \ + ${SHELL} ${SCRIPTDIR}/configure; + @${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE} + +install: build ${INSTALL_COOKIE} +${INSTALL_COOKIE}: + @echo "===> Installing for ${DISTNAME}" + @${MAKE} ${.MAKEFLAGS} pre-install + @(cd ${WRKSRC}/ada; \ + ${MAKE} PREFIX_DIR=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} \ + ${INSTALL_TARGET}) + @${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE} + +.include <bsd.port.mk> |